can't build CURRENT/amd64 using 9.3?

From: <>
Date: Thu, 23 Oct 2014 21:54:00 -0400
	I have a system running

FreeBSD 9.3-RELEASE #0 r268512: Fri Jul 11 03:13:02 UTC 2014  i386

	I have updated the source tree to CURRENT r273542.
	If I build "make buildworld" for the GENERIC kernel and no
make.conf or src.conf, it succeeds.
	If I use an empty make.conf and src.conf of

TARGET=amd64
TARGET_ARCH=amd64

	it dies with

echo '#define EXTRA_MODES_FILE "i386/i386-modes.def"' >> tm.h
(cd /usr/src/gnu/lib/csu; /usr/obj/usr/src/make.i386/bmake -f /usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/csu/../../../contrib/gcc options.h)
LC_ALL=C awk -f /usr/src/gnu/lib/csu/../../../contrib/gcc/opt-gather.awk /usr/src/gnu/lib/csu/../../../contrib/gcc/c.opt /usr/src/gnu/lib/csu/../../../contrib/gcc/common.opt /usr/src/gnu/lib/csu/../../../contrib/gcc/config/i386/i386.opt > optionlist
LC_ALL=C awk -f /usr/src/gnu/lib/csu/../../../contrib/gcc/opt-functions.awk  -f /usr/src/gnu/lib/csu/../../../contrib/gcc/opth-gen.awk  < optionlist > options.h
rm -f .depend
CC='cc  ' mkdep -f .depend -a -DCRT_BEGIN   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I. -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
TMP=_depend$$;  sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend  > $TMP;  mv $TMP .depend
cc  -O2 -pipe   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions  -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables  -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   -Qunused-arguments -g0 -DCRT_BEGIN  -c -o crtbegin.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
cc  -O2 -pipe   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions  -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables  -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   -Qunused-arguments -g0 -DCRT_END  -c -o crtend.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
cc  -O2 -pipe   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions  -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables  -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   -Qunused-arguments -g0 -DCRT_BEGIN -DCRTSTUFFT_O  -c -o crtbeginT.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
cc  -O2 -pipe   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions  -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables  -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   -Qunused-arguments -g0 -DCRT_BEGIN -DCRTSTUFFS_O -DSHARED -fpic  -c -o crtbeginS.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
cc  -O2 -pipe   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions  -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables  -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89   -Qunused-arguments -g0 -DCRT_END -DCRTSTUFFS_O -DSHARED -fpic  -c -o crtendS.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbegin.o /usr/obj/usr/src/tmp/usr/lib/crtbegin.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtend.o /usr/obj/usr/src/tmp/usr/lib/crtend.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbeginT.o /usr/obj/usr/src/tmp/usr/lib/crtbeginT.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbeginS.o /usr/obj/usr/src/tmp/usr/lib/crtbeginS.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtendS.o /usr/obj/usr/src/tmp/usr/lib/crtendS.o
echo "===> lib/csu/i386-elf (obj,depend,all,install)";  cd /usr/src/lib/csu/i386-elf &&  /usr/obj/usr/src/make.i386/bmake MK_TESTS=no DIRPRFX=lib/csu/i386-elf/ obj &&  /usr/obj/usr/src/make.i386/bmake MK_TESTS=no DIRPRFX=lib/csu/i386-elf/ depend &&  /usr/obj/usr/src/make.i386/bmake MK_TESTS=no DIRPRFX=lib/csu/i386-elf/ all &&  /usr/obj/usr/src/make.i386/bmake MK_TESTS=no DIRPRFX=lib/csu/i386-elf/ install
===> lib/csu/i386-elf (obj,depend,all,install)
if ! test -d /usr/obj/usr/src/lib/csu/i386-elf/; then  mkdir -p /usr/obj/usr/src/lib/csu/i386-elf;  if ! test -d /usr/obj/usr/src/lib/csu/i386-elf/; then  echo "Unable to create /usr/obj/usr/src/lib/csu/i386-elf.";  exit 1;  fi;  echo "/usr/obj/usr/src/lib/csu/i386-elf created for /usr/src/lib/csu/i386-elf";  fi
rm -f .depend
CC='cc  ' mkdep -f .depend -a    -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99   /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S
TMP=_depend$$;  sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend  > $TMP;  mv $TMP .depend
cc  -O2 -pipe   -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments  -c /usr/src/lib/csu/i386-elf/crti.S
cc  -O2 -pipe   -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments  -c /usr/src/lib/csu/i386-elf/crtn.S
cc  -O2 -pipe   -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -DGCRT -S -o gcrt1_c.s /usr/src/lib/csu/i386-elf/crt1_c.c
sed -i "" -e '/\.note\.tag/s/progbits/note/' gcrt1_c.s
cc   -c -o gcrt1_c.o gcrt1_c.s
cc  -O2 -pipe   -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments  -c /usr/src/lib/csu/i386-elf/crt1_s.S
ld  -o gcrt1.o -r crt1_s.o gcrt1_c.o
crt1_s.o: file not recognized: File format not recognized
*** Error code 1

Stop.
bmake[3]: stopped in /usr/src/lib/csu/i386-elf
*** Error code 1


	Am I trying something that cannot be done?
	If not: what's going on?  I googled this and found answers for
Linux+gcc that don't seem to apply.

	Respectfully,


		Robert Huff
Received on Thu Oct 23 2014 - 23:54:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC