Subject: Re: compiler-related problems building lang/python2.2
To: NetBSD Packages Technical Discussion List <>
From: Frederick Bruckman <>
List: tech-pkg
Date: 05/08/2002 14:58:24
On Wed, 8 May 2002, Greg A. Woods wrote:

> => Removing rpath references to buildlink directories.
> ===> Building for python22-2.2.1
> cc -c -DNDEBUG /opt -I. -I./Include -DHAVE_CONFIG_H  -o Modules/python.o Modules/python.c
> cc: cannot specify -o with -c or -S and multiple compilations
> *** Error code 1
> $ gcc --version
> egcs-1.1.2
> $ uname -srm
> NetBSD 1.5W i386
> Why can't my gcc specify an output name for a .o file?

There's an argument missing. With two arguments lacking flags, it
looks to gcc like you're specifying two sources. Probably, the command
contains ${SOME_VARIABLE}/opt, where ${SOME_VARIABLE} is supposed to
start with "-I", perhaps, but ${SOME_VARIABLE} is not defined.