#58611 closed defect (worksforme)
llvm-3.7: libcompiler_rt.a: No such file or directory
Reported by: | scottmeup (Andrew Scott) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | guide | Version: | |
Keywords: | Cc: | larryv (Lawrence Velázquez) | |
Port: | llvm-3.7 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi, I'm trying to follow the guide listed here: LibcxxOnOlderSystems
At step 7, running the line as written
sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm39
fails with Error: cctools: Variant llvm39 conflicts with llvm40
running the line modified to include llvm40
sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm40
gets further but still fails with
In file included from /usr/include/limits.h:64:
/usr/include/machine/limits.h:10:2: error: architecture not supported
#error architecture not supported
and requests that I submit a ticket.
I'm running Snow Leopard 10.6.8 on a Macbook Pro 5,3
Attachments (2)
Change History (18)
Changed 5 years ago by scottmeup (Andrew Scott)
Attachment: | main.log.zip added |
---|
comment:1 Changed 5 years ago by scottmeup (Andrew Scott)
Description: | modified (diff) |
---|
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | larryv added |
---|---|
Description: | modified (diff) |
Keywords: | libcxx snow leopard removed |
Owner: | set to jeremyhu |
Port: | llvm-3.7 added |
Status: | new → assigned |
Summary: | LibcxxOnOlderSystems fails on step 7 - error: architecture not supported → llvm-3.7: libcompiler_rt.a: No such file or directory |
The log you attached contains 6 failed build attempts.
The first one failed with these errors:
:info:build cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory :info:build make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a] Error 1 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a: No such file or directory
Build attemps 2 through 6 failed with this error:
:info:build /usr/include/sys/cdefs.h:540:4: error: Unknown architecture
However those build attempt were not clean; they were resuming from the original failed build. As such, I would not pay any attention to the possibly erroneous errors they generated and I would focus on the error generated by the original build attempt.
comment:3 Changed 5 years ago by kencu (Ken)
something is amiss. There is no file with that name in clang-3.7:
$ port contents clang-3.7 | grep _rt /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.10.4.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.asan_osx_dynamic.dylib /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.cc_kext.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.cc_kext_ios5.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.eprintf.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.ios.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.osx.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.profile_ios.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.profile_osx.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.ubsan_iossim_dynamic.dylib /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/macho_embedded/libclang_rt.hard_pic.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/macho_embedded/libclang_rt.hard_static.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/macho_embedded/libclang_rt.soft_pic.a /opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/macho_embedded/libclang_rt.soft_static.a
I would clean up any partial builds in /opt/local/var/macports/build
and then try it again.
comment:4 Changed 5 years ago by scottmeup (Andrew Scott)
I cleaned all, and re-installed macports. It seems I have additional problems now:
Step 1
sudo port -v install clang-3.4 ld64 cctools libcxx x ./opt/local/bin/opt-mp-3.4 ---> Cleaning llvm-3.4 ---> Removing work directory for llvm-3.4 Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port clang-3.4 failed
I tried to continue on up through Step 4
sudo port -v install clang-3.7 ---> Computing dependencies for clang-3.7......... The following dependencies will be installed: apple-gcc42 cctools clang-3.4 ld64 ld64-127 Continue? [Y/n]: y Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port clang-3.7 failed
comment:5 Changed 5 years ago by kencu (Ken)
Yikes. Have to go to baby steps, one thing at a time.
If you can't install clang-3.4
, you'll never get anywhere. Clean everything, make sure you start with your macports.conf
set to the default values, and try to install clang-3.4
. IF that works, then go step by step.
For example, there is no way to proceed on to the next step of anything if the previous step was unsuccessful. You cannot install clang-3.7 without clang-3.4.
comment:6 Changed 5 years ago by scottmeup (Andrew Scott)
Here's what I've just run, and the results. Perhaps I'm not entering something correctly?
sudo cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf sudo port clean --all all
............ ---> Cleaning mongo-tools Error: Unable to determine location of a macOS SDK. Error: Unable to open port: can't read "configure.sdkroot": Unable to determine location of a macOS SDK.
sudo port -v install libcxx sudo port -v -f deactivate active sudo port -v install clang-3.4 ld64 cctools libcxx
:error:build Failed to build cctools: command execution failed :debug:build Error code: CHILDSTATUS 2777 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log for details.
Complete log file is at https://pastebin.com/vE7vfppF
comment:7 Changed 5 years ago by kencu (Ken)
Wow. This looks seriously hosed. You could spend a long time fixing this, I guess. I personally would just start over <https://guide.macports.org/chunked/installing.macports.uninstalling.html> and reinstall MacPorts completely from scratch.
Then install something very simple -- and see if you can get MacPorts working at all.
Unless somebody has a spectacularly better idea...
comment:8 Changed 5 years ago by scottmeup (Andrew Scott)
After uninstalling and re-installing MacPorts I've installed a simple port - ircii-classic - without errors. I'll try following the c++11 guide again from this state and post the results.
sudo port -fp uninstall installed sudo rm -rf \ /opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports open ~/Downloads/MacPorts-2.5.4-10.6-SnowLeopard.pkg sudo port selfupdate port upgrade outdated sudo port install ircii-classic
Changed 5 years ago by scottmeup (Andrew Scott)
Attachment: | port -v install clang-3.7 2019-06-19 main.log added |
---|
main.log from port -v install clang-3.7, run after clean install of macports. 2019-06-19
comment:9 Changed 5 years ago by scottmeup (Andrew Scott)
No luck :(
I got up to step 4 without so much as a warning,
Trying to install clang 3.7 ended up spitting out a bunch of architecture errors at the end, I'm not 100% sure where it went wrong. Most recent main.log is attached to this ticket.
The process I most recently ran was:
in terminal
sudo port -fp uninstall installed sudo rm -rf \ /opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports open ~/Downloads/MacPorts-2.5.4-10.6-SnowLeopard.pkg sudo port selfupdate port upgrade outdated sudo port -v install libcxx sudo port -v -f deactivate active sudo port -v install clang-3.4 ld64 cctools libcxx
Appended the following to /opt/local/etc/macports/macports.conf:
(no uncommented copies of the variables were left in macports.conf)
cxx_stdlib libc++ buildfromsource always default_compilers macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 revupgrade_autorun no
then in terminal:
sudo port -v -f uninstall inactive sudo port -v install clang-3.7
The last command ran for a few hours then exited, giving the log attached.
comment:10 Changed 5 years ago by kencu (Ken)
could you give me the output of this command please:
echo "macOS $(sw_vers -productVersion) $(sw_vers -buildVersion)"; echo "Xcode $(xcodebuild -version | awk '{print $NF}' | tr '\n' ' ')"
comment:11 follow-up: 12 Changed 5 years ago by scottmeup (Andrew Scott)
macOS 10.6.8 10K549
Xcode 4.2 4C199
comment:12 Changed 5 years ago by BjarneDMat
Replying to scottmeup:
Xcode 4.2 4C199 <--- that's the problem !
Xcode 4.2 is seriously hosed when trying to work with MacPorts You'll have to downgrade to Xcode 3.2.6 DevToolsSupport-1806.0 10M2518
I also had Xcode 4.2 installed which gave me lots of problems. Somebody for a long time ago advised me to downgrade to 3.2.6 & since then I've had no problems :-)
comment:13 Changed 5 years ago by scottmeup (Andrew Scott)
Thanks @BjarneDMat. successfully completed through step 13 of the guide https://trac.macports.org/wiki/LibcxxOnOlderSystems using xcode 3.2.6.
comment:14 Changed 5 years ago by kencu (Ken)
Glad you got it working. Must have been something with your setup that was fixed by reinstalling xcode I guess.
BTW, I often use xcode 4.2 on 10.6.8, and never had any issues with it, so I don't personally think it was a problem caused specifically because of xcode 4.2.
closing!
comment:15 Changed 5 years ago by kencu (Ken)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
comment:16 Changed 5 years ago by scottmeup (Andrew Scott)
Thanks Ken, I'm glad it's working too! I'm not sure about the Xcode situation. All I can tell you is that it was a relatively clean and recent install of 10.6 followed by an update to 10.6.8, followed by an install of Xcode 4.2. I basically dug this machine out of mothballs and wiped it. I hadn't installed any version of Xcode up to the time I was trying to install an IPTV server from source code.
main.log - zip compressed