Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2000 22:33:24 +0100
From:      Keith Jones <keith@mithy.org>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        freebsd-bugs@freebsd.org, johan@freebsd.org
Subject:   Re: bin/22256: [RARE] cross-compiled static bins in /usr/obj/usr/src/i386 can cause Signal 4 during make installworld
Message-ID:  <20001025223324.A865@celery.mithy.org>
In-Reply-To: <39F734C3.B87DFAE7@cup.hp.com>; from marcel@cup.hp.com on Wed, Oct 25, 2000 at 03:30:11PM -0400
References:  <200010251831.LAA45023@freefall.freebsd.org> <39F734C3.B87DFAE7@cup.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 25, 2000 at 03:30:11PM -0400, Marcel Moolenaar wrote:
> johan@FreeBSD.org wrote:
> > 
> > Synopsis: [RARE] cross-compiled static bins in /usr/obj/usr/src/i386 can cause Signal 4 during make installworld
> > 
> > Responsible-Changed-From-To: freebsd-bugs->marcel
> > Responsible-Changed-By: johan
> > Responsible-Changed-When: Wed Oct 25 11:29:58 PDT 2000
> > Responsible-Changed-Why:
> > Marcel, can you have a quick look at this and maybe add 'strip'
> > to the copied programs in installworld.
> > 
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=22256
> 
> There's no bug in the build process that I know of. The tools in
> /usr/obj that are specifically compiled to run on the build machine need
> to be linked against the libraries in /usr/lib. In this case the build
> machine is incompatible with the install machine, simply because the
> binaries and libraries were optimized for the build machine and by that
> unusable on the install machine. This is just as bad as building on
> Alpha and installing on IA-32.

Actually I don't see what's wrong with that, if your target machine is
sufficiently slow that you need to do so. If you're able to supply the
relevant architecture options in /etc/make.conf, the build/install process
(ideally) ought to be able to cope with this. Kernel cross-compilation from
one architecture to another is (AFAICT) simply a case of setting the kernel
config file up correctly. Likewise most of the ports and 'make' options.
It ought to be the same for 'make buildworld'.

Therefore, I would still maintain that it is a bug, albeit a low-priority
one.

> To make the build process a bit more resistant, we can force bootstrap,
> build and cross tools to be dynamicly linked instead of staticly linked.

That's possible, though it would be "nicer" if the binaries could be (either
statically or dynamicaly) linked against the libraries that are built in
/usr/obj during 'make buildworld' by supplying the appropriate library path
flags to 'ld'.

> We should not add strip to installworld. Think about what would happen
> if we did a source upgrade on FreeBSD 2.2.5 and basicly install ELF over
> aout. We would be using an aout strip on ELF files...

That I'll grant; it was only one possible option.

> -- 
> Marcel Moolenaar
>   mail: marcel@cup.hp.com / marcel@FreeBSD.org
>   tel:  (408) 447-4222
> 

Kind regards

Keith


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001025223324.A865>