Re: Compiling BETA2 with clang fails

2011-11-02 Thread Olivier Smedts
2011/9/5 Volodymyr Kostyrko : > > 0k, here you go. Just as you say - no -fPIC, no ccache, no anything. > > ===> libexec/atrun (all) > clang -O2 -pipe -march=native -DATJOB_DIR=\"/var/at/jobs/\" > -DLFILE=\"/var/at/jobs/.lockfile\"  -DLOADAVG_MX=1.5 > -DATSPOOL_DIR=\"/var/at/spool\"  -DVERSION=\"2.9

Re: Compiling BETA2 with clang fails

2011-09-09 Thread Dimitry Andric
On 2011-09-09 14:39, Volodymyr Kostyrko wrote: 09.09.2011 11:52, Dimitry Andric wrote: ... This is why I still think you have the stdin/out/err problem, in some way. Can you please check /usr/obj/usr/src/lib/libc/Version.map? It should have about 2775 lines, otherwise your libc build is busted.

Re: Compiling BETA2 with clang fails

2011-09-09 Thread Volodymyr Kostyrko
09.09.2011 11:52, Dimitry Andric wrote: I did a few test builds with 'high' CPU values for -march, and I ran into various problems. I'd discourage the use of -march=native for now, at least with clang. It will take some time to investigate. Hey, I already posted results of build without -march

Re: Compiling BETA2 with clang fails

2011-09-09 Thread Dimitry Andric
On 2011-09-09 05:45, Volodymyr Kostyrko wrote: ... Like cleaning /usr/obj/ and then buildworld with clang but with "-march=athlon-xp" instead of "-march=native". As the problem does not seem to be in your current world but rather in the bootstrap clang compiled with -march=native, you should not

Re: Compiling BETA2 with clang fails

2011-09-08 Thread Volodymyr Kostyrko
06.09.2011 17:44, Olivier Smedts wrote: You mean like fully rebuilding system with gcc and -march=athlon-xp and then try again? Like cleaning /usr/obj/ and then buildworld with clang but with "-march=athlon-xp" instead of "-march=native". As the problem does not seem to be in your current world

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 16:25, Olivier Smedts wrote: Can you compile the Host.cpp file referenced in : http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024499.html And see which arch the resulting binary detects ? %clang++ Host.cpp -o Host %./Host cpu = corei7 cpu = athlon-xp > Also, do you ha

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 15:01, Dimitry Andric wrote: Hm, sorry that I did not notice it before, but maybe you are having the issue described here: http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026594.html What is your current kernel revision? I'm very sorry, my kernel is somewhat older th

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 16:25, Olivier Smedts wrote: What is your processor ? Athlon XP 2500+ I noticed breakage on recent intel processors too, but haven't yet stumbled upon them using -march=native on this one. Can you compile the Host.cpp file referenced in : http://lists.freebsd.org/pipermail/freebsd

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 15:01, Dimitry Andric wrote: Hm, sorry that I did not notice it before, but maybe you are having the issue described here: http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026594.html What is your current kernel revision? Can't remember and the machine is offline rig

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Olivier Smedts
2011/9/6 Volodymyr Kostyrko : > 06.09.2011 16:04, Olivier Smedts wrote: > I think it's more like the following issue, which is not new : http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024509.html >>> >>> Nope, my current world was built by gcc. >> >> The problem is not the cu

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 16:04, Olivier Smedts wrote: I think it's more like the following issue, which is not new : http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024509.html Nope, my current world was built by gcc. The problem is not the current world but the bootstrap clang built with -mar

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Olivier Smedts
2011/9/6 Volodymyr Kostyrko : > 06.09.2011 15:34, Olivier Smedts wrote: >>> >>> Hm, sorry that I did not notice it before, but maybe you are having the >>> issue described here: >>> >>> >>> http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026594.html >> >> I think it's more like the f

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Volodymyr Kostyrko
06.09.2011 15:34, Olivier Smedts wrote: Hm, sorry that I did not notice it before, but maybe you are having the issue described here: http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026594.html I think it's more like the following issue, which is not new : http://lists.freebsd.o

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Olivier Smedts
2011/9/6 Dimitry Andric : > On 2011-09-05 06:01, Volodymyr Kostyrko wrote: > ... >>> >>> You should not unconditionally add -fPIC. Remove it, and try again. >>> (The -Qunused-arguments is fine, btw.) >> >> 0k, here you go. Just as you say - no -fPIC, no ccache, no anything. > > ... >> >> /usr/obj/u

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Dimitry Andric
On 2011-09-05 06:01, Volodymyr Kostyrko wrote: ... You should not unconditionally add -fPIC. Remove it, and try again. (The -Qunused-arguments is fine, btw.) 0k, here you go. Just as you say - no -fPIC, no ccache, no anything. ... /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1': /u

Re: Compiling BETA2 with clang fails

2011-09-06 Thread Hartmann, O.
On 09/06/11 00:14, Olivier Smedts wrote: 2011/9/6 Olivier Smedts: 2011/9/6 Volodymyr Kostyrko: 05.09.2011 10:43, Olivier Smedts wrote: ===>libexec/atrun (all) clang -O2 -pipe -march=native -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\" -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/

Re: Compiling BETA2 with clang fails

2011-09-05 Thread Volodymyr Kostyrko
06.09.2011 01:11, Olivier Smedts wrote: ===>libexec/atrun (all) clang -O2 -pipe -march=native -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\' -DDEF

Re: Compiling BETA2 with clang fails

2011-09-05 Thread Olivier Smedts
2011/9/6 Olivier Smedts : > 2011/9/6 Volodymyr Kostyrko : >> 05.09.2011 10:43, Olivier Smedts wrote: >> ===>  libexec/atrun (all) clang -O2 -pipe -march=native -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\"  -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\"  -DV

Re: Compiling BETA2 with clang fails

2011-09-05 Thread Olivier Smedts
2011/9/6 Volodymyr Kostyrko : > 05.09.2011 10:43, Olivier Smedts wrote: > >>> ===>  libexec/atrun (all) >>> clang -O2 -pipe -march=native -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 >>>

Re: Compiling BETA2 with clang fails

2011-09-05 Thread Volodymyr Kostyrko
05.09.2011 10:43, Olivier Smedts wrote: ===> libexec/atrun (all) clang -O2 -pipe -march=native -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\' -DDEFA

Re: Compiling BETA2 with clang fails

2011-09-05 Thread Olivier Smedts
2011/9/5 Volodymyr Kostyrko : > 04.09.2011 00:15, Dimitry Andric wrote: >> >> On 2011-09-03 22:58, Volodymyr Kostyrko wrote: >>> >>> 03.09.2011 23:43, Dimitry Andric ???(??): On 2011-09-03 22:22, Volodymyr Kostyrko wrote: >> >> ... >>> >>> .if ${CC:T} == "clang" >>> CFLAGS+= -Qunused-

Re: Compiling BETA2 with clang fails

2011-09-04 Thread Volodymyr Kostyrko
04.09.2011 00:15, Dimitry Andric wrote: On 2011-09-03 22:58, Volodymyr Kostyrko wrote: 03.09.2011 23:43, Dimitry Andric ???(??): On 2011-09-03 22:22, Volodymyr Kostyrko wrote: ... .if ${CC:T} == "clang" CFLAGS+= -Qunused-arguments -fPIC .endif You should not unconditionally add -fPIC. R

Re: Compiling BETA2 with clang fails

2011-09-03 Thread Dimitry Andric
On 2011-09-03 22:58, Volodymyr Kostyrko wrote: 03.09.2011 23:43, Dimitry Andric ???(??): On 2011-09-03 22:22, Volodymyr Kostyrko wrote: ... .if ${CC:T} == "clang" CFLAGS+= -Qunused-arguments -fPIC .endif You should not unconditionally add -fPIC. Remove it, and try again. (The -Qunus

Re: Compiling BETA2 with clang fails

2011-09-03 Thread Volodymyr Kostyrko
03.09.2011 23:43, Dimitry Andric написав(ла): On 2011-09-03 22:22, Volodymyr Kostyrko wrote: Hi all. ===> libexec/bootpd (all) ... /usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC -march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 -fstack-protector -Wsys

Re: Compiling BETA2 with clang fails

2011-09-03 Thread Dimitry Andric
On 2011-09-03 22:22, Volodymyr Kostyrko wrote: Hi all. ===> libexec/bootpd (all) ... /usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC -march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uniniti