New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33804 (closed defect: fixed)

Opened 14 months ago

Last modified 9 months ago

lensfun fails to compile with clang

Reported by: thesaxophonist@… Owned by: julians37@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: lensfun

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

lensfun fails to compile with clang due to some assembly code in cpuid.cpp:

...
:info:build clang: warning: argument unused during compilation: '-s'
:info:build libs/lensfun/cpuid.cpp:65:13: error: cannot compile this __asm__ yet
:info:build             cpuid (0x00000000);
:info:build             ^~~~~~~~~~~~~~~~~~
:info:build libs/lensfun/cpuid.cpp:28:5: note: instantiated from:
:info:build     asm ( \
:info:build     ^~~~~~~
...

Workaround:

sudo port clean lensfun
sudo port install lensfun configure.compiler=llvm-gcc-4.2

Change History

comment:1 Changed 14 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to julians37@…
  • Description modified (diff)
  • Port set to lensfun

Remember to use WikiFormatting, please, and to fill in the Port field.

comment:2 Changed 14 months ago by ryandesign@…

What version of OS X and Xcode are you using?

comment:3 Changed 14 months ago by thesaxophonist@…

Sorry about the formatting, didn't realize. I'm running 10.7.3 and Xcode 4.3.2.

comment:4 Changed 13 months ago by dusan.maliarik@…

Same here, prevents gimp2-devel to be installed.

comment:5 Changed 9 months ago by jmr@…

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

Seems to have been fixed by r91893.

Note: See TracTickets for help on using tickets.