clang error make buildworld

2017-08-11 Thread Aijaz Baig
I am tying to buildworld on an ivybridge (amd64) machine and I get the following error: ===> lib/libc/tests/ssp (all) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_fgets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_fgets ) (cd

Re: Clang error make buildworld

2011-12-28 Thread Renato Botelho
On Tue, May 3, 2011 at 10:07 PM, Manfred Antar n...@pozo.com wrote: I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? === boot/i386/boot0 (all) clang -O2 -pipe  -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f  -DTICKS=0xb6   -DCOMSPEED=7 5 + 3

Re: Clang error make buildworld

2011-12-28 Thread Dimitry Andric
On 2011-12-28 16:44, Renato Botelho wrote: On Tue, May 3, 2011 at 10:07 PM, Manfred Antarn...@pozo.com wrote: I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? === boot/i386/boot0 (all) clang -O2 -pipe -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f

Re: Clang error make buildworld

2011-12-28 Thread Renato Botelho
On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric d...@freebsd.org wrote: On 2011-12-28 16:44, Renato Botelho wrote: On Tue, May 3, 2011 at 10:07 PM, Manfred Antarn...@pozo.com  wrote: I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? ===  

Re: Clang error make buildworld

2011-12-28 Thread Dimitry Andric
On 2011-12-28 17:32, Renato Botelho wrote: On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andricd...@freebsd.org wrote: ... Most likely, it is due to the way you set CC, CXX and/or CPP in make.conf. Can you please post that file? Sure, follow my src.conf: .if !defined(CC) || ${CC} == cc

Re: Clang error make buildworld

2011-12-28 Thread Renato Botelho
On Wed, Dec 28, 2011 at 2:39 PM, Dimitry Andric d...@freebsd.org wrote: On 2011-12-28 17:32, Renato Botelho wrote: On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andricd...@freebsd.org  wrote: ... Most likely, it is due to the way you set CC, CXX and/or CPP in make.conf.  Can you please post

Re: Clang error make buildworld

2011-05-06 Thread Pan Tsu
Olivier Smedts oliv...@gid0.org writes: 2011/5/5 Roman Divacky rdiva...@freebsd.org: Because with clang, -march=native often breaks buildworld, while -march=core2 is ok. Can you be more specific about this claim? On what CPU are seeing this breakage? Ok, with latest HEAD... %echo | gcc

Re: Clang error make buildworld

2011-05-05 Thread O. Hartmann
On 05/04/11 16:20, Dimitry Andric wrote: On 2011-05-04 15:44, Manfred Antar wrote: ... src.conf: WITHOUT_DYNAMICROOT=yes WITH_IDEA=yes .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} == c++ CXX=clang++ .endif #Don't die on warnings NO_WERROR= WERROR= Aha. Please

Re: Clang error make buildworld

2011-05-05 Thread Olivier Smedts
2011/5/5 O. Hartmann ohart...@zedat.fu-berlin.de: On 05/04/11 16:20, Dimitry Andric wrote: On 2011-05-04 15:44, Manfred Antar wrote: ... src.conf: WITHOUT_DYNAMICROOT=yes WITH_IDEA=yes .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} == c++ CXX=clang++

Re: Clang error make buildworld

2011-05-05 Thread Roman Divacky
Because with clang, -march=native often breaks buildworld, while -march=core2 is ok. Can you be more specific about this claim? On what CPU are seeing this breakage? Anyway, can you compile and run on that machine this: http://lev.vlakno.cz/~rdivacky/Host.cpp It's the LLVM CPU

Re: Clang error make buildworld

2011-05-05 Thread Olivier Smedts
2011/5/5 Roman Divacky rdiva...@freebsd.org: Because with clang, -march=native often breaks buildworld, while -march=core2 is ok. Can you be more specific about this claim? On what CPU are seeing this breakage? On a Core2 Quad Q9450 and a Core i7 860. I use core2 on both because that's the

Re: Clang error make buildworld

2011-05-05 Thread O. Hartmann
On 05/05/11 15:46, Olivier Smedts wrote: 2011/5/5 O. Hartmannohart...@zedat.fu-berlin.de: On 05/04/11 16:20, Dimitry Andric wrote: On 2011-05-04 15:44, Manfred Antar wrote: ... src.conf: WITHOUT_DYNAMICROOT=yes WITH_IDEA=yes .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX)

Re: Clang error make buildworld

2011-05-05 Thread Olivier Smedts
2011/5/5 Roman Divacky rdiva...@freebsd.org: Because with clang, -march=native often breaks buildworld, while -march=core2 is ok. Can you be more specific about this claim? On what CPU are seeing this breakage? Ok, with latest HEAD... %echo | gcc -march=native -E -v -x c -### - Using

Re: Clang error make buildworld

2011-05-05 Thread Roman Divacky
clang -O2 -pipe -march=native -fomit-frame-pointer -DATJOB_DIR=\/var/at/jobs/\ -DLFILE=\/var/at/jobs/.lockfile\ -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\/var/at/spool\ -DVERSION=\2.9\ -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' -DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\/var/at/\

Re: Clang error make buildworld

2011-05-05 Thread Olivier Smedts
2011/5/5 Roman Divacky rdiva...@freebsd.org: clang -O2 -pipe -march=native -fomit-frame-pointer -DATJOB_DIR=\/var/at/jobs/\  -DLFILE=\/var/at/jobs/.lockfile\ -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\/var/at/spool\  -DVERSION=\2.9\ -DDAEMON_UID=1 -DDAEMON_GID=1  -DDEFAULT_BATCH_QUEUE=\'E\'

Re: Clang error make buildworld

2011-05-05 Thread Olivier Smedts
2011/5/5 Roman Divacky rdiva...@freebsd.org: Can you invoke this very same command (ie. linking) with -### and show me? Does it work when you try to link the same .o files without specifying -march=native ? My system has previously been compiled with clang and -march=core2. It's a corei7.

Re: Clang error make buildworld

2011-05-05 Thread Roman Divacky
# /usr/obj/usr/src/tmp/usr/bin/clang -O2 -pipe -march=native -fomit-frame-pointer -DATJOB_DIR=\/var/at/jobs/\ -DLFILE=\/var/at/jobs/.lockfile\ -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\/var/at/spool\ -DVERSION=\2.9\ -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' -DDEFAULT_AT_QUEUE=\'c\'

Re: Clang error make buildworld

2011-05-04 Thread Dimitry Andric
On 2011-05-04 03:07, Manfred Antar wrote: I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? === boot/i386/boot0 (all) clang -O2 -pipe -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f -DTICKS=0xb6 -DCOMSPEED=7 5 + 3 -ffreestanding

Re: Clang error make buildworld

2011-05-04 Thread Manfred Antar
At 11:38 PM 5/3/2011, Dimitry Andric wrote: On 2011-05-04 03:07, Manfred Antar wrote: I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? === boot/i386/boot0 (all) clang -O2 -pipe -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f -DTICKS=0xb6 -DCOMSPEED=7

Re: Clang error make buildworld

2011-05-04 Thread Dimitry Andric
On 2011-05-04 15:44, Manfred Antar wrote: ... src.conf: WITHOUT_DYNAMICROOT=yes WITH_IDEA=yes .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} == c++ CXX=clang++ .endif #Don't die on warnings NO_WERROR= WERROR= Aha. Please move the clang-related stuff to make.conf

Clang error make buildworld

2011-05-03 Thread Manfred Antar
I get this error when trying to buildworld on current i386. It's been this way for awhile Any Ideas ? === boot/i386/boot0 (all) clang -O2 -pipe -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f -DTICKS=0xb6 -DCOMSPEED=7 5 + 3 -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse