Opened 12 years ago

Closed 12 years ago

#32215 closed defect (fixed)

ledger build fails with clang

Reported by: vishketan@… Owned by: johnw@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt)
Port: ledger

Description

Please see attached log file.

Attachments (2)

main.log (64.3 KB) - added by vishketan@… 12 years ago.
ledger.diff (594 bytes) - added by vishketan@… 12 years ago.
A possible fix for the problem

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by vishketan@…

Attachment: main.log added

Changed 12 years ago by vishketan@…

Attachment: ledger.diff added

A possible fix for the problem

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

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to johnw@…
Port: ledger added
Summary: ledger build failsledger build fails with clang

I see you were using clang. Did you try llvm-gcc-4.2 or gcc-4.2? See ProblemHotlist#compiler. If one of those works, we want to use those instead of a MacPorts compiler.

comment:2 Changed 12 years ago by vishketan@…

sudo port install ledger configure.compiler=llvm-gcc-4.2

fails, but

sudo port install ledger configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2

works.

comment:3 Changed 12 years ago by vishketan@…

This also works

sudo port install ledger configure.compiler=llvm-gcc-4.2 configure.cxx=llvm-g++-4.2

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

Keywords: clang added

Replying to vishketan@…:

sudo port install ledger configure.compiler=llvm-gcc-4.2

fails

Replying to vishketan@…:

This also works

sudo port install ledger configure.compiler=llvm-gcc-4.2 configure.cxx=llvm-g++-4.2

Those two commands should have produced identical results. Setting configure.cxx manually is only necessary for apple-gcc42 because of bug #31709.

comment:5 Changed 12 years ago by vishketan@…

You are indeed right. I did a port uninstall, clean and then reinstalled with

sudo port install ledger configure.compiler=llvm-gcc-4.2

and it worked!

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

Resolution: fixed
Status: newclosed

Thanks. r87548.

Note: See TracTickets for help on using tickets.