Ticket #32019 (closed defect: fixed)
auto-multiple-choice: build fails with clang
| Reported by: | cherbfred@… | Owned by: | clot@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | clang | Cc: | ryandesign@… |
| Port: | auto-multiple-choice |
Description (last modified by ryandesign@…) (diff)
I am new to macports, I just bought my first Mac this afternoon, so I don't know how to find in the log more details.
I got the following message
Error: Target org.macports.build returned: shell command failed (see log for details)
I will try to find the log and attach it to the ticket
Attachments
Change History
comment:1 Changed 19 months ago by ryandesign@…
- Description modified (diff)
- Cc ryandesign@… added
- Summary changed from error when trying to install auto-multiple-choice to auto-multiple-choice: build fails with clang
- Keywords clang added
- Owner changed from macports-tickets@… to clot@…
- Port set to auto-multiple-choice
Does updating to 0.514 (as in #32009) help?
If not, does using llvm-gcc-4.2 (as in wiki:ProblemHotlist#compiler) help?
comment:2 Changed 19 months ago by cherbfred@…
I tried to use the patch that does the updating but (once again, sorry, but I am new to all of that)
bash-3.2$ patch < auto-multiple-choice-0.514.diff patching file Portfile patch: **** Can't rename file /var/folders/nl/d9f23c0d2p13ff043qnmmmdc0000gn/T//po2TSk13 to Portfile : Permission denied
I don't know how to access to the 'tilde' with my computer, so instead of using something like "patch -p0 < ~/Downloads/....", I just did a copy and paste of the diff file in the directory obtained with the command cd $(port dir auto-multiple-choice)....
Then, when trying to use gcc-4.2, I got the same message :
bash-3.2$ sudo port clean auto-multiple-choice Password: ---> Cleaning auto-multiple-choice bash-3.2$ sudo port install auto-multiple-choice configure.compiler=gcc-4.2 ---> Computing dependencies for auto-multiple-choice ---> Fetching archive for auto-multiple-choice ---> Attempting to fetch auto-multiple-choice-0.491_2+latex.darwin_11.x86_64.tbz2 from http://packages.macports.org/auto-multiple-choice ---> Fetching auto-multiple-choice ---> Verifying checksum(s) for auto-multiple-choice ---> Extracting auto-multiple-choice ---> Configuring auto-multiple-choice ---> Building auto-multiple-choice Error: Target org.macports.build returned: shell command failed (see log for details) Log for auto-multiple-choice is at: /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 Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
comment:3 Changed 19 months ago by ryandesign@…
Please remember to use WikiFormatting and to preview before submitting, to ensure your formatting is right. I've fixed your formatting above.
On a standard U.S. QWERTY keyboard, the tilde is on the key above the tab key, when pressed with Shift. If you have a different keyboard or can't get that to work, you can also copy the tilde character (or the entire command) from above and paste it into the Terminal.
Yes, permission would be denied, unless you prefix the "patch" command with "sudo ".
When you tried the build with gcc-4.2, did the main.log still contain the same error "no matching constructor for initialization of 'cvflann::LshIndexParams'"? According to this page that should be fixed by switching the compiler from clang to llvm-gcc-4.2, or I would have thought to gcc-4.2. Did you try using llvm-gcc-4.2?
comment:4 Changed 19 months ago by cherbfred@…
Sorry for not using Wikiformatting, I will try to do that from now on. I wasn't able also to find how to copy and paste in Xterm, that's the reason why I had to find another way (looking on google for the tilde or the copy/paste only gave me solution for older mac system apparently).
Indeed, there is not anymore this error in the main.log. I found out that the error was now that gcc-4.2 was not on my Mac. Instead, I tried using llvm-gcc-4.2, and it worked !
Thanks a lot for all your advice,
Best,
Fred

