Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#42793 closed defect (fixed)

Clang-3.4 fails to build on 10.9.2

Reported by: ClintO (Clint O) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: clang-3.4

Description

I'm still trying to recover my ports. But this build fails with:

:info:build /opt/local/bin/ar cru 2> /dev/null /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/SubDir.lib/eprintf.o   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/SubDir.lib/int_util.o
:info:build make[4]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/libcompiler_rt.a] Error 127

Attachments (1)

main.log (6.3 MB) - added by ClintO (Clint O) 11 years ago.
Main.log of clang-3.4 build

Change History (13)

Changed 11 years ago by ClintO (Clint O)

Attachment: main.log added

Main.log of clang-3.4 build

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

Cc: jeremyhu@… removed
Keywords: clang removed
Owner: changed from macports-tickets@… to jeremyhu@…

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

"2> /dev/null" doesn't help much. Can you edit that out of the Makefile and try again.

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Or just run the command yourself and see why it's failing.

comment:4 Changed 11 years ago by ClintO (Clint O)

Can I just run the command anywhere on the filesystem like so?

/opt/local/bin/ar cru /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/SubDir.lib/eprintf.o   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/i386/SubDir.lib/int_util.o

sudo: /opt/local/bin/ar: command not found

For one thing, ar does not live at /opt/local/bin/ar, which would clearly be a showstopper. I've found what files a port belongs to once they are installed, but I don't know how to find what port _should_ have been there to put that file there...

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

$ port provides /opt/local/bin/ar
/opt/local/bin/ar is provided by: cctools

comment:6 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

It looks like clang-3.4 is missing that dependency.

comment:7 Changed 11 years ago by ClintO (Clint O)

And in fact if I install cctools, the install succeeds.

comment:8 Changed 11 years ago by rdoger6424@…

Same problem on 10.6, installing cctools fixes it.

comment:9 Changed 11 years ago by neverpanic (Clemens Lang)

Why is it using /opt/local/bin/ar anyway? It shouldn't even pick those up when they're not installed.

comment:10 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I moved to using the ones provided by cctools because the versions in /usr/bin might not be new enough.

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

Resolution: fixed
Status: newclosed

comment:12 in reply to:  10 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Replying to jeremyhu@…:

I moved to using the ones provided by cctools because the versions in /usr/bin might not be new enough.

See #42708 for example

Note: See TracTickets for help on using tickets.