Opened 12 years ago

Closed 11 years ago

#37337 closed defect (fixed)

py24-scipy, py25-scipy @0.11.0: build fails when python24/python25 was built with ccache

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: py24-scipy, py25-scipy

Description

Building py24-scipy or py25-scipy fails, but py26-scipy and py27-scipy build fine.

Attachments (2)

py24-scipy.main.log.bz2 (32.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
py25-scipy.main.log.bz2 (32.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: py24-scipy.main.log.bz2 added

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: py25-scipy.main.log.bz2 added

comment:1 Changed 12 years ago by skymoo (Adam Mercer)

Personally I don't run python24 and python25 as they are unsupported upstream, patches are welcome.

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Somehow it's putting two compilers into the command line:

/opt/local/bin/g++-mp-4.5 /usr/bin/clang -isysroot / -L/opt/local/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.8-fat-2.5/scipy/interpolate/src/_interpolate.o -Lbuild/temp.macosx-10.8-fat-2.5 -o build/lib.macosx-10.8-fat-2.5/scipy/interpolate/_interpolate.so

How is that command being constructed? That doesn't seem like the kind of problem you'd see from a too-old python version.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Also, the buildslaves don't have this problem, as there are binaries for the current version of py25-scipy and py24-scipy.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: py24-scipy, py25-scipy @0.11.0: build failspy24-scipy, py25-scipy @0.11.0: build fails when python24/python25 was built with ccache

Thanks, that gave me a point to start. The two compilers in the command made me think of a ccache problem, where someone is not quoting $CC or $CXX properly, but using "configure.ccache no" in py-scipy did not help. It turns out the choice of whether to use ccache is baked into python24 and python25:

/opt/local/lib/python2.4/config/Makefile:CC=		ccache /usr/bin/clang
/opt/local/lib/python2.4/config/Makefile:CONFIG_ARGS=	'--prefix=/opt/local' '--disable-dependency-tracking' '--with-cxx=/usr/bin/clang++' '--enable-shared' '--mandir=/opt/local/share/man' '--without-readline' '--disable-tk' '--enable-ipv6' '--disable-toolbox-glue' '--enable-universalsdk=/' 'CC=ccache /usr/bin/clang' 'CFLAGS=-pipe -O2  ' 'CPPFLAGS=-I/opt/local/include -D__DARWIN_UNIX03' 'LDFLAGS=-L/opt/local/lib  '
/opt/local/lib/python2.5/config/Makefile:CC=		ccache /usr/bin/clang
/opt/local/lib/python2.5/config/Makefile:CXX=		ccache /usr/bin/clang++
/opt/local/lib/python2.5/config/Makefile:CONFIG_ARGS=	 '--prefix=/opt/local' '--disable-dependency-tracking' '--enable-shared' '--enable-framework=/opt/local/Library/Frameworks' '--mandir=/opt/local/share/man' '--enable-ipv6' '--with-cxx=/usr/bin/clang++' '--enable-universalsdk=/' 'CC=ccache /usr/bin/clang' 'CFLAGS=-pipe -O2  ' 'LDFLAGS=-L/opt/local/lib  ' 'CPPFLAGS=-I/opt/local/include -D_DARWIN_C_SOURCE'

python26 and python27 don't have this.

Rebuilding python24 and python25 with configure.ccache disabled fixed the py24-scipy and py25-scipy build, but of course it would be nice to allow python24 and python25 to have been built with ccache.

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

Owner: ram@… deleted

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to macports-tickets@…

comment:7 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

Closing this now that py24 and py25 versions of scipy are gone.

Note: See TracTickets for help on using tickets.