Opened 12 years ago

Closed 12 years ago

#33804 closed defect (fixed)

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 (Ryan Carsten Schmidt))

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 (5)

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

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

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

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

What version of OS X and Xcode are you using?

comment:3 Changed 12 years ago by thesaxophonist@…

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

comment:4 Changed 12 years ago by dusan.maliarik@…

Same here, prevents gimp2-devel to be installed.

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Seems to have been fixed by r91893.

Note: See TracTickets for help on using tickets.