Opened 12 years ago

Closed 12 years ago

#36391 closed defect (duplicate)

llvm-3.1, installation, command execution failed

Reported by: annelyse.thevenin@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: llvm-3.1

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am in Moutain Lion (since few days), I am a beginner in mac. I want to install some ports (R, gcc, ...) which need llvm-3.1.

The first time I wanted to install llvm-3.1 (directly or by the installation of R) I had this message:

Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 

After check if "/Applications/Xcode.app/Contents/Developer" exists, I write the sudo command suggested.

But I have an other message error (after sudo port clean llvm-3.1 and sudo port install llvm-3.1):

[...]
--->  Building llvm-3.1
Error: org.macports.build for port llvm-3.1 returned: command execution failed
Please see the log file for port llvm-3.1 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/llvm-3.1/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port llvm-3.1 failed

I put the main.log file in attachment.

Like suggested in wiki:ProblemHotlist#compiler I tried with foo=llvm-3.1:

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

then

sudo port clean foo
sudo port install apple-gcc42
sudo port install foo configure.compiler=apple-gcc-4.2

It is doesn't work.

Could you help me?

Attachments (1)

main.log (2.6 MB) - added by annelyse.thevenin@… 12 years ago.
main.log of _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/llvm-3.1

Change History (6)

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

Description: modified (diff)
Keywords: llvm install removed
Owner: changed from macports-tickets@… to jeremyhu@…

You're not supposed to literally type "foo"; it's a placeholder word, to be replaced with whatever port you're having trouble compiling with clang—in this case "llvm-3.1". However, in this case, you don't need to pursue this further, since we already know that llvm-3.1 should build just fine with clang; the problem is something else.

Your log contains the words "Skipping completed", which mean this was not a clean attempt. Please run "sudo port clean llvm-3.1" and then try again, and attach the new main.log if it fails again.

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed
2549	:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/llvm-3.1/work/llvm-3.1.src/utils/llvm-build/llvmbuild/__init__.py", line 1, in <module>
2550	:info:build     from main import main
2551	:info:build ImportError: No module named 'main'

#32575

Changed 12 years ago by annelyse.thevenin@…

Attachment: main.log added

main.log of _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/llvm-3.1

comment:3 Changed 12 years ago by annelyse.thevenin@…

Thank for your help.

I read #32575, unfortunately I don't understand the solution. Could you explain/tell what I have to do?

(I updated the log, sorry for the mistake)

comment:4 Changed 12 years ago by annelyse.thevenin@…

Resolution: duplicate
Status: closedreopened

comment:5 Changed 12 years ago by mf2k (Frank Schima)

Resolution: duplicate
Status: reopenedclosed

Please don't reopen duplicate tickets. The problem is being tracked there.

Note: See TracTickets for help on using tickets.