Subject: XF4 build breaks with userland of 11/6
To: None <,>
From: Rafal Boni <>
List: tech-toolchain
Date: 11/07/2001 10:46:22
	I'm getting errors building XF4 from xsrc with a userland totally
	rebuilt on 11/6 from sources supped the morning of 11/6 (EST).
	This is all on x86, FWIW.

	It croaks making makefiles in xfree/xc/lib/GL (specifically in the
	GL subdirectory); it looks like make finds a GL/Makefile in the
	parent directory (xfree/xc/lib) and declares the target made; as
	a result no Makefile is actually made in .../lib/GL/GL

	Here's the snippet of output from the `make build' from the top
	level and output of `make -dA' in xfree/xc/lib/GL.  It looks like
	search paths are somehow getting confused, but I don't yet have
	any idea why....

	Any ideas appreciated... I'll try and look at this in more detail
	in a bit but figured I'd send it off here in case anyone else has
	seen it.


---8<------8<------8<--- make build output ---8<------8<------8<--- 
Building Release 6.5 of the X Window System.

I hope you checked the configuration parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.

Wed Nov  7 10:27:29 EST 2001

cd ./config/imake && make   -f Makefile.ini BOOTSTRAPCFLAGS="" CC="cc" clean
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a  tags TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
make   Makefile.boot
cd ./config/imake && make   -f Makefile.ini BOOTSTRAPCFLAGS="" CC="cc"
making imake with BOOTSTRAPCFLAGS= in config/imake
cc -o ccimake  -O -I../../include -I../../imports/x11/include/X11 ccimake.c
cc -c  -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
cc -o imake  -O -I../../include -I../../imports/x11/include/X11 imake.o
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
cd ./config/makedepend && rm -f -r Makefile Makefile.dep makedepend *.o bootstrap
cd ./config/makedepend && make -f Makefile.proto bootstrap
./config/imake/imake -I./config/cf  -s ./config/imake/Makefile.proto -f ./config/imake/Imakefile -DTOPDIR=../.. -DCURDIR=./config/imake -DBootStrap
cd ./config/imake && make -f Makefile.proto bootstrapdepend
cd ./config/imake && make   -f Makefile.ini BOOTSTRAPCFLAGS="" CC="cc" bootstrap
+ mkdir bootstrap
mv *.o bootstrap
+ mv imake bootstrap
cd ./config/imake && make -f Makefile.proto all
gcc -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith   -I../../include -I../../exports/include/X11  -I../.. -I../../exports/include  -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -DCPP_PROGRAM="\"cpp\""   -c imake.c
imake.c: In function `main':
imake.c:402: warning: `tmpfd' might be used uninitialized in this function
rm -f imake
gcc -o imake -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith      imake.o  -L/usr/X11R6/lib     -Wl,-rpath,/usr/X11R6/lib -Wl,-rpath-link,../../exports/lib
rm -f imake._man
cpp -undef -traditional  -D__filemansuffix__=5 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__projectroot__=/usr/X11R6 -D__xorgversion__='"Release 6.5" "X Version 11"' -D__vendorversion__='"Version 4.1.0" "XFree86"'   < | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^XCOMM$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >imake._man
make   xmakefile
rm -f xmakefile
./config/imake/imake -I./config/cf  -s xmakefile -DTOPDIR=. -DCURDIR=.
rm -f ./config/imake/Makefile.proto
make -f xmakefile   VerifyOS

Building on NetBSD/i386 1.5Y [ELF] (1.5.25).

GCC version: 2.95

make -f xmakefile   version.def
rm -f ./config/cf/version.def
ln -s ../.././programs/Xserver/hw/xfree86/xf86Version.h ./config/cf/version.def
make -f xmakefile   Makefiles
making Makefiles in lib/GL...
making Makefiles in lib/GL/glx...
making Makefiles in lib/GL/GL...
`GL/Makefile' is up to date.
make: don't know how to make Makefiles. Stop

make: stopped in /extra/xsrc/xfree/xc/lib/GL/GL
---8<------8<------8<--- make build output ---8<------8<------8<--- 

---8<------8<------8<--- make -dA output ---8<------8<------8<--- 
Global:.MAKEFLAGS =  -d
Global:.MAKEFLAGS =  -d A
Command:ONECURDIR = lib/GL/
Command:IMAKETOP = ../../../
Command:IMAKEPREFIX = ../
Global:.TARGETS = GL/Makefile
Caching /usr/share/mk...done
expanding "".../usr/share/mk/ 
Global:MAKEFILE = /usr/share/mk/
Global:.PARSEDIR = /usr/share/mk
Global:unix = We run NetBSD.
Global:AR = ar
Global:ARFLAGS = rl
Global:RANLIB = ranlib
Global:AS = as
Global:AFLAGS = 

#*** Command-line Variables:
ONECURDIR        = lib/GL/
v                = ONESUBDIR
IMAKEPREFIX      = ../
IMAKETOP         = ../../../

Searching for GL/Makefile.../extra/xsrc/xfree/xc/lib/ /extra/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:@ = /extra/xsrc/xfree/xc/lib/GL/Makefile
SuffFindDeps (GL/Makefile)
	No known suffix on GL/Makefile. Using .NULL suffix
not adding suffix rules
GL/Makefile:@ = /extra/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:* = GL/Makefile
Searching for GL/Makefile.../extra/xsrc/xfree/xc/lib/ /extra/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:@ = /extra/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:* = Makefile
Examining GL/Makefile...modified 10:27:34 Nov 07, 2001...up-to-date.
`GL/Makefile' is up to date.
---8<------8<------8<--- make -dA output ---8<------8<------8<--- 

Rafal Boni