From owner-freebsd-stable@FreeBSD.ORG Fri Mar 28 11:04:12 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC7FA106566B for ; Fri, 28 Mar 2008 11:04:12 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id D09518FC1E for ; Fri, 28 Mar 2008 11:04:12 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id B65DC1CC060; Fri, 28 Mar 2008 04:04:12 -0700 (PDT) Date: Fri, 28 Mar 2008 04:04:12 -0700 From: Jeremy Chadwick To: Rance Hall Message-ID: <20080328110412.GA21546@eos.sc1.parodius.com> References: <845c0f80803261123j6e18e611r7b481fabb2f11ecf@mail.gmail.com> <845c0f80803261848h7dd72076n40ff9cc1ffd5cb4c@mail.gmail.com> <845c0f80803270359m63b2ae7dw48fa7b967ef23f2e@mail.gmail.com> <845c0f80803271452v1e08b9e0u35d16ca9d3b270c4@mail.gmail.com> <845c0f80803271919i18172cbdk4855c47067fcb312@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <845c0f80803271919i18172cbdk4855c47067fcb312@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: compile error while building kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2008 11:04:13 -0000 On Thu, Mar 27, 2008 at 09:19:24PM -0500, Rance Hall wrote: > [/usr/src/sys/i386/compile/GENERIC] root@rance-freebsd# make > cc -c -o -pipe -march=athlon-mp -std=c99 -g -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign > -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq > -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -mno-sse3 -ffreestanding ../../../i386/i386/genassym.c > NM='nm' sh ../../../kern/genassym.sh genassym.o > assym.s > nm: 'genassym.o': No such file I see the problem. Look closely there at the cc line: cc -c -o -pipe ... genassym.c There is no object destination specified via -o. This is why no .o file is being created. What I'd like to know is why gcc isn't complaining about arguments being incorrect. It should be: cc -c -pipe ... genassym.c Are you sure you aren't setting something in make.conf pertaining to optimisations, up, using lowercase -o instead of capital -O ? This would cause what you're seeing. Look closely at walt's cc line and you'll see what I mean: root@k9/usr/src/sys/i386/compile/GENERIC #make cc -c ... -O ... ../../../i386/i386/genassym.c -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |