From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 07:13:18 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 A94081065670; Tue, 6 Sep 2011 07:13:18 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF3E8FC0A; Tue, 6 Sep 2011 07:13:14 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1R0pqM-0002BJ-17>; Tue, 06 Sep 2011 09:13:14 +0200 Received: from e178022097.adsl.alicedsl.de ([85.178.22.97] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1R0pqL-0001RA-U6>; Tue, 06 Sep 2011 09:13:14 +0200 Message-ID: <4E65C809.1090605@zedat.fu-berlin.de> Date: Tue, 06 Sep 2011 09:13:13 +0200 From: "Hartmann, O." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.1) Gecko/20110901 Thunderbird/6.0.1 MIME-Version: 1.0 To: Olivier Smedts References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E654664.1010504@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.22.97 Cc: Volodymyr Kostyrko , freebsd-current@freebsd.org, Dimitry Andric Subject: Re: Compiling BETA2 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: Tue, 06 Sep 2011 07:13:18 -0000 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=\"/var/at/spool\" -DVERSION=\"2.9\" -DDAEMON_UID=1 >>>>> -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' -DDEFAULT_AT_QUEUE=\'c\' >>>>> -DPERM_PATH=\"/var/at/\" -I/usr/src/libexec/atrun/../../usr.bin/at >>>>> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector >>>>> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized >>>>> -Wno-pointer-sign >>>>> -c /usr/src/libexec/atrun/atrun.c >>>> Try removing "-march=native" from your CFLAGS. >>>> >>>> I have the exact same problem since months on my Core i7 CPU when >>>> using "-march=native" or "-march=corei7". No problems for me with >>>> "-march=core2" though. >>> It so nice you have noted that. I'll be much happier if you also spare some >>> time reading my previous emails. >> Or you could search this mailing list for the exact same problem >> reported some time ago. > Sorry for double-post. My point was : this does not seem to be a > buildworld problem, but rather a clang problem with coreiX's latest > instructions. Should be reported upstream IMO. > On my Dell Latitude E6510 notebook, equipted with one of the former Core-i5 "Lynnfield" CPUs, I got into a even worse situation. I can build the whole system with -march=native (buildworld), install it and at least run it. But then in multiuser mode, hitting the tab key, always ends up in a forced logout (it is with every shell, but only in multiuser mode, noct when starting the box in single user mode). Well, so far. Thought it was a fair chance, tried to revert what I've done and start compiling the OS again with either -march=core2 ore simply omit this. No chance! Shortly after start building world, I receive a weird error that cc1 failed compiling something, I need to make a report. When switching back to the legacy gcc 4.2, the same error occurs. The system isn't usable anymore. The OS is instable, hitting TAB key always ends up "logged out". I guess the only way to revert this is to install the box from scratch. I tried installing a base system from an installation DVD, it works so far. Oliver