AMC 1.2.1 fails to build on mac OSX macports (Bug #219)
Description
When upgrading my macports on Mac OS X 10.7.5 the upgraded AMC 1.2.1 was fetched, however in the build stage it fails with some errors:
---> Attempting to fetch auto-multiple-choice_1.2.1_precomp.tar.gz from http://lil.fr.distfiles.macports.org/auto-multiple-choice
---> Verifying checksums for auto-multiple-choice
---> Extracting auto-multiple-choice
---> Configuring auto-multiple-choice
---> Building auto-multiple-choice
Error: org.macports.build for port auto-multiple-choice returned: command execution failed
Please see the log file for port auto-multiple-choice for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log
I am attaching the log file for reference, conflict seems to arise with some functions in opencv, but I'm not sure.
Regards,
History
Updated by Jose Goicolea over 11 years ago
Sorry, my mistake, the attached file was not the log file. I do not see how to attach a new log file, so I'll create another issue
Updated by Joël Brogniart over 11 years ago
What version of Xcode do you have?
Updated by Jose Goicolea over 11 years ago
I have xcode 4.6.2
Joël Brogniart wrote:
What version of Xcode do you have?
Updated by Joël Brogniart over 11 years ago
I should have asked before, what is your MacPorts version?
I'm testing installation with 10.7.5, Xcode 4.6.2, MacPorts 2.2.0…
Updated by Joël Brogniart over 11 years ago
My test succeeded. Please, could you do the following.
sudo port clean auto-multiple-choice
then
sudo port build auto-multiple-choice
then attach the log file here (should be in /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log).
Updated by Jose Goicolea over 11 years ago
Hello, first my system info, which is identical: OS-X 10.7.5, Xcode 4.6.2, Macports 2.2.0
I have performed a macports selfupdate, then a clean / build of auto-multiple-choice as suggested. The error persists, I include the log file attached.
Thanks for your attention,
- File AMC_main.log added
Updated by Joël Brogniart over 11 years ago
The problem occurs during the compilation of opencv and is related to the compiler used. It is not AMC directly the culprit. I'll try to find if there is a simple solution to this. In the mean time, could you send me the result of the command (in Terminal.app):
port list installed|grep opencv
and the result of:
clang -v
so I can see installed opencv and compiler version.
Did you update Xcode's Command Line Tools?
Updated by Jose Goicolea over 11 years ago
Thank you!
I updated the command line tools within xcode, and I think that did the job. The package auto-multiple-choice now builds without errors!
Many thanks indeed for your help and contribution to this excellent program.
With regard to the other questions, probably not relevant now, the answers are:
user@trueno:~$ port list installed | grep opencv
opencv @2.4.6.1 graphics/opencv
user@trueno:~$ clang -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
Regards,
Updated by Joël Brogniart over 11 years ago
Happy to hear that the update solved the problem. And happy that the solution was a simple one!
Updated by Anirvan Sarkar almost 11 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed