Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2015 10:24:28 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Oliver Pinter <oliver.pinter@hardenedbsd.org>
Cc:        Dimitry Andric <dim@freebsd.org>, current@freebsd.org, imp@freebsd.org
Subject:   Re: 11-CURRENT build fail with base gcc
Message-ID:  <349EA432-E76D-4D1B-9383-E707967C806D@bsdimp.com>
In-Reply-To: <CAPQ4ffvEsRRhrLHoRhf4D3pUh%2BhnG_DBTHdQbdRNGbpT5Fk7kA@mail.gmail.com>
References:  <CAPQ4ffuNzYQJHxuGKcJ%2BG5b47n-c7DjS6DJX9FrQFu9GGPrpbQ@mail.gmail.com> <B9AED518-76CC-4706-898F-65E72402ABD6@FreeBSD.org> <CAPQ4ffvEsRRhrLHoRhf4D3pUh%2BhnG_DBTHdQbdRNGbpT5Fk7kA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

> On Aug 20, 2015, at 9:38 AM, Oliver Pinter <oliver.pinter@hardenedbsd.org> wrote:
> 
> On 8/20/15, Dimitry Andric <dim@freebsd.org> wrote:
>> On 20 Aug 2015, at 00:56, Oliver Pinter <oliver.pinter@hardenedbsd.org>
>> wrote:
>>> I got this error, when I try to build recent 11-CURRENT with gcc on amd64
>>> box:
>>> 
>>> --- 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.
>> 
>> At what build stage is this error occuring?
> 
> At 4.4 build everything:
> 
> op@opn /tmp> grep '>>>' 11-current-with-gcc-fail.log
>>>> World build started on Thu Aug 20 00:32:24 CEST 2015
>>>> Rebuilding the temporary build tree
>>>> stage 1.1: legacy release compatibility shims
>>>> stage 1.2: bootstrap tools
>>>> stage 2.1: cleaning up the object tree
>>>> stage 2.2: rebuilding the object tree
>>>> stage 2.3: build tools
>>>> stage 3: cross tools
>>>> stage 4.1: building includes
>>>> stage 4.2: building libraries
>>>> stage 4.3: make dependencies
>>>> stage 4.4: building everything

I think you are wrong about the cause. -mno-avx is bogusly listed unconditionally
in efi/Makefile.inc. I’m working on a patch now…

Warner


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJV1f89AAoJEGwc0Sh9sBEAsUUP/3QOQOkV4SXJ9nWtkDnbMJcO
Y+l+XBxjZ/SQO4LUBDUAeLnVLAF5y6LWi8+xVgzhrz0Amx2oaZuFHkB8bL5EUVtI
huAcfYlEdQG9NkQUCxo+TudCMvsh5dZA8LXXPqHyC6oeCE2++PiGaTOE00nzgl8E
nqSkX3+DknqbJGUGxadN3klxKlbBhlE/DqlM0nOSM1/HL2b2AFLDNtGgcGoNsLRa
pTFY6L31geGuvhqiJOIQWqag8drQWSvkYMmIdSXUcmCW30iVy9e8wUenqLn74w20
TLNMMiRnFepznDJFxAPy2IZQaKEePKWESK/LuMUTZXhz8RvlDYCVi1ifFPPdNPE8
HwtMGOkBBJCnzzw8u15AMf9WlwOkp01blAlQidjtMZLcm7gzfGfnYTM/a02tdbvz
Dv+ipRaF19vNOtZPugfmitXoLYoZmNbK37FEF2kcNpAXs56kmFgrhlQ89TYBoQqx
cyEQofqr7W1RnGZ49OmYzQgYoWs5QLTJuJcsZLExFRHxSqtJTLs4O8l0nLZjX6Bd
AVBYbbWaUW39wxuJcFsXWKS752EVNbSIq3cV9aZGFGAIbN74SM0lAzpgzMG4H2x2
qPa60SdDe6IlK+vFo2Go8qmIFygvjOriTMSS4ZmkTmOilOrFs8M6++Z8XTeQEQEV
5PtnCAV/yAWGNfbHUmxo
=LhMY
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?349EA432-E76D-4D1B-9383-E707967C806D>