Opened 11 years ago

Closed 10 years ago

#42969 closed defect (fixed)

eigen: clang build fix

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc: RJVB (René Bertin), NicosPavlov
Port: eigen

Description

eigen fails to build with clang on Mavericks with this error:

/opt/local/var/macports/build/_Users_rschmidt_macports_dports_math_eigen/eigen/work/eigen-eigen-b23437e61a07/Eigen/src/QR/QrInstantiations.cpp:36:22: error: explicit instantiation cannot have a storage class
template static void ei_tridiagonal_qr_step(float* , float* , int, int, float* , int);
         ~~~~~~~     ^
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_math_eigen/eigen/work/eigen-eigen-b23437e61a07/Eigen/src/QR/QrInstantiations.cpp:37:22: error: explicit instantiation cannot have a storage class
template static void ei_tridiagonal_qr_step(double* , double* , int, int, double* , int);
         ~~~~~~~     ^
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_math_eigen/eigen/work/eigen-eigen-b23437e61a07/Eigen/src/QR/QrInstantiations.cpp:38:22: error: explicit instantiation cannot have a storage class
template static void ei_tridiagonal_qr_step(float* , float* , int, int, std::complex<float>* , int);
         ~~~~~~~     ^
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_math_eigen/eigen/work/eigen-eigen-b23437e61a07/Eigen/src/QR/QrInstantiations.cpp:39:22: error: explicit instantiation cannot have a storage class
template static void ei_tridiagonal_qr_step(double* , double* , int, int, std::complex<double>* , int);
         ~~~~~~~     ^
4 errors generated.
make[2]: *** [Eigen/CMakeFiles/Eigen2.dir/src/QR/QrInstantiations.cpp.o] Error 1

Attached is a patch to fix this, submitted on the mailing list by René J.V. Bertin.

Attachments (2)

Portfile-eigen.diff (711 bytes) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
patch-QrInstantiations.cpp.txt.diff (975 bytes) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile-eigen.diff added

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

comment:1 Changed 10 years ago by NicosPavlov

Cc: nicos@… added

Cc Me!

comment:2 Changed 10 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Patch committed in r120465, along with allowing install on Mavericks.

Note: See TracTickets for help on using tickets.