11-CURRENT build fail with base gcc

Warner Losh imp at bsdimp.com
Thu Aug 20 03:59:01 UTC 2015


> On Aug 19, 2015, at 8:36 PM, Julian Elischer <julian at freebsd.org> wrote:
> 
> On 8/20/15 6:56 AM, Oliver Pinter wrote:
>> Hi All!
>> 
>> I got this error, when I try to build recent 11-CURRENT with gcc on amd64 box:
> 
> I thought that the switch do only allow clang had already been thrown…

Not even close. Clang is default, but gcc is still required for mips, for example. current
must still build with gcc on all architectures.

This looks to be a cross-threading issue, but one that should be easy to track down.

Warner

>> 
>> --- delay.o ---
>> cc   -O2 -pipe   -fPIC -mno-red-zone
>> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../include
>> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../include/amd64
>> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../../../../lib/libstand
>> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../../common
>> -fformat-extensions -ffreestanding -Wformat -msoft-float -fshort-wchar
>> -mno-red-zone -mno-mmx -mno-sse -mno-aes -mno-avx -std=gnu99     -c
>> /usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/delay.c -o
>> delay.o
>> cc1: error: unrecognized command line option "-mno-avx"
>> 
>> You can access a full build log here:
>> http://jenkins.hardenedbsd.org/~op/11-current-with-gcc-fail.log .
>> 
>> Seems like the build environment passed a wrong COMPILER_TYPE to
>> bsd.sys.mk: clang instead of gcc, and that's why the -mno-avx occurs
>> in the compiler options.
>> 
>> I use the following options in src.conf to build the system with gcc:
>> WITHOUT_CLANG_BOOTSTRAP=
>> WITHOUT_CLANG_IS_CC=
>> WITHOUT_CLANG=
>> WITH_GCC_BOOTSTRAP=
>> WITH_GCC=
>> 
>> and the host system is a 11-CURRENT system, which builded with clang.
>> 
>> Thanks,
>> Oliver
>> _______________________________________________
>> freebsd-current at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150819/0a46dcf6/attachment.bin>


More information about the freebsd-current mailing list