New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32215 (closed defect: fixed)

Opened 18 months ago

Last modified 18 months ago

ledger build fails with clang

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

Description

Please see attached log file.

Attachments

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

Change History

Changed 18 months ago by vishketan@…

Changed 18 months ago by vishketan@…

A possible fix for the problem

comment:1 Changed 18 months ago by ryandesign@…

  • Cc ryandesign@… added
  • Owner changed from macports-tickets@… to johnw@…
  • Port set to ledger
  • Summary changed from ledger build fails to ledger 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 18 months 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 follow-up: ↓ 4 Changed 18 months 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 18 months ago by ryandesign@…

  • 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 18 months 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 18 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Thanks. r87548.

Note: See TracTickets for help on using tickets.