Subject: compiler-related problems building lang/python2.2
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Greg A. Woods <>
List: tech-pkg
Date: 05/08/2002 15:48:55
This is very weird.  Should I send-pr?

checking for gcc... cc
checking whether the C compiler (cc -I/var/package-obj/lang/python22/work/.buildlink/include -O2 -g -pipe -I/var/package-obj/lang/python22/work/.buildlink/include  -L/var/package-obj/lang/python22/work/.buildlink/lib  -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -I/var/package-obj/lang/python22/work/.buildlink/include -O2 -g -pipe -I/var/package-obj/lang/python22/work/.buildlink/include  -L/var/package-obj/lang/python22/work/.buildlink/lib  -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
[[ .... ]]
=> 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
$ uname -srm
NetBSD 1.5W i386

Why can't my gcc specify an output name for a .o file?

								Greg A. Woods

+1 416 218-0098;  <>;  <>;  <>
Planix, Inc. <>; VE3TCP; Secrets of the Weird <>