tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

unable to build netbsd-7 on -current



(is this the right list?)

Building -7/amd64 on -current/amd64 fails with:

...
dependall ===> compat/amd64/i386/../../../lib/../external/gpl3/gcc/lib/libgcc/libgcc_s
...
--- dependall-libgcc_s ---
--- libgcc_s.so.1.0 ---
#     build  libgcc_s/libgcc_s.so.1.0
rm -f libgcc_s.so.1.0
/scratch3/prlw1/netbsd-7/tools/bin/x86_64--netbsd-gcc -nodefaultlibs -Wl,-x -shared -Wl,-soname,libgcc_s.so.1 -Wl,--warn-shared-textrel -Wl,-Map=libgcc_s.so.1.map   -m32 --sysroot=/scratch3/prlw1/netbsd-7/destdir -nodefaultlibs -Wl,--version-script=/scratch3/prlw1/netbsd-7/src/external/gpl3/gcc/lib/libgcc/libgcc_s/libgcc.map  -o libgcc_s.so.1.0  -Wl,-rpath,/usr/lib/i386  -L=/usr/lib/i386  -Wl,--whole-archive libgcc_s_pic.a  -Wl,--no-whole-archive -m32 
/scratch3/prlw1/netbsd-7/tools/lib/gcc/x86_64--netbsd/4.8.4/../../../../x86_64--netbsd/bin/ld: i386:x86-64 architecture of input file `/scratch3/prlw1/netbsd-7/destdir/usr/lib/../lib/i386/crti.o' is incompatible with i386 output
/scratch3/prlw1/netbsd-7/tools/lib/gcc/x86_64--netbsd/4.8.4/../../../../x86_64--netbsd/bin/ld: i386:x86-64 architecture of input file `/scratch3/prlw1/netbsd-7/destdir/usr/lib/../lib/i386/crtbeginS.o' is incompatible with i386 output
...


Sure enough:

$ file /scratch3/prlw1/netbsd-7/destdir/usr/lib/../lib/i386/crti.o
/scratch3/prlw1/netbsd-7/destdir/usr/lib/../lib/i386/crti.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), for NetBSD 7.0, not stripped

Earlier:
--- /scratch3/prlw1/netbsd-7/destdir/usr/lib/i386/crti.o ---
#   install  /scratch3/prlw1/netbsd-7/destdir/usr/lib/i386/crti.o
/scratch3/prlw1/netbsd-7/tools/bin/x86_64--netbsd-install -U -M /scratch3/prlw1/netbsd-7/destdir/METALOG -D /scratch3/prlw1/netbsd-7/destdir -h sha256 -N /scratch3/prlw1/netbsd-7/src/etc -c  -r  -o root  -g wheel  -m 444   crti.o /scratch3/prlw1/netbsd-7/destdir/usr/lib/i386/crti.o

but I don't actually see its build line, just:
--- /scratch3/prlw1/netbsd-7/destdir/usr/lib/i386/crti.o ---


Just in case, I:
- removed all files from the src tree as found by "cvs update -I!"
- moved /etc/mk.conf out of the way => must be defaults
- deleted objdir, destdir and tooldir

Built using:
d=/scratch3/prlw1/netbsd-7
sh build.sh -j9 -U -o -T ${d}/tools -O /tmp/obj -D ${d}/destdir build

Thoughts?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index