Date: Tue, 03 May 2011 20:53:29 +0200 From: "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de> To: Olivier Smedts <olivier@gid0.org> Cc: freebsd-current@freebsd.org Subject: Re: Building FreeBSD 9.0-CUR/amd64 with CLANG fails Message-ID: <4DC04F29.2050401@mail.zedat.fu-berlin.de> In-Reply-To: <BANLkTimAhmHh33FuwB6o%2BB5iSOORV-PmMQ@mail.gmail.com> References: <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> <BANLkTimAhmHh33FuwB6o%2BB5iSOORV-PmMQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/02/11 14:19, Olivier Smedts wrote: > 2011/5/1 O. Hartmann<ohartman@mail.zedat.fu-berlin.de>: >> Well, >> I tried the first time building FreeBSD 9.0-CURRENT/amd64 (sources fro= m >> today's latest svn) and it failed (taken the /etc/make.conf addition f= rom >> the wiki), giving the below showed error. > > Did you follow the instructions on the wiki ? Do you have the > following lines in your /etc/make.conf ? > NO_WERROR=3D > WERROR=3D > >> Is this a well known issue and FreeBSD isn't building correctly at the= >> moment or did I miss something (not mentioned on the wiki's page)? >> >> >> >> clang: warning: argument unused during compilation: >> '-finhibit-size-directive' >> clang: warning: argument unused during compilation: '-fno-toplevel-reo= rder' >> sh /usr/src/tools/install.sh -o root -g wheel -m 444 =EF=BF=BDcrtbegin= =2Eo >> /usr/obj/usr/src/lib32/usr/lib32/crtbegin.o >> sh /usr/src/tools/install.sh -o root -g wheel -m 444 =EF=BF=BDcrtend.o= >> /usr/obj/usr/src/lib32/usr/lib32/crtend.o >> sh /usr/src/tools/install.sh -o root -g wheel -m 444 =EF=BF=BDcrtbegin= T.o >> /usr/obj/usr/src/lib32/usr/lib32/crtbeginT.o >> sh /usr/src/tools/install.sh -o root -g wheel -m 444 =EF=BF=BDcrtbegin= =2ESo >> /usr/obj/usr/src/lib32/usr/lib32/crtbeginS.o >> sh /usr/src/tools/install.sh -o root -g wheel -m 444 =EF=BF=BDcrtend.S= o >> /usr/obj/usr/src/lib32/usr/lib32/crtendS.o >> =3D=3D=3D> lib/csu/i386-elf (obj,depend,all,install) >> rm -f .depend >> CC=3D'clang' mkdep -f .depend -a =EF=BF=BD =EF=BF=BD-I/usr/src/lib/csu= /i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include >> /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S >> clang -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99 -Wsystem-h= eaders >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wno-pointer-sign =EF=BF=BD-c >> /usr/src/lib/csu/i386-elf/crti.S >> clang -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99 -Wsystem-h= eaders >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wno-pointer-sign =EF=BF=BD-c >> /usr/src/lib/csu/i386-elf/crtn.S >> clang -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99 -Wsystem-h= eaders >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wno-pointer-sign -DGCRT -S -o gcrt1_c.s >> /usr/src/lib/csu/i386-elf/crt1_c.c >> sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' gcrt1_c.s >> clang -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99 -Wsystem-h= eaders >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wno-pointer-sign -c -o gcrt1_c.o gcrt1_c.s >> clang: warning: argument unused during compilation: '-I >> /usr/src/lib/csu/i386-elf/../common' >> clang: warning: argument unused during compilation: '-I >> /usr/src/lib/csu/i386-elf/../../libc/include' >> clang: warning: argument unused during compilation: '-std=3Dgnu99' >> clang: warning: argument unused during compilation: '-Wsystem-headers'= >> clang: warning: argument unused during compilation: '-Wall' >> clang: warning: argument unused during compilation: '-Wno-format-y2k' >> clang: warning: argument unused during compilation: '-W' >> clang: warning: argument unused during compilation: '-Wno-unused-param= eter' >> clang: warning: argument unused during compilation: '-Wstrict-prototyp= es' >> clang: warning: argument unused during compilation: '-Wmissing-prototy= pes' >> clang: warning: argument unused during compilation: '-Wpointer-arith' >> clang: warning: argument unused during compilation: '-Wreturn-type' >> clang: warning: argument unused during compilation: '-Wcast-qual' >> clang: warning: argument unused during compilation: '-Wwrite-strings' >> clang: warning: argument unused during compilation: '-Wswitch' >> clang: warning: argument unused during compilation: '-Wshadow' >> clang: warning: argument unused during compilation: '-Wunused-paramete= r' >> clang: warning: argument unused during compilation: '-Wcast-align' >> clang: warning: argument unused during compilation: '-Wchar-subscripts= ' >> clang: warning: argument unused during compilation: '-Winline' >> clang: warning: argument unused during compilation: '-Wnested-externs'= >> clang: warning: argument unused during compilation: '-Wredundant-decls= ' >> clang: warning: argument unused during compilation: '-Wold-style-defin= ition' >> clang: warning: argument unused during compilation: '-Wno-pointer-sign= ' >> clang -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common >> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99 -Wsystem-h= eaders >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wno-pointer-sign =EF=BF=BD-c >> /usr/src/lib/csu/i386-elf/crt1_s.S >> ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32 =EF=BF=BD-o = gcrt1.o -r >> crt1_s.o gcrt1_c.o >> ld: Relocatable linking with relocations from format elf64-x86-64-free= bsd >> (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported >> *** Error code 1 >> >> Stop in /usr/src/lib/csu/i386-elf. >> *** Error code 1 >> >> Stop in /usr/src. >> *** Error code 1 >> >> Stop in /usr/src. >> *** Error code 1 >> >> Stop in /usr/src. >> *** Error code 1 Today, I tried again, after CLANG/LLVM has been updated to version 3.0. Same error. This is the addendum I made to the /etc/make.conf: ## ## CLANG ## =2Eif defined(USE_CLANG) =2Eif !defined(CC) || ${CC} =3D=3D "cc" CC=3Dclang =2Eendif =2Eif !defined(CXX) || ${CXX} =3D=3D "c++" CXX=3Dclang++ =2Eendif # Don't die on warnings NO_WERROR=3D WERROR=3D # Don't forget this when using Jails! NO_FSCHG=3D =2Eendif I think I should file a PR ... oliver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC04F29.2050401>