Opened 13 years ago

Closed 13 years ago

#31997 closed defect (fixed)

eigen 2.0.16 build fails with clang

Reported by: thedoobs@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt)
Port: eigen

Description

Trying to install kstars, but it keeps failing at eigen. Attached is the debug output from "sudo port -d install eigen".

Attachments (1)

debug-31997.txt (4.9 MB) - added by thedoobs@… 13 years ago.

Change History (4)

Changed 13 years ago by thedoobs@…

Attachment: debug-31997.txt added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: clang added
Summary: eigen 2.0.16 install faileigen 2.0.16 build fails with clang

I see you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

comment:2 in reply to:  1 ; Changed 13 years ago by thedoobs@…

Replying to ryandesign@…:

I see you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

Your suggestion to use llvm-gcc-4.2 worked. I used "sudo port install eigen configure.compiler=llvm-gcc-4.2". Any ideas why this doesn't build under the default compiler? Thanks for the help!

comment:3 in reply to:  2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

Replying to thedoobs@…:

Replying to ryandesign@…:

I see you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

Your suggestion to use llvm-gcc-4.2 worked. I used "sudo port install eigen configure.compiler=llvm-gcc-4.2".

Thanks for verifying that. Fixed in r87078.

Any ideas why this doesn't build under the default compiler? Thanks for the help!

Not offhand. But clang is a newer / different compiler and it is stricter about some bad programming practices than gcc.

Note: See TracTickets for help on using tickets.