RELENG_8 does not build with CPUTYPE=core2
Scott Allendorf
scott-allendorf at uiowa.edu
Sun May 15 04:19:32 UTC 2011
I had discovered this method of working around the fatal error, but the
question remains: Should buildworld ever use the base compiler once the
bootstrap compiler is built? Much of buildworld had already completed
with "-march=core2" being fed to the bootstrap compiler by the time this
error occurs.
-Scott
Oliver Pinter wrote:
> in two step you can elliminate the warning message:
> 1) compile and install world and kernel with commented CPUTYPE in make.conf
> 2) uncomment the CPUTYPE line, and recompile world and kernel
>
> the problem is, the build system based on newer (4.2.2) gcc, and when
> you set CPUTYPE=core2 than substitute -march=core2 in gcc parameter
> list, but older base system cc (4.2.1) do not knows this option or
> value.
>
> On 5/14/11, Dominic Fandrey <kamikaze at bsdforen.de> wrote:
>> On 14/05/2011 02:38, Scott Allendorf wrote:
>>> Dominic Fandrey wrote:
>>>> env CCACHE_PREFIX=/usr/local/bin/distcc /usr/local/bin/ccache cc -O2
>>>> -pipe -march=core2 -DHAVE_CONFIG_H
>>>> -I/usr/src/kerberos5/tools/make-roken/../../include -std=gnu99 -c
>>>> make-roken.c
>>>> /usr/src/kerberos5/tools/make-print-version/../../../crypto/heimdal/lib/vers/make-print-version.c:1:
>>>> error: bad value (core2) for -march= switch
>>>> /usr/src/kerberos5/tools/make-print-version/../../../crypto/heimdal/lib/vers/make-print-version.c:1:
>>>> error: bad value (core2) for -mtune= switch
>>>> make-roken.c:1: error: bad value (core2) for -march= switch
>>>> make-roken.c:1: error: bad value (core2) for -mtune= switch
>>>> distcc[44991] ERROR: compile make-roken.c on localhost failed
>>>> *** Error code 1
>>>> ...
>>> I saw this too when updating systems across the compiler update. As
>>> near as I can tell, some part of the build is not using the new
>>> "core2"-aware compiler built as part of the toolchain and is using the
>>> older, installed version instead.
>>>
>>> Commenting out the CPUTYPE definition allowed my buildworlds to complete
>>> successfully. ...
>> Thanks for the workaround!
>>
>> It still worries me, that there's a bug in the bootstrapping. You
>> never know what kind of trouble comes from that kind of thing.
>>
>> I hope this is going to be fixed.
>>
>> Regards
>>
>>
>> --
>> A: Because it fouls the order in which people normally read text.
>> Q: Why is top-posting such a bad thing?
>> A: Top-posting.
>> Q: What is the most annoying thing on usenet and in e-mail?
>> _______________________________________________
>> freebsd-stable at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>>
--
Scott C. Allendorf Email: scott-allendorf at uiowa.edu
Senior Systems Administrator Office: 216A Van Allen Hall
Department of Physics and Astronomy Voice: (319) 335-0003
The University of Iowa FAX: (319) 335-1753
Iowa City, Iowa 52242-1479 ICBM: 41 39 43.6 N 91 31 55.1 W
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5169 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20110515/23f452c2/smime.bin
More information about the freebsd-stable
mailing list