From owner-freebsd-current@FreeBSD.ORG Thu Jun 5 23:58:52 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 E7D15106566C for ; Thu, 5 Jun 2008 23:58:52 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id BE1628FC25 for ; Thu, 5 Jun 2008 23:58:52 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: (qmail 12879 invoked from network); 5 Jun 2008 23:32:12 -0000 Received: from marconi.jellydonut.org (HELO localhost) ([216.27.165.148]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Jun 2008 23:32:11 -0000 Received: from plato.localnet (192.168.0.11) by marconi.localnet Message-ID: <4848776C.9080500@jellydonut.org> Date: Thu, 05 Jun 2008 19:31:56 -0400 From: Michael Proto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Lightning/0.8 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: "Michael W. Lucas" References: <20080605175020.GA11340@bewilderbeast.blackhelicopters.org> In-Reply-To: <20080605175020.GA11340@bewilderbeast.blackhelicopters.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: working 8.0 minimal nanoBSD config? 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: Thu, 05 Jun 2008 23:58:53 -0000 Michael W. Lucas wrote: > Hi, > > Anyone out there have a working config for a minimal nanoBSD setup? > > One that worked several months ago now doesn't work (yeah, I know, I > know, big surprise). This is on: > > FreeBSD stretchlimo.blackhelicopters.org 8.0-CURRENT FreeBSD 8.0-CURRENT #9: Thu Jun 5 10:38:43 EDT 2008 mwlucas@stretchlimo.blackhelicopters.org:/usr/obj/usr/src/sys/GENERIC i386 > > the build dies without an obvious error: > > -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -static -o test test.o > ===> bin/uuidgen (all) > cc -O2 -pipe -DNDEBUG -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/bin/uuidgen/uuidgen.c > cc -O2 -pipe -DNDEBUG -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -static -o uuidgen uuidgen.o > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > This isn't directly related to nanoBSD, but I've recently had problems trying to compile with -O2 or -Os flags via a standard buildworld. The errors generated look suspiciously like the same ones I was getting (although they're likely generic errors and I'm not clued-in enough to know the difference). This is on a 8-CURRENT system last supped 5/19/08. I was able to use "CFLAGS= -O -pipe" in /etc/make.conf to get around it, but as I'm also compiling for a system with an incredibly small disk (32 MB Flash), I've been doing a lot of trial-and-error settings in make.conf to find what works with -Os and what doesn't. After about a dozen buildworld attempts, here are the make.conf settings that worked: CFLAGS= -Os -fno-strict-aliasing -pipe COPTFLAGS= -O -pipe .if ${.CURDIR:M*/src/lib/*} 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 This is for an ALIX board, using a CPUTYPE of pentium-mmx, probably not that different than your Soekris actually. Shot in the dark, but perhaps this might help you as well, and save you the time it took me to get these right :) (and before anyone beats me with the standard disclaimer on changing the optimization settings in make.conf, I really do need the binaries to be as small as possible) -Proto