From owner-freebsd-stable@FreeBSD.ORG Tue Apr 9 12:50:39 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 F04B73A3 for ; Tue, 9 Apr 2013 12:50:38 +0000 (UTC) (envelope-from christian.baer@uni-dortmund.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 864AF860 for ; Tue, 9 Apr 2013 12:50:37 +0000 (UTC) Received: from lianli4.localnet (p5099ba30.dip0.t-ipconnect.de [80.153.186.48]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LoekB-1V6JXZ3ump-00glXU; Tue, 09 Apr 2013 14:50:31 +0200 From: Christian Baer To: freebsd-stable@freebsd.org Subject: -Os breaks buildworld Date: Tue, 09 Apr 2013 14:50:29 +0200 Message-ID: <3845278.lKnuOXNTV5@lianli4> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.19-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:CArNWOKVk1TERG3v86JGwyQuoebVlbmQdBLbt/YOSaG 6CEuRxkX65mcCJ5ZKJfCTJ31O/0G5VQW68Xy1QqM8WsKLOywDJ 4t0zr50qstvt58WwFXMZu2pS5oKTS/BCWVonB9bc4ZlyNnqVJm UQ+5rnkNBJFKBDlbtwk81l1IL839yJ/GR4aUgxxRs/zXhgocOz +61NMrQH64U4YjiCsfMj5+UDPOmUoHzv1IM6LaDC9su6CKFbJe obKBpsf3rFO2KewuHSMQzM4prGCw3vvG2s76slmJ7ecYU7K6MX mewTG1iZnapuMF8QIeBqSELVlmcy3aUmPbsTTKI6U2LQ5AO3ui a1bIX52cF/49zNMHvC4g= 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 12:50:39 -0000 Hey everyone! This is not really an important issue, I just wanted to find out if anyone had it on his or her radar. I have a machine that isn't too powerful and hasn't got a lot of RAM either. So as an experiment I wanted to compile the world with the option for conserving space. Unfortunately, that didn't work out too well as it broke the compile (see last lines appended after my signature). I updated with svn to version 249301 before compiling. The same code compiled with O2 works fine. I know you are going to ask about my CFLAGS, so here they are: CPUTYPE= athlon-xp CFLAGS= -O2 -fno-strict-aliasing -pipe -mtune=athlon-xp -march=athlon-xp And yes, the CPU is really an Athlon XP. ;-) The only change I need to make to break the compile is -O2 to -Os. Has anyone noticed this too? Best regards, Chris famous last lines... :-) cc -Os -fno-strict-aliasing -pipe -mtune=athlon-xp -march=athlon-xp -march=athlon-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=gnu99 -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=athlon-xp -march=athlon-xp -march=athlon-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=gnu99 -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 Stop in /usr/src/lib/libthr. *** Error code 1 Stop in /usr/src. *** Error code 1