#50130 closed defect (fixed)
ld64 @2 invalid value 'c++11' in '-std=c++11'
Reported by: | macports@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | ld64 |
Description
I was trying to install gnupg but it appears that I am unable to build anything. I am using Xcode 4.6.3 (4H1503) on Lion. This is the screen output when I build.
$ sudo port install gnupg ---> Computing dependencies for gnupg ---> Cleaning gnupg ---> Scanning binaries for linking errors ---> Found 40 broken file(s), matching files to ports ---> Found 3 broken port(s), determining rebuild order ---> Rebuilding in order mysql55 @5.5.44 llvm-3.5 @3.5.1 ghc @7.8.3 ---> Computing dependencies for mysql55 ---> Cleaning mysql55 ---> Computing dependencies for ld64-latest ---> Building ld64-latest Error: org.macports.build for port ld64-latest returned: command execution failed Please see the log file for port ld64-latest for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64-latest/main.log Error: Unable to upgrade port: 1 Error rebuilding llvm-3.5 while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 395) 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 103) 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 5268)
Attachments (2)
Change History (13)
Changed 9 years ago by macports@…
comment:1 Changed 9 years ago by mojca (Mojca Miklavec)
Cc: | mojca@… added |
---|---|
Version: | 2.3.4 |
comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to jeremyhu@… |
---|
comment:3 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)
On your system, what is the output of:
/usr/bin/clang++ --version
comment:4 Changed 9 years ago by macports@…
xcodebuildversion
Xcode 4.6.3 Build version 4H1503
$ sudo port -v install ld64-latest
---> Computing dependencies for ld64-latest. ---> Fetching archive for ld64-latest ---> ld64-latest-253.3_0+llvm34.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified ---> Attempting to fetch ld64-latest-253.3_0+llvm34.darwin_11.x86_64.tbz2 from http://packages.macports.org/ld64-latest % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch ld64-latest-253.3_0+llvm34.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ld64-latest % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 301 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch ld64-latest-253.3_0+llvm34.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/ld64-latest % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Fetching distfiles for ld64-latest ---> Verifying checksums for ld64-latest ---> Checksumming ld64-253.3.tar.gz ---> Extracting ld64-latest ---> Extracting ld64-253.3.tar.gz ---> Applying patches to ld64-latest ---> Applying ld64-version.patch patching file src/ld/Options.cpp Hunk #1 succeeded at 99 with fuzz 2 (offset 67 lines). Hunk #2 succeeded at 3718 with fuzz 2 (offset 1563 lines). ---> Applying ld64-133-no-CrashReporterClient.h.patch patching file src/ld/Options.cpp Hunk #1 succeeded at 57 (offset 7 lines). Hunk #2 succeeded at 5313 (offset 1066 lines). ---> Applying ld64-134-missing-include.patch patching file src/ld/parsers/lto_file.cpp Hunk #1 succeeded at 37 with fuzz 2 (offset 2 lines). patching file src/other/rebase.cpp ---> Applying ld64-136-i386-badAddress.patch patching file src/ld/LinkEdit.hpp Hunk #1 succeeded at 1454 (offset 176 lines). ---> Applying ld64-ppc-9610466.patch patching file src/ld/OutputFile.cpp Hunk #1 succeeded at 620 (offset -5 lines). ---> Applying PR-23184186.patch patching file src/ld/Options.cpp ---> Applying PR-23184384.patch patching file src/other/machochecker.cpp ---> Applying PR-23184771.patch patching file src/ld/passes/bitcode_bundle.cpp ---> Applying PR-49393.patch patching file src/ld/parsers/textstub_dylib_file.cpp ---> Patching Options.cpp: s|@@VERSION@@|253.3|g ---> Configuring ld64-latest DERIVED_SOURCES_DIR=src/ld DERIVED_FILE_DIR=src/ld src/create_configure > src/ld/configure.h ---> Building ld64-latest make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64-latest/work/ld64-253.3' /usr/bin/clang++ -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/other/ObjectDump.o src/other/ObjectDump.cpp /usr/bin/clang -Os -Os -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/debugline.o src/ld/debugline.c error: invalid value 'c++11' in '-std=c++11' make: *** [src/other/ObjectDump.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64-latest/work/ld64-253.3' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/make -j2 -w all CC="/usr/bin/clang" CXX="/usr/bin/clang++" OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64" OTHER_CXXFLAGS="-Os -std=c++11 -stdlib=libc++ -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++ -arch x86_64" RC_SUPPORTED_ARCHS="armv6 armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4 Exit code: 2 Error: org.macports.build for port ld64-latest returned: command execution failed Warning: targets not executed for ld64-latest: org.macports.activate org.macports.build org.macports.destroot org.macports.install Please see the log file for port ld64-latest for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64-latest/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port ld64-latest failed
Changed 9 years ago by macports@…
Attachment: | main.2.log added |
---|
main.log after following @mojca's instructions
comment:5 Changed 9 years ago by macports@…
$ /usr/bin/clang++ --version Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix
comment:6 Changed 9 years ago by mojca (Mojca Miklavec)
Your compiler is too old. Did you install command-line tools again after upgrading your Xcode?
comment:7 Changed 9 years ago by macports@…
It looks like it failed to install, then. I tried re-installing and I get the message:
The package “BluetoothSDK.pkg” is untrusted.
comment:8 Changed 9 years ago by macports@…
It seems the documentation is out of date. It says to install via the Xcode GUI. I had to install via a separate package as recommended here:
comment:9 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
The documentation is correct (modulo the upstream signing bug). Please file a radar as instructed by the error message.
Blacklisted Xcode 4.2's clang in r143937.
comment:10 Changed 9 years ago by macports@…
I'm sorry. I don't understand comment #9. Where was I "instructed by the error message" to file a radar?
comment:11 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)
From this message:
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Please provide the output of
and do the following:
Once that finishes (or not) do again:
and upload
main.log
after that.You should generally not end up with broken ports, even though there are two possible reasons:
port upgrade outdated
on your side (or some failure during that process)You could also provide the output of
that lists which files were broken.