Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#46126 closed defect (invalid)

ld64 build fails with "command execution failed"

Reported by: mgs0lid_sn4ke@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: ld64

Description

Hi,

While installing gcc49, ld64 build fails. See output below :

sudo port install gcc49
Password:
--->  Computing dependencies for gcc49
--->  Dependencies to be installed: ld64 libgcc libmpc mpfr
--->  Building ld64
Error: org.macports.build for port ld64 returned: command execution failed
Error: Failed to install ld64
Please see the log file for port ld64 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64/main.log
Error: The following dependencies were not installed: ld64 libgcc libmpc mpfr
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc49 failed

Could you help on this issue ?

Thanks in advance

Attachments (1)

main.log (26.5 KB) - added by mgs0lid_sn4ke@… 10 years ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by mgs0lid_sn4ke@…

Attachment: main.log added

main.log

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

Keywords: ld64 command failed removed
Owner: changed from macports-tickets@… to jeremyhu@…

In the future, please Cc the port maintainers (port info --maintainers ld64), if any.

comment:2 in reply to:  description Changed 10 years ago by larryv (Lawrence Velázquez)

:info:build /usr/bin/clang++ -Os -Os -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.5/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/parsers/macho_relocatable_file.o src/ld/parsers/macho_relocatable_file.cpp
:info:build In file included from src/ld/parsers/macho_relocatable_file.cpp:37:
:info:build In file included from src/ld/parsers/libunwind/DwarfInstructions.hpp:43:
:info:build src/ld/parsers/libunwind/AddressSpace.hpp:38:10: fatal error: 'mach-o/dyld_priv.h' file not found
:info:build #include <mach-o/dyld_priv.h>
:info:build          ^

This file is provided by the dyld-headers port, which is a build dependency of ld64. Do you have that port installed? Does /opt/local/include/mach-o/dyld_priv.h exist?

comment:3 Changed 10 years ago by mgs0lid_sn4ke@…

The file does not exist because dyld-headers was not installed as a build dependency. I installed it manually and it works now. Thanks.

comment:4 in reply to:  3 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed

Okay, not sure how that might have happened; MacPorts should have made sure dyld-headers was present.

comment:5 Changed 10 years ago by mgs0lid_sn4ke@…

I don't get it, it's my second ticket since I've tried to build gcc49 after reinstalling MacPorts.. and it's still not working. I am going to open another ticket but I think something might corrupted in my new installation.

Note: See TracTickets for help on using tickets.