From owner-freebsd-current@FreeBSD.ORG Fri Sep 19 00:09:13 2008 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 0F2291065684 for ; Fri, 19 Sep 2008 00:09:13 +0000 (UTC) (envelope-from akulatraxas@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id BBA018FC0A for ; Fri, 19 Sep 2008 00:09:12 +0000 (UTC) (envelope-from akulatraxas@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so37380ywe.13 for ; Thu, 18 Sep 2008 17:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gdbuxqtnVBqR2++5GbfF68UP4IKVBZyfMVDTfBjuBQk=; b=Yk0Hh4yTuUzaAHRe2kezlkPnXzi4e6Q6uAMv3k7bltd+HAB7BJX1dvv5q9vNjT6tyi s70S6M+WqYoGnhXDZSjG6/1+La5HEchTQ93FIKAws8W5tJ2DRTuqQDRdaJ9kOAIk5b1l tavhvnNWqPvTONQjmjWJcN3gLMEFGqcE5rxUI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=PaJhI6TB9ck9CKb9EZXxnJlyGAd7StGw2QzHyyNRTvqPpLwPipDEk2kyfd1dwu1GQ2 U4r6U0xRYgsbdEvuY6ilU3DZS8DNZNz1nxsXNe7pQsCQ8UQO8YN67ij8PJ02FhKQiMtf cHlXXUvsIbE1Tck3KSMvyFpcw1nidKuXiu928= Received: by 10.100.33.11 with SMTP id g11mr6250531ang.110.1221782951481; Thu, 18 Sep 2008 17:09:11 -0700 (PDT) Received: by 10.100.154.3 with HTTP; Thu, 18 Sep 2008 17:09:11 -0700 (PDT) Message-ID: <35e5bf980809181709k73e904d7tc413f9191219309a@mail.gmail.com> Date: Thu, 18 Sep 2008 21:09:11 -0300 From: "Daniel de Oliveira" To: "Michael Proto" In-Reply-To: <1de79840809181057v70cdc206o6f5017ca677bf528@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <35e5bf980809180340j171e39ao3d6bf6732ff4c165@mail.gmail.com> <1de79840809181057v70cdc206o6f5017ca677bf528@mail.gmail.com> Cc: current@freebsd.org Subject: Re: Current using -Os -pipe -march=pentium3m 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: Fri, 19 Sep 2008 00:09:13 -0000 Hi Michael Thanks for your help. Im using your options here but I have the same error (and yes, Im on the same situation about space). I try to add a new "if" with the path with no luck. My error: cc -Os -fno-strict-aliasing -pipe -march=pentium3m -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica -DHAVE_KERNEL_OPTION_HEADERS -include /usr/src/sys/i386/compile/MJOLNIR/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -I/usr/src/sys/i386/compile/MJOLNIR -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/uteval.c cc1: warnings being treated as errors /usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/uteval.c: In function 'AcpiUtExecute_CID': /usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/uteval.c:614: warning: 'ObjDesc' may be used uninitialized in this function *** Error code 1 Stop in /usr/src/sys/modules/acpi/acpi. *** Error code 1 Stop in /usr/src/sys/modules/acpi. *** Error code 1 Daniel de Oliveira ---- Network and System Analyst Security Specialist IBM RISC Specialist IBM Storage Specialist Linux/Unix Specialist Linux User #: 405334 On Thu, Sep 18, 2008 at 14:57, Michael Proto wrote: > > > On Thu, Sep 18, 2008 at 6:40 AM, Daniel de Oliveira > wrote: >> >> Hi all >> >> I have some problems here trying to compile my system using.. >> >> CPUTYPE?=pentium3m >> CFLAGS=-Os -pipe >> >> When I take off the CFLAGS, all things works properly. A lot of errors >> in different points occurs (kernel and buildworld), so at this point I >> dont a have log, btw, when I comment CFLAGS lines, everything compiles >> fine. Just for information, is there something wrong with that? >> >> >> >> Daniel de Oliveira >> ---- >> Network and System Analyst >> Security Specialist >> IBM RISC Specialist >> IBM Storage Specialist >> Linux/Unix Specialist >> Linux User #: 405334 >> _______________________________________________ >> 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" > > > > Use at your own risk/peril, but I ran into a similar problem trying to > compile 8-CURRENT with -Os (I have a small PCEngines ALIX SBC with a 32MB > flash, so space is at a premium). After several long bouts of > trial-and-error, I found that several apps and libraries won't compile with > -Os, so I've set those to -O and they work. > > Oh, and this is with -fno-strict-aliasing > > Here's my make.conf, it may save you some time: > > CPUTYPE?=pentium-mmx > CFLAGS= -Os -fno-strict-aliasing -pipe > COPTFLAGS= -O -pipe > > .if ${.CURDIR:M*/src/lib/libkse} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/lib/libarchive} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/lib/libngatm} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/lib/librpcsec_gss} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/lib/libthr} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/sbin/geom/*} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/sbin/ggate/*} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/usr.bin/csup} > CFLAGS= -O -pipe > .endif > .if ${.CURDIR:M*/src/usr.sbin/acpi/acpidump} > CFLAGS= -O -pipe > .endif > > > > -Proto >