Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17237 closed defect (fixed)

Update to SuiteSparse 3.2.0 fails

Reported by: mf2k (Frank Schima) Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: SuiteSparse

Description (last modified by mf2k (Frank Schima))

I attempted to update SuiteSparse to 3.2.0 but I receive the following error:

$ sudo port upgrade SuiteSparse
--->  Fetching SuiteSparse
--->  Attempting to fetch SuiteSparse-3.2.0.tar.gz from http://distfiles.macports.org/SuiteSparse
--->  Verifying checksum(s) for SuiteSparse
--->  Extracting SuiteSparse
--->  Configuring SuiteSparse
--->  Building SuiteSparse
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_math_SuiteSparse/work/SuiteSparse" && make " returned error 2
Command output: g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_parallel.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_kernel.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_analyze.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_assemble.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_cpack.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_csize.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_fcsize.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_debug.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_front.cpp
g++: unrecognized option '-no-cpp-precomp'
g++ -O3 -fno-common -no-cpp-precomp -fexceptions  -I../../CHOLMOD/Include -I../../UFconfig -I../Include -c ../Source/spqr_factorize.cpp
g++: unrecognized option '-no-cpp-precomp'
../Source/spqr_factorize.cpp: In function 'spqr_numeric<Entry>* spqr_factorize(cholmod_sparse**, long int, double, long int, spqr_symbolic*, cholmod_common*) [with Entry = double]':
../Source/spqr_factorize.cpp:709:   instantiated from here
../Source/spqr_factorize.cpp:585: error: 'memcpy' was not declared in this scope
../Source/spqr_factorize.cpp: In function 'spqr_numeric<Entry>* spqr_factorize(cholmod_sparse**, long int, double, long int, spqr_symbolic*, cholmod_common*) [with Entry = std::complex<double>]':
../Source/spqr_factorize.cpp:726:   instantiated from here
../Source/spqr_factorize.cpp:585: error: 'memcpy' was not declared in this scope
make[2]: *** [spqr_factorize.o] Error 1
make[1]: *** [all] Error 2
make: *** [default] Error 2

Error: Unable to upgrade port: 1

I'm using Xcode 3.1.1 on Mac OS X 10.5.5 on a MacPro.

Change History (6)

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

Description: modified (diff)

comment:2 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

By any chance, is your g++ not a link to /usr/bin/g++?

I ask because in your output, g++ complains about -no-cpp-precomp.
On my machine, /usr/bin/g++-4.0 silently accepts it.
/opt/local/bin/g++-mp-4.3, on the other hand, does issue a warning.

If this is the case, then r42051 might fix your problem.

In my recent upgrade to SuiteSparse, r41628, I neglected to ensure that configure.cxx was used instead of g++.
This is fixed in r42051.

comment:3 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Using the right compiler should stop this causing problems, but you should probably remove -no-cpp-precomp from configure.cflags as well. It only does something useful in Apple GCC older than 3.3; in 3.3 and later it's a no-op. FSF GCC has never accepted it.

comment:5 in reply to:  2 Changed 15 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

Replying to mcalhoun@…:

By any chance, is your g++ not a link to /usr/bin/g++?

$ which g++
/opt/local/bin/g++

But r42051 did fix the problem for me. Thanks!

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.