On Thu, 2014-10-23 at 21:54 -0400, owner-freebsd-current_at_freebsd.org wrote: > 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 [...] > 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 Try putting the TARGET= and TARGET_ARCH= on the make command line rather than in src.conf. I know the manpage says you can put them in src.conf, but I wonder if we've broken that and you're the first person to try since then. On an 8.4 i386 system I can get a failure (not exactly the same as the one you hit) trying to cross-build for amd64 if I put those settings in src.conf, but it works right if they're on the buildworld and installworld command lines. -- IanReceived on Fri Oct 24 2014 - 12:35:01 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC