Opened 12 years ago

Last modified 4 years ago

#7028 new defect

Python/distutils uses C compiler for C++ code

Reported by: drkirkby Owned by: tbd
Priority: major Milestone: sage-8.1
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Reported upstream. Developers acknowledge bug. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

Using

  • Solaris 10 update 7 on SPARC
  • sage-4.1.2.alpha2
  • Sun Studio 12.1
  • An updated configure script to allow the Sun compiler to be used, I found that matplotlib-0.99.0 will not build.

CC was set to the Sun C compler, and CXX to the Sun C++ compiler, What appears to be happening is that matplotlib is taking the CC variable but using that to try to build C++ code.

Upstream: https://bugs.python.org/issue1222585

Change History (8)

comment:1 Changed 12 years ago by drkirkby

  • Report Upstream set to Reported upstream. Developers acknowledge bug.

This has been reported upstream to matplotlib-users@…. The developers acknowledge this is a bug, but to quote from Michael Droettboom.

This is a years-old known bug in distutils (which it looks like you've already commented on...). I've looked at it many times over those years, and it's really very difficult to fix from outside without terrible monkey-patching hacks that are certain to break on as many systems as they fix.

One suggested workaround is to defined CC to be a C++ compiler, then all code gets built with a C++ compiler. I have poined out that there will be a performance impact with this.

comment:2 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:6 Changed 6 years ago by jdemeyer

  • Component changed from build to packages: standard

comment:7 Changed 4 years ago by jdemeyer

  • Description modified (diff)
  • Milestone changed from sage-6.4 to sage-8.1
  • Summary changed from matplotlib 0.99.0 tries to use C compiler for C++ code. to Python/distutils uses C compiler for C++ code

comment:8 Changed 4 years ago by fbissey

So Jeroen, you want to resurrect this issue to fix distutils in sage?

Note: See TracTickets for help on using tickets.