Opened 13 years ago

Last modified 12 years ago

#31046 closed defect

py27-matplotlib fails to build with clang (Xcode 4.2) — at Version 5

Reported by: rex4539 (Dimitris Apostolou) Owned by: ram@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: clang Cc: bharanidharan.aj@…
Port: py27-matplotlib

Description (last modified by skymoo (Adam Mercer))

:info:build In file included from src/backend_agg.cpp:9:
:info:build In file included from src/_backend_agg.h:32:
:info:build agg24/include/agg_renderer_outline_aa.h:1368:45: error: binding of reference to type 'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' drops qualifiers
:info:build         line_profile_aa& profile() { return *m_profile; }
:info:build                                             ^~~~~~~~~~
:info:build 1 error generated.
:info:build error: command '/Developer/usr/bin/clang' failed with exit status 1

Change History (7)

Changed 13 years ago by rex4539 (Dimitris Apostolou)

Attachment: main.log added

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ram@…
Port: py27-matplotlib added

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

I don't have access to Xcode-4.2, so I doubt I can look into this until it's been released to the public. You could try asking upstream? Patches are welcome.

Sorry for the delay but I've been travelling and then my machine was in for repair.

comment:3 Changed 13 years ago by skymoo (Adam Mercer)

As Xcode-4.2 has been released I upgraded and py27-matplotlib built without issue. I noticed that the compiler used was still llvm-gcc-4.2 and not clang. Did you do something specific to select clang?

comment:4 Changed 13 years ago by rex4539 (Dimitris Apostolou)

Still fails here and seems to use Clang by default.

Even if I try force to compile with gcc with a command like:

sudo port install py27-matplotlib configure.compiler=gcc-4.2 configure.cc=gcc-4.2 configure.cxx=g++-4.2 configure.objc=cpp-4.2

Attaching new log.

Changed 13 years ago by rex4539 (Dimitris Apostolou)

Attachment: main.2.log added

comment:5 Changed 13 years ago by skymoo (Adam Mercer)

Cc: bharanidharan.aj@… added
Description: modified (diff)
Version: 2.0.1

has duplicate, #31608

Note: See TracTickets for help on using tickets.