Date: Fri, 28 Mar 2008 04:04:12 -0700 From: Jeremy Chadwick <koitsu@freebsd.org> To: Rance Hall <ranceh@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: compile error while building kernel Message-ID: <20080328110412.GA21546@eos.sc1.parodius.com> In-Reply-To: <845c0f80803271919i18172cbdk4855c47067fcb312@mail.gmail.com> References: <845c0f80803261123j6e18e611r7b481fabb2f11ecf@mail.gmail.com> <fseprb$s9u$1@ger.gmane.org> <845c0f80803261848h7dd72076n40ff9cc1ffd5cb4c@mail.gmail.com> <845c0f80803270359m63b2ae7dw48fa7b967ef23f2e@mail.gmail.com> <fsg85s$33j$1@ger.gmane.org> <845c0f80803271452v1e08b9e0u35d16ca9d3b270c4@mail.gmail.com> <alpine.BSF.1.10.0803271807340.48020@x9.ybpnyarg> <845c0f80803271919i18172cbdk4855c47067fcb312@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080328110412.GA21546>