New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17237 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Update to SuiteSparse 3.2.0 fails

Reported by: macsforever2000@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: mcalhoun@…
Port: SuiteSparse

Description (last modified by macsforever2000@…) (diff)

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

  Changed 3 years ago by macsforever2000@…

  • description modified (diff)

follow-up: ↓ 5   Changed 3 years ago by mcalhoun@…

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.

  Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

  Changed 3 years ago by jmr@…

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.

in reply to: ↑ 2   Changed 3 years ago by macsforever2000@…

  • status changed from new to closed
  • resolution set to fixed

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!

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.