[CFT/RFC] Make crunched compatible with external linkers

2012-12-04 Thread Erik Cederstrand
Hello hackers,

The following PR patches crunchide(1) to accept object files produced by the 
gold and mclinker linkers: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin%2F174011

On behalf of the submitter, I'd like to request a review of the patch, and 
testing of crunchide/crunchgen especially on SPARC and ARM.

Thanks,
Erik
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: libc with debugging symbols?

2012-12-04 Thread Warner Losh

On Dec 4, 2012, at 1:24 AM, Myles C. Maxfield wrote:

 Hello, all,
 I'm interested in learning about the internals of how libc works, so I was
 hoping to link a test application with a version of libc that has debugging
 symbols (reading the raw sources only gets me so far). The version of libc
 that comes with FreeBSD doesn't have debugging symbols (nor should it), so
 I'm wondering if there is a way to install / compile my own.
 
 I have very naïvely checked out libc from /base/head at svn.freebsd.org,
 crossed my fingers, and ran 'make', but that didn't work (for many reasons,
 I'm sure). This leads me to the following questions:
 
 1. Is it possible to check out the sources of libc (and possibly other
 libraries) as they were when the FreeBSD 9.0 release was being compiled
 (since that's what I'm running)? Is there a way to map this to a particular
 SVN revision?

Yes.  The handbook should cover the different possibilities, but you'll want to 
check out the code from

http://svn.freebsd.org/base/releng/9.0

 2. Is there a listing of the tools and versions used to compile libc at
 that time?

It's all in what you checked out using the above link.

 3. Many other unix-like distributions have something like a libc-dbg
 package in their package manager. Do you think this would be worthwhile or
 even acceptable for me to try to create something similar in the ports
 database? (I couldn't find anything that already exists)

That's an interesting idea.  However, it is easy enough to build what you need:

cd svn-root-location# change this to the real path
cd lib/libc
make DEBUG_FLAGS=-g obj all install clean

should suffice.  It will add a bunch of space to your root and /usr partitions, 
iirc, but disks these days are so huge you won't notice.  If you do, you can 
install to a different location using DESTDIR. Due to some interaction between 
different parts of the system that's a smidge more complex:

cd svn-root-location
make redistribute
cd lib/libc
make DEBUG_FLAGS=-g obj all install clean DESTDIR=/some/other/path

If you are hacking on libc, you can omit the 'clean' step.  If you are 
rebuilding libc, you can omit the 'obj' after the first time. If you are 
hacking on amd64, you may want to add WITHOUT_LIB32=t to the command line to 
disable the 32-bit build.

To rebuild libc takes just a couple of minutes.  Hope this helps.

Warner
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: kernel module parallel build?

2012-12-04 Thread John Baldwin
On Sunday, November 04, 2012 2:53:02 pm Andre Oppermann wrote:
 On 22.10.2012 15:28, John Baldwin wrote:
  On Sunday, October 21, 2012 7:11:10 am Andre Oppermann wrote:
  What's keeping kernel modules from building in parallel with
  make -j8?
 
  They don't for you?  They do for me either via 'make buildkernel'
  or the old method.
 
 They do, but only partially.  Within a module the files are built
 in parallel.  However the module directories seem to be serialized.
 I'm a Makefile noob though.

Hmm, I certainly see the module directories being built in parallel.  Some of 
the make jobs may not be as obvious since links are silent (no output unless 
there is an error).

-- 
John Baldwin
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: [CFT/RFC] Make crunched compatible with external linkers

2012-12-04 Thread Kurt Lidl
On Tue, Dec 04, 2012 at 11:06:56AM +0100, Erik Cederstrand wrote:
 Hello hackers,
 
 The following PR patches crunchide(1) to accept object files produced by the 
 gold and mclinker linkers: 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=bin%2F174011
 
 On behalf of the submitter, I'd like to request a review of the patch, and 
 testing of crunchide/crunchgen especially on SPARC and ARM.

I applied this patch to a 9/stable source tree, and was able to
buildworld with it in place, on my sparc64 machine.

I know that's not a great test case, but the patched binary
is good enough to generate the objects that are needed for the
'rescue' binary.  And that binary runs at least a trivial test
of '/usr/obj/usr/src/rescue/rescue/rescue ifconfig -a' and
produces correct output.

-Kurt
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: kernel module parallel build?

2012-12-04 Thread Ryan Stone
On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin j...@freebsd.org wrote:

 Hmm, I certainly see the module directories being built in parallel.  Some
 of
 the make jobs may not be as obvious since links are silent (no output
 unless
 there is an error).


This is definitely not the behaviour that I see trying to build any version
of FreeBSD.  I see the same behaviour as Andre: the depend and all targets
both iterate through the module directories sequentially.  It never builds
two module subdirectories concurrently.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


naming a .h file for kernel use only

2012-12-04 Thread Rick Macklem
Hi,

For my NFSv4.1 client work, I've taken a few definitions out of a
kernel rpc .c file and put them in a .h file so that they can
be included in other sys/rpc .c files.

I've currently named the file _krpc.h. I thought I'd check if
this is a reasonable name before doing the big commit of the
NFSv4.1 stuff to head. (I have a vague notion that a leading _
would indicate not for public use, but I am not sure?)

Thanks in advance for naming suggestions for this file, rick
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: naming a .h file for kernel use only

2012-12-04 Thread Konstantin Belousov
On Tue, Dec 04, 2012 at 03:28:37PM -0500, Rick Macklem wrote:
 Hi,
 
 For my NFSv4.1 client work, I've taken a few definitions out of a
 kernel rpc .c file and put them in a .h file so that they can
 be included in other sys/rpc .c files.
 
 I've currently named the file _krpc.h. I thought I'd check if
 this is a reasonable name before doing the big commit of the
 NFSv4.1 stuff to head. (I have a vague notion that a leading _
 would indicate not for public use, but I am not sure?)
 
 Thanks in advance for naming suggestions for this file, rick

I believe that _thing.h is the convention for the headers that are
never directly included by the .c files. It is there to hide some
shared parts of other includes, for consumption by includes.

Why not move the stuff to sys/nfs/krpc.h ? BTW, this file lacks the
include guards.


pgpN0KluGObMT.pgp
Description: PGP signature


Re: Missing quote in comment in 8.3 9.0 9.1RC2 etc/sendmail/freebsd.mc

2012-12-04 Thread Julian H. Stacey
 There is a missing double quote  in 
 8.3  9.0  9.1RC2 src/etc/sendmail/freebsd.mc
 8.2-RELEASE  earlier are OK.

 I will send-pr unless I hear otherwise.

I sent a patch,  received this

Message-id: 201212041520.qb4fk0pn030...@freefall.freebsd.org
Date: Tue, 4 Dec 2012 15:20:00 GMT (16:20 CET)

It has the internal identification `bin/174108'.
http://www.freebsd.org/cgi/query-pr.cgi?pr=174108

Category:   bin
Responsible:freebsd-bugs
Synopsis:   Missing quote in comment in 8.3  9.0  9.1RC2 
etc/sendmail/freebsd.mc
Arrival-Date:   Tue Dec 04 15:20:00 UTC 2012

At Wed Dec  5 02:16:29 CET 2012 the web ref fails:  
http://www.freebsd.org/cgi/query-pr.cgi?pr=174108
There is no bug in the bin category beyond 174103

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Missing quote in comment in 8.3 9.0 9.1RC2 etc/sendmail/freebsd.mc

2012-12-04 Thread Eitan Adler
On 4 December 2012 20:21, Julian H. Stacey j...@berklix.com wrote:
 At Wed Dec  5 02:16:29 CET 2012 the web ref fails:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=174108
 There is no bug in the bin category beyond 174103

This is a known issue. I'm not sure what is causing it.

Your bug made it (check the freebsd-bugs mailing list) but the web
interface can't find it.
-- 
Eitan Adler
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Missing quote in comment in 8.3 9.0 9.1RC2 etc/sendmail/freebsd.mc

2012-12-04 Thread Julian H. Stacey
Hi,
Reference:
 From: Eitan Adler li...@eitanadler.com 
 Date: Tue, 4 Dec 2012 20:58:20 -0500 
 Message-id:   
 caf6rxgk5wtmzubta_8oepez8n23+8wyf85deqs-i+igtkfj...@mail.gmail.com 

Eitan Adler wrote:
 On 4 December 2012 20:21, Julian H. Stacey j...@berklix.com wrote:
  At Wed Dec  5 02:16:29 CET 2012 the web ref fails:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=174108
  There is no bug in the bin category beyond 174103
 
 This is a known issue. I'm not sure what is causing it.
 
 Your bug made it (check the freebsd-bugs mailing list) but the web
 interface can't find it.
 -- 
 Eitan Adler

Thanks Eitan, OK I see 
http://lists.freebsd.org/pipermail/freebsd-bugs/2012-December/051052.html

Garrett C mentioned it was slow  wait a bit.

Maybe something behind cgi/query-pr only builds index hash
tables infrequently, crontab driven,
Tue, 4 Dec 2012 15:20:00 GMT (16:20 CET)
to
Wed Dec  5 03:18:59 CET 2012
is near 11 hours.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Missing quote in comment in 8.3 9.0 9.1RC2 etc/sendmail/freebsd.mc

2012-12-04 Thread Eitan Adler
On 4 December 2012 21:23, Julian H. Stacey j...@berklix.com wrote:
 Hi,
 Reference:
 From: Eitan Adler li...@eitanadler.com
 Date: Tue, 4 Dec 2012 20:58:20 -0500
 Message-id:   
 caf6rxgk5wtmzubta_8oepez8n23+8wyf85deqs-i+igtkfj...@mail.gmail.com

 Eitan Adler wrote:
 On 4 December 2012 20:21, Julian H. Stacey j...@berklix.com wrote:
  At Wed Dec  5 02:16:29 CET 2012 the web ref fails:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=174108
  There is no bug in the bin category beyond 174103

 This is a known issue. I'm not sure what is causing it.

 Your bug made it (check the freebsd-bugs mailing list) but the web
 interface can't find it.
 --
 Eitan Adler

 Thanks Eitan, OK I see
 http://lists.freebsd.org/pipermail/freebsd-bugs/2012-December/051052.html

 Garrett C mentioned it was slow  wait a bit.

Normally it takes about 15 minutes for it to sync and cron to catch
up.Something else is going on here.  Clusteradm, can you comment?


-- 
Eitan Adler
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Missing quote in comment in 8.3 9.0 9.1RC2 etc/sendmail/freebsd.mc

2012-12-04 Thread Garrett Cooper
On Tue, Dec 4, 2012 at 7:03 PM, Eitan Adler li...@eitanadler.com wrote:
 On 4 December 2012 21:23, Julian H. Stacey j...@berklix.com wrote:
 Hi,
 Reference:
 From: Eitan Adler li...@eitanadler.com
 Date: Tue, 4 Dec 2012 20:58:20 -0500
 Message-id:   
 caf6rxgk5wtmzubta_8oepez8n23+8wyf85deqs-i+igtkfj...@mail.gmail.com

 Eitan Adler wrote:
 On 4 December 2012 20:21, Julian H. Stacey j...@berklix.com wrote:
  At Wed Dec  5 02:16:29 CET 2012 the web ref fails:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=174108
  There is no bug in the bin category beyond 174103

 This is a known issue. I'm not sure what is causing it.

 Your bug made it (check the freebsd-bugs mailing list) but the web
 interface can't find it.
 --
 Eitan Adler

 Thanks Eitan, OK I see
 http://lists.freebsd.org/pipermail/freebsd-bugs/2012-December/051052.html

 Garrett C mentioned it was slow  wait a bit.

 Normally it takes about 15 minutes for it to sync and cron to catch
 up.Something else is going on here.  Clusteradm, can you comment?

It took almost an hour on Sunday, FYI.
-Garrett
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org