Date: Tue, 9 Apr 2013 23:11:06 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Christian Baer <christian.baer@uni-dortmund.de> Cc: freebsd-stable@freebsd.org Subject: Re: -Os breaks buildworld Message-ID: <A39D8343-9790-4158-B3E3-1D9D263CCE33@FreeBSD.org> In-Reply-To: <3845278.lKnuOXNTV5@lianli4> References: <3845278.lKnuOXNTV5@lianli4>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 9, 2013, at 14:50, Christian Baer = <christian.baer@uni-dortmund.de> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A39D8343-9790-4158-B3E3-1D9D263CCE33>