From owner-freebsd-stable@FreeBSD.ORG Tue Apr 9 21:11:15 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 826BD6E3 for ; Tue, 9 Apr 2013 21:11:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 49B23E63 for ; Tue, 9 Apr 2013 21:11:15 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::4d63:2bde:2d40:a6d0] (unknown [IPv6:2001:7b8:3a7:0:4d63:2bde:2d40:a6d0]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 83EDC5C44; Tue, 9 Apr 2013 23:11:14 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: -Os breaks buildworld From: Dimitry Andric In-Reply-To: <3845278.lKnuOXNTV5@lianli4> Date: Tue, 9 Apr 2013 23:11:06 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3845278.lKnuOXNTV5@lianli4> To: Christian Baer X-Mailer: Apple Mail (2.1503) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 21:11:15 -0000 On Apr 9, 2013, at 14:50, Christian Baer = wrote: ... > CPUTYPE=3D athlon-xp > CFLAGS=3D -O2 -fno-strict-aliasing -pipe -mtune=3Dathlon-xp = -march=3Dathlon-xp As mentioned in this thread: - CPUTYPE should be set with ?=3D, not =3D - CFLAGS should be set with +=3D, not =3D - Do not explicitly add -march or -mtune, use CPUTYPE exclusively - If you want -Os optimization, do not put -O2 in CFLAGS ... > cc -Os -fno-strict-aliasing -pipe -mtune=3Dathlon-xp -march=3Dathlon-xp > -march=3Dathlon-xp -DPTHREAD_KERNEL = -I/usr/src/lib/libthr/../libc/include > -I/usr/src/lib/libthr/thread -I/usr/src/lib/libthr/../../include > -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libthr/sys > -I/usr/src/lib/libthr/../../libexec/rtld-elf > -I/usr/src/lib/libthr/../../libexec/rtld-elf/i386 > -I/usr/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS > -DSYSCALL_COMPAT -std=3Dgnu99 -Wsystem-headers -Werror -Wall > -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized = -Wno-pointer-sign > -c /usr/src/lib/libthr/sys/thr_error.c cc -Os -fno-strict-aliasing = -pipe > -mtune=3Dathlon-xp -march=3Dathlon-xp -march=3Dathlon-xp = -DPTHREAD_KERNEL > -I/usr/src/lib/libthr/../libc/include -I/usr/src/lib/libthr/thread=20 > -I/usr/src/lib/libthr/../../include > -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libthr/sys > -I/usr/src/lib/libthr/../../libexec/rtld-elf > -I/usr/src/lib/libthr/../../libexec/rtld-elf/i386 > -I/usr/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS > -DSYSCALL_COMPAT -std=3Dgnu99 -Wsystem-headers -Werror -Wall > -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized = -Wno-pointer-sign > -c /usr/src/lib/libthr/thread/thr_affinity.c > cc1: warnings being treated as errors > /usr/src/lib/libthr/thread/thr_affinity.c: In function > '_pthread_setaffinity_np': /usr/src/lib/libthr/thread/thr_umtx.h:103: > warning: inlining failed in call to '_thr_umutex_unlock': --param > max-inline-insns-single limit reached > /usr/src/lib/libthr/thread/thr_affinity.c:56: warning: called from = here > /usr/src/lib/libthr/thread/thr_umtx.h:103: warning: inlining failed in > call to '_thr_umutex_unlock': --param max-inline-insns-single limit > reached /usr/src/lib/libthr/thread/thr_affinity.c:64: warning: called > from here *** Error code 1 Try building with NO_WERROR=3D in make.conf or src.conf. In this case, gcc is warning that it cannot inline some function, but that should not matter for the result.