Opened 10 years ago

Closed 10 years ago

#42708 closed defect (fixed)

clang-3.3: build fails on SL: unknown load command

Reported by: wn.apply@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ctreleaven (Craig Treleaven), sarcas (James Bell)
Port: clang-3.3

Description (last modified by mf2k (Frank Schima))

--->  Building clang-3.3
Error: org.macports.build for port clang-3.3 returned: command execution failed
Please see the log file for port clang-3.3 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/main.log
Error: Unable to upgrade port: 1
Error rebuilding clang-3.3
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 382)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 93)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4857)

Anyone knows how to solve this problem ? thanks!

Attachments (1)

main.log (5.2 MB) - added by rdoger6424@… 10 years ago.
Error when building clang-3.3 on OS 10.6 from source

Change History (12)

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

Description: modified (diff)
Port: clang-3.3 added

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers clang-3.3).

You have provided no useful information to debug your problem. Please attach the main.log file and re-open the ticket.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

It's odd that no relevant error message is shown in the output. The output above does at least show that this error occurred during revupgrade, so we know revupgrade thought some port was broken, but the output does not tell us which port that is. So yes, we need more information.

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jeremyhu@…
Summary: error when install libgcc on mavericksclang-3.3: build fails

Have you been able to figure out any more about this problem? If not, I suggest you clean and try again:

sudo port clean clang-3.3
sudo port install clang-3.3

If this fails, please attach the main.log file.

Changed 10 years ago by rdoger6424@…

Attachment: main.log added

Error when building clang-3.3 on OS 10.6 from source

comment:4 Changed 10 years ago by rdoger6424@…

I've experienced something similar on 10.6. This is either an identical bug to #42668 , or a separate bug that I got when doing sudo port install -s clang-3.3 to work around that other bug. Assuming that this bug is different, I've attached the main log file from my attempt to build.

Last edited 10 years ago by rdoger6424@… (previous) (diff)

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

:info:build llvm[3]: Fixing LC_ID_DYLIB of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
:info:build install_name_tool /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib -id /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
:info:build install_name_tool: for architecture i386 object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib malformed object (unknown load command 8)

clang-3.3 basically needs the same changes as went into r117562

comment:6 Changed 10 years ago by rdoger6424@…

Something changed today; I tried it again just now and the binary package installed (so bug #42668 appears to be fixed?). I'll try again with source after my current upgrade is done (the borked clang was keeping me from doing a proper upgrade)

Last edited 10 years ago by rdoger6424@… (previous) (diff)

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

Status: newassigned
Summary: clang-3.3: build failsclang-3.3: build fails on SL: unknown load command

comment:8 Changed 10 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:9 Changed 10 years ago by sarcas (James Bell)

Cc: james.bell@… added

Cc Me!

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

Was this fixed by r120265?

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.