Date: Thu, 28 Aug 1997 16:16:47 -0600 From: Warner Losh <imp@rover.village.org> To: hackers@freebsd.org Subject: Bletch! Message-ID: <E0x4Crv-000617-00@rover.village.org>
next in thread | raw e-mail | index | archive | help
% uname -a FreeBSD harmony.village.org 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sat Jun 21 17:52:32 MDT 1997 imp@harmony.village.org:/home/imp/FreeBSD/src/sys/compile/GENERIC i386 % mkdir /gerbils/2.2 % cd /gerbils/2.2 % cvs co -r RELENG_2_2 src ... % cd src % su # make buildworld .... ===> lib/msun ... cc -nostdinc -v -D_IEEE_LIBM -I/usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/include -c i387_e_acos.S -o i387_e_acos.o gcc version 2.7.2.1 /usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/libexec/cpp -lang-asm -nostdinc -v -I/usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/include -iprefix /usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/lib/i386-unknown-freebsd/2.7.2.1/ -undef -$ -Dunix -Di386 -D__FreeBSD__=2 -D__unix__ -D__i386__ -D__FreeBSD__=2 -D__unix -D__i386 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386) -D__ASSEMBLER__ -D_IEEE_LIBM i387_e_acos.S /var/tmp/cc010392.s GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: /usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/include End of search list. In file included from /usr/obj/home/imp/FreeBSD/2.2/src/tmp/usr/include/machine/asmacros.h:128, from i387_e_acos.S:36: /usr/src/lib/libc/i386/DEFS.h:41: machine/asm.h: No such file or directory *** Error code 1 # ================================================================== OK. So I go looking at what has been included, and I find: % egrep /usr/src /usr/obj/gerbils/2.2/src/tmp/usr/include/machine/asmacros.h #include "/usr/src/lib/libc/i386/DEFS.h" /* XXX blech */ % Is there any reason why this is the case? Since this file is used only by msun (per the comments) in the non kernel case, can't this be done better? Are there other gotcha's that I'm setting myself up for by not having my sources in /usr/src? Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0x4Crv-000617-00>