[csw-maintainers] issue when trying to provide a python binding

Peter FELECAN pfelecan at opencsw.org
Fri May 8 18:05:26 CEST 2009


Again, I'm trying to provide a python binding and I obtain a strange
situation, in my opinion incorrect:

CFLAGS="-O3 -march=i486  -Wall -DSWF_LITTLE_ENDIAN -fno-strict-aliasing" \
 /opt/csw/bin/python setup.py build
running build
running build_py
creating build
creating build/lib.solaris-2.10-i86pc-2.6
copying [...]/py_ext/ming.py -> build/lib.solaris-2.10-i86pc-2.6
copying [...]/py_ext/mingc.py -> build/lib.solaris-2.10-i86pc-2.6
running build_ext
building '_mingc' extension
creating build/temp.solaris-2.10-i86pc-2.6
[...]
gcc -DNDEBUG -O -O3 -march=i486 -Wall -DSWF_LITTLE_ENDIAN
 -fno-strict-aliasing \
 -I/usr/local/include [...]/py_ext/ming_wrap.o
/opt/studio/SOS11/SUNWspro/bin/cc -G -O3 -march=i486 -Wall \
 -DSWF_LITTLE_ENDIAN \
-fno-strict-aliasing [...]/py_ext/ming_wrap.o \
-L../src/.libs -L/usr/local/lib/ -lming -lz -lpng -lungif \
-lpython2.6 -o build/lib.solaris-2.10-i86pc-2.6/_mingc.so
unable to execute /opt/studio/SOS11/SUNWspro/bin/cc: No such file or directory
error: command '/opt/studio/SOS11/SUNWspro/bin/cc' failed with exit status 1

There are 2 issues:

1. I'm using gcc, so why cc is used? Because Python is generated with
   Sun Studio?

2. How comes that a specific build machine path is used, i.e. Sun
   Studio is installed by default in /opt/SUNWspro (I know that it can
   be installed at the administrator's convenience and on the build
   machines is installed in a /opt/studio directory but that is another
   story)

The second issue is a show stopper for me...
-- 
Peter



More information about the maintainers mailing list