From owner-freebsd-current@FreeBSD.ORG Thu May 5 13:46:23 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96BE2106564A for ; Thu, 5 May 2011 13:46:23 +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 741E08FC12 for ; Thu, 5 May 2011 13:46:23 +0000 (UTC) Received: by pvg11 with SMTP id 11so1273730pvg.13 for ; Thu, 05 May 2011 06:46:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.43.66 with SMTP id u2mr3343364pbl.340.1304603182164; Thu, 05 May 2011 06:46:22 -0700 (PDT) Received: by 10.68.40.4 with HTTP; Thu, 5 May 2011 06:46:21 -0700 (PDT) In-Reply-To: <4DC2A0E5.5040602@zedat.fu-berlin.de> References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> Date: Thu, 5 May 2011 15:46:21 +0200 Message-ID: From: Olivier Smedts To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Clang error make buildworld 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: Thu, 05 May 2011 13:46:23 -0000 2011/5/5 O. Hartmann : > On 05/04/11 16:20, Dimitry Andric wrote: >> >> On 2011-05-04 15:44, Manfred Antar wrote: >> ... >>> >>> src.conf: >>> >>> WITHOUT_DYNAMICROOT=3Dyes >>> WITH_IDEA=3Dyes >>> .if !defined(CC) || ${CC} =3D=3D "cc" >>> CC=3Dclang >>> .endif >>> .if !defined(CXX) || ${CXX} =3D=3D "c++" >>> CXX=3Dclang++ >>> .endif >>> #Don't die on warnings >>> NO_WERROR=3D >>> WERROR=3D >> >> Aha. Please move the clang-related stuff to make.conf instead, e.g. >> this fragment: >> >> .if !defined(CC) || ${CC} =3D=3D "cc" >> CC=3Dclang >> .endif >> .if !defined(CXX) || ${CXX} =3D=3D "c++" >> CXX=3Dclang++ >> .endif >> #Don't die on warnings >> NO_WERROR=3D >> WERROR=3D >> > > > On a notebook (DELL Latitude E6510) I tried compiling world with CLANG. S= o > far, so good. It worked. But after rebooting I got a strange misbehaviour= of > the xdm login window (black/white instead of coloured), but this was only > some superficial symptome. The whole system seems to be corrupted. Hittin= g > tab key results like hitting exit in the console. The gcc 4.2.1 system > compiler isn't capable of producing binaries, see message below. At this > very moment, the box isn't usable anymore, I can't even compile a world w= ith > cc (see error below, that was generated by trying to compile a kernel and > I'm really confused why cc is used instead of clang). > > Well, the boxes I reported errors from prior to this are desktop systems > with nVidia (Fermi based) graphics boards using a driver BLOB 270.XX.XX > which is also used by the notebook. > > The desktop boxes uses C2D based intel chips, the notebook uses a Core-i5 > based chip. All systems got compiled with option > > CPUTYPE?=3Dnative Can you try without CPUTYPE "native", or with another value ? "native" is not a supported value in /usr/share/mk/bsd.cpu.mk With gcc I used : CPUTYPE?=3Dcore2 CFLAGS=3D-O2 -pipe -march=3Dnative NO_CPU_CFLAGS=3Dyes COPTFLAGS=3D-O2 -pipe -march=3Dnative NO_CPU_COPTFLAGS=3Dyes So that /usr/share/mk/bsd.cpu.mk could set the right variables and I could set my own "-march" value in CFLAGS for gcc. But now for HEAD (which has a newer gcc and clang) I use : CPUTYPE?=3Dcore2 CFLAGS=3D-O2 -pipe -march=3Dcore2 NO_CPU_CFLAGS=3Dyes COPTFLAGS=3D-O2 -pipe -march=3Dcore2 NO_CPU_COPTFLAGS=3Dyes Because with clang, -march=3Dnative often breaks buildworld, while -march=3Dcore2 is ok. First, try to see if you buildworld is still broken with a different (or empty!) make.conf. > I guess the first compilation with CLANG "destroyed" the base' system > compiler, at this moment I'm incapable of switching back. Floating like a > dead man in the water. > > > Any suggestions? > > Regards and thanks in advance, > Oliver > --- > awk -f /usr/src/sys/tools/usbdevs2h.awk /usr/src/sys/dev/usb/usbdevs -h > awk -f /usr/src/sys/tools/usbdevs2h.awk /usr/src/sys/dev/usb/usbdevs -d > rpcgen -hM /usr/src/sys/kgssapi/gssd.x | grep -v pthread.h > gssd.h > cc1: internal compiler error: Bus error: 10 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > rpcgen -c /usr/src/sys/kgssapi/gssd.x -o gssd_xdr.c > cc1: internal compiler error: Bus error: 10 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/MUNIN. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > _______________________________________________ > 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."