Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#38965 closed defect (fixed)

Error: org.macports.build for port libkdcraw returned: command execution failed

Reported by: phy.ywl@… Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: libkdcraw

Description

This error is a result of having multiple arch option in cmake flags.
Changing

CMAKE_CXX_FLAGS:STRING='-pipe -O2 -arch x86_64 -arch i386 '
CMAKE_C_FLAGS:STRING='-pipe -O2 -arch x86_64 -arch i386 '
CMAKE_OSX_ARCHITECTURES:STRING=x86_64;i386[[BR]] CMAKE_SHARED_LINKER_FLAGS:STRING= -arch x86_64 -arch i386

to

CMAKE_CXX_FLAGS:STRING='-pipe -O2 -arch x86_64 '
CMAKE_C_FLAGS:STRING='-pipe -O2 -arch x86_64 '
CMAKE_OSX_ARCHITECTURES:STRING=x86_64[[BR]] CMAKE_SHARED_LINKER_FLAGS:STRING= -arch x86_64

in CMakeCache.txt located within the /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_libkdcraw/libkdcraw/work/build/ solved the problem.
As the log was auto deleted after successful build, i cannot show the original error message.
Furthermore, libkdcraw was a dependency when building digikam.
Hopes this saves peoples' time on similar problem as I found no similar report or solutions.

Change History (4)

comment:1 Changed 11 years ago by phy.ywl@…

Forgot to mention it was under OSX 10.8.3 and xcode 4.6.1, no additional configuration on the macport.

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Keywords: libkdcraw removed
Owner: changed from macports-tickets@… to nicos@…
Port: libkdcraw added
Type: enhancementdefect

In the future, please fill in the Port field and Cc the port maintainer(s).

comment:3 Changed 11 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

I assume from the architectures displayed that you tried to install the +universal variant. By testing it, I could see that there were indeed issues with it, thanks for reporting it. However, the workaround you described does not seem to be a proper solution to me, as other ports depending on it would not find the required binaries if built universal.

The issue should be solved with r105669, by using the muniversal port group.

comment:4 Changed 11 years ago by phy.ywl@…

Thanks for fixing that, the issue doesn't appear again after updating, tested with "port build libkdcraw" which had problem. And thanks for reminding me that there's other concern on my fix.

Note: See TracTickets for help on using tickets.