Re: sys/boot/i386/boot2 build failure with clang

2011-07-18 Thread Doug Barton
On 07/18/2011 13:11, Dimitry Andric wrote: > On 2011-07-18 09:42, Doug Barton wrote: > .. >> A clean /usr/obj got me all the way through buildworld to the point >> where it was building the 32-bit compat libs, and got this: > ... >> /tmp/.root/cc-ysEysz.s:31589: Error: unknown pseudo-op: `.cfi_sect

Re: sys/boot/i386/boot2 build failure with clang

2011-07-18 Thread Dimitry Andric
On 2011-07-18 09:42, Doug Barton wrote: .. A clean /usr/obj got me all the way through buildworld to the point where it was building the 32-bit compat libs, and got this: ... /tmp/.root/cc-ysEysz.s:31589: Error: unknown pseudo-op: `.cfi_sections' clang: error: assembler command failed with exit

Re: sys/boot/i386/boot2 build failure with clang

2011-07-18 Thread Doug Barton
On 07/17/2011 07:03, Dimitry Andric wrote: > In any case, I have committed a fix in r224131, let me know how that > works out for you. A clean /usr/obj got me all the way through buildworld to the point where it was building the 32-bit compat libs, and got this: clang -m32 -march=i686 -mmmx -msse

Re: sys/boot/i386/boot2 build failure with clang

2011-07-17 Thread Dimitry Andric
On 2011-07-17 12:11, Doug Barton wrote: Trying to build r224125 with clang, and got this (using no -j): ... as --32 -o boot2.o boot2.s boot2.s: Assembler messages: boot2.s:4073: Error: unknown pseudo-op: `.cfi_sections' When using -g, clang outputs directives that are simply too new for our

Re: sys/boot/i386/boot2 build failure with clang

2011-07-17 Thread Doug Barton
I have DEBUG_FLAGS+= -g in my /etc/make.conf. Commenting that out allows this to work. Doug On 07/17/2011 03:11, Doug Barton wrote: > Howdy, > > Trying to build r224125 with clang, and got this (using no -j): > > ===> boot2 (all) > objcopy -S -O binary boot1.out boot1 > dd if=/dev/zero of=b

sys/boot/i386/boot2 build failure with clang

2011-07-17 Thread Doug Barton
Howdy, Trying to build r224125 with clang, and got this (using no -j): ===> boot2 (all) objcopy -S -O binary boot1.out boot1 dd if=/dev/zero of=boot2.ldr bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.40 secs (12782641 bytes/sec) clang -Os -fno-guess-branch-probabil