This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Building external modules using Sun Studio 12
Type: compile error Stage:
Components: Build Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: niemeyer Nosy List: Anil.Jangity, Erik.O'Shaughnessy, anilj, automatthias, niemeyer, tarek
Priority: normal Keywords:

Created on 2007-10-09 21:10 by anilj, last changed 2022-04-11 14:56 by admin.

Messages (6)
msg56293 - (view) Author: (anilj) Date: 2007-10-09 21:10
When compiling matplotlib, ditutils defaults to using
/opt/SUNWspro/bin/cc but it needs to use /opt/SUNWspro/bin/CC for
compiling c++ files.

% python2.5 setup.py build
building for GTK requires pygtk; you must be able to "import gtk" in
your build/install environmentTKAgg requires TkInter
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.solaris-2.10-i86pc-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib._agg' extension
/opt/SUNWspro/bin/cc -DNDEBUG -O -fast -xipo -xtarget=opteron -Kpic
-Iagg23/include -Isrc -Iswig -I/usr/local/include/python2.5 -c
src/agg.cxx -o build/temp.solaris-2.10-i86pc-2.5/src/agg.o
cc: No input file specified, no output generated
error: command '/opt/SUNWspro/bin/cc' failed with exit status 1


% python2.5 setup.py build --help-compiler
building for GTK requires pygtk; you must be able to "import gtk" in
your build/install environmentTKAgg requires TkInter
List of available compilers:
  --compiler=bcpp     Borland C++ Compiler
  --compiler=cygwin   Cygwin port of GNU C Compiler for Win32
  --compiler=emx      EMX port of GNU C Compiler for OS/2
  --compiler=mingw32  Mingw32 port of GNU C Compiler for Win32
  --compiler=msvc     Microsoft Visual C++
  --compiler=mwerks   MetroWerks CodeWarrior
  --compiler=unix     standard UNIX-style compiler


Doesn't look like I can override the default compiler using the above
options.

Thanks.
msg109751 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-09 15:25
I'm assuming this is still an issue, comments please.
msg109794 - (view) Author: Anil Jangity (Anil.Jangity) Date: 2010-07-09 20:54
Not sure. This had happened such a long time ago, not sure now. I do not have an environment now to re-test this.

Sorry.
msg116779 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-09-18 13:56
Is anyone out there using Sun Studio who can comment on this?  If there are no responses within a couple of weeks I'll close.
msg163870 - (view) Author: Maciej Bliziński (automatthias) Date: 2012-06-24 22:24
I just hit this issue when trying to build matplotlib. The setup script indeed tries to run the C compiler (/opt/SUNWspro/bin/cc) instead of the C++ compiler (/opt/SUNWspro/bin/CC) and fails. This was with Python 2.6.7.

Could the problem be that the UnixCCompiler.executables["compiler_cxx"] is defined to "cc" instead of "CC"?
msg233891 - (view) Author: Erik O'Shaughnessy (Erik.O'Shaughnessy) Date: 2015-01-12 21:57
Still seeing this issue on Solaris 11 with Solaris Studio compilers when building pandas 0.15.2 and matplotlib 1.4.2.
History
Date User Action Args
2022-04-11 14:56:27adminsetgithub: 45591
2020-11-07 17:15:15iritkatrielsetversions: + Python 3.8, Python 3.9, Python 3.10, - Python 3.1, Python 2.7, Python 3.2
2015-01-12 21:57:59Erik.O'Shaughnessysetnosy: + Erik.O'Shaughnessy
messages: + msg233891
2014-02-03 19:11:05BreamoreBoysetnosy: - BreamoreBoy
2012-06-24 22:24:11automatthiassetstatus: pending -> open
nosy: + automatthias
messages: + msg163870

2010-09-18 13:56:55BreamoreBoysetstatus: open -> pending

messages: + msg116779
2010-07-09 20:54:51Anil.Jangitysetnosy: + Anil.Jangity
messages: + msg109794
2010-07-09 15:25:37BreamoreBoysetversions: + Python 3.2, - Python 2.6
nosy: + BreamoreBoy

messages: + msg109751

components: - Distutils
2009-02-16 23:35:01akitadasetnosy: + tarek
components: + Build
versions: + Python 2.6, Python 3.1, Python 2.7, - Python 2.5
2008-03-17 17:01:18jafosetpriority: normal
assignee: niemeyer
nosy: + niemeyer
2007-10-09 21:10:51aniljcreate