From owner-freebsd-hackers Thu Aug 28 15:16:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA23812 for hackers-outgoing; Thu, 28 Aug 1997 15:16:58 -0700 (PDT) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA23807 for ; Thu, 28 Aug 1997 15:16:54 -0700 (PDT) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 1.60 #1) id 0x4Crv-000617-00; Thu, 28 Aug 1997 16:16:48 -0600 To: hackers@freebsd.org Subject: Bletch! Date: Thu, 28 Aug 1997 16:16:47 -0600 From: Warner Losh Message-Id: Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk % 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