From owner-freebsd-current@FreeBSD.ORG Mon May 2 12:46:11 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FED11065673 for ; Mon, 2 May 2011 12:46:11 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id E59268FC15 for ; Mon, 2 May 2011 12:46:10 +0000 (UTC) Received: by pvg11 with SMTP id 11so4166556pvg.13 for ; Mon, 02 May 2011 05:46:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.35.228 with SMTP id l4mr9127066pbj.5.1304338770256; Mon, 02 May 2011 05:19:30 -0700 (PDT) Received: by 10.68.40.4 with HTTP; Mon, 2 May 2011 05:19:30 -0700 (PDT) In-Reply-To: <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> References: <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> Date: Mon, 2 May 2011 14:19:30 +0200 Message-ID: From: Olivier Smedts To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Building FreeBSD 9.0-CUR/amd64 with CLANG fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 12:46:11 -0000 2011/5/1 O. Hartmann : > Well, > I tried the first time building FreeBSD 9.0-CURRENT/amd64 (sources from > today's latest svn) and it failed (taken the /etc/make.conf addition from > 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-reorde= r' > sh /usr/src/tools/install.sh -o root -g wheel -m 444 =A0crtbegin.o > /usr/obj/usr/src/lib32/usr/lib32/crtbegin.o > sh /usr/src/tools/install.sh -o root -g wheel -m 444 =A0crtend.o > /usr/obj/usr/src/lib32/usr/lib32/crtend.o > sh /usr/src/tools/install.sh -o root -g wheel -m 444 =A0crtbeginT.o > /usr/obj/usr/src/lib32/usr/lib32/crtbeginT.o > sh /usr/src/tools/install.sh -o root -g wheel -m 444 =A0crtbegin.So > /usr/obj/usr/src/lib32/usr/lib32/crtbeginS.o > sh /usr/src/tools/install.sh -o root -g wheel -m 444 =A0crtend.So > /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 =A0 =A0-I/usr/src/lib/csu/i386-elf/../co= mmon > -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-head= ers > -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 =A0-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-head= ers > -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 =A0-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-head= ers > -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-head= ers > -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-paramete= r' > clang: warning: argument unused during compilation: '-Wstrict-prototypes' > clang: warning: argument unused during compilation: '-Wmissing-prototypes= ' > 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-parameter' > 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-definiti= on' > 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-head= ers > -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 =A0-c > /usr/src/lib/csu/i386-elf/crt1_s.S > ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32 =A0-o gcrt1.o -= r > crt1_s.o gcrt1_c.o > ld: Relocatable linking with relocations from format elf64-x86-64-freebsd > (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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."