Date: Mon, 17 Jan 2000 11:05:09 -0800 (PST) From: mjacob@feral.com To: FreeBSD-gnats-submit@freebsd.org Subject: misc/16162: shared /usr/src isn't because .depend files are not shareable Message-ID: <200001171905.LAA08394@farrago.feral.com>
next in thread | raw e-mail | index | archive | help
>Number: 16162 >Category: misc >Synopsis: shared /usr/src isn't because .depend files are not shareable >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 17 12:40:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Matthew Jacob >Release: FreeBSD 4.0-CURRENT alpha >Organization: Feral Software >Environment: -current as of the last day or so. >Description: You can no longer share /usr/src between i386 && alpha. In fact, I don't really see how shared source can work at all. The problem here is that, at least for building bootstrap tools, several derived files that contain platform specific information end up in /usr/src- not in OBJDIR. This leads to breakage right away because .depend's are radically different between alpha and i386: echo yacc: /usr/obj/usr/src/alpha/usr/lib/libc.a >> .depend cc -O -pipe -I/usr/obj/usr/src/alpha/usr/include -c /usr/src/usr.bin/yacc/closure.c cc -O -pipe -I/usr/obj/usr/src/alpha/usr/include -c /usr/src/usr.bin/yacc/error.c cc -O -pipe -I/usr/obj/usr/src/alpha/usr/include -c /usr/src/usr.bin/yacc/lalr.c cc -O -pipe -I/usr/obj/usr/src/alpha/usr/include -c /usr/src/usr.bin/yacc/lr0.c make: don't know how to make /usr/include/machine/trap.h. Stop *** Error code 2 Stop in /usr/src. >How-To-Repeat: Share a source tree between an alpha and an i386 and try and do a buildworld. Or share a /usr/src between to i386 machines each with different include locations such that the .depend files would be not compatible. >Fix: Put *all* derived files in OBJDIR. >Release-Note: >Audit-Trail: >Unformatted: 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?200001171905.LAA08394>