Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#47241 closed defect (fixed)

clang-3.7 @3.7-r232656_0: libcompiler_rt.dylib: No such file or directory

Reported by: udbraumann Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: leopard snowleopard Cc: larryv (Lawrence Velázquez), h.rayflood@…
Port: clang-3.7

Description

While trying to upgrade clang-3.7 from 3.7-r231583_0 to 3.7-r232656_0 I on Snow Leopard 10.6.8 receive the following error:

:info:build llvm[3]: Copying runtime library macho_embedded/soft_pic to build dir
:info:build cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime/compiler-rt/clang_macho_embedded/soft_static/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/macho_embedded/libclang_rt.soft_static.a
:info:build cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime/compiler-rt/clang_macho_embedded/soft_pic/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/macho_embedded/libclang_rt.soft_pic.a
:info:build cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/libcompiler_rt.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib
:info:build cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/libcompiler_rt.dylib: No such file or directory
:info:build make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build rm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/macho_embedded/.dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/Release+Debug+Asserts/lib/clang/3.7.0/lib/darwin/.dir
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime/compiler-rt'
:info:build make[2]: *** [compiler-rt/.makeall] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang/runtime'
:info:build make[1]: *** [all] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk/tools/clang'
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk" && /usr/bin/make -j8 -w clang-only
:info:build Exit code: 2
:error:build org.macports.build for port clang-3.7 returned: command execution failed
:debug:build Error code: CHILDSTATUS 88868 2

libcompiler_rt.dylib is not existing, while libcompiler_rt.a apparently is? Is libcompiler_rt.dylib really required?

Attachments (3)

main.log.gz (457.4 KB) - added by udbraumann 10 years ago.
main-r234122_0.log.gz (257.9 KB) - added by udbraumann 10 years ago.
main-r241984.log.gz (498.5 KB) - added by udbraumann 9 years ago.

Download all attachments as: .zip

Change History (14)

Changed 10 years ago by udbraumann

Attachment: main.log.gz added

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

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…
Summary: clang-3.7 @3.7-r232656_0 fails building on 10.6.8clang-3.7 @3.7-r232656_0: libcompiler_rt.dylib: No such file or directory

comment:2 in reply to:  1 Changed 10 years ago by udbraumann

FWIW: since I noticed that r234122_0 came out in between, I tried to upgrade to this particular release candidate, however, there is some confusion while applying patches:

...
:info:patch --->  Applying leopard-no-asan.patch
:debug:patch Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/.CC_PRINT_OPT
IONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk" && /usr/bin/patch -p1'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/llvm-3.7/files/leopard-no-asan.patch'
:info:patch patching file projects/compiler-rt/make/platform/clang_darwin.mk
:info:patch Hunk #1 FAILED at 115.
:info:patch 1 out of 1 hunk FAILED -- saving rejects to file projects/compiler-rt/make/platform/clang_darwin.mk.rej
:info:patch patching file tools/clang/runtime/compiler-rt/Makefile
:info:patch Hunk #1 FAILED at 78.
:info:patch 1 out of 1 hunk FAILED -- saving rejects to file tools/clang/runtime/compiler-rt/Makefile.rej
:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/trunk" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/llvm-3.7/files/leopard-no-asan.patch'
:info:patch Exit code: 1
...

See main-r234122_0.log.

Inside clang_darwin.mk.rej I find this:

***************
*** 115,127 ****
  UniversalArchs.profile_ios += $(call CheckArches,armv7,profile_ios,$(IOS_SDK))

  # Configurations which define the ASAN support functions.
- Configs += asan_osx_dynamic
  UniversalArchs.asan_osx_dynamic := $(call CheckArches,i386 x86_64 x86_64h,asan_osx_dynamic,$(OSX_SDK))

- Configs += asan_iossim_dynamic
  UniversalArchs.asan_iossim_dynamic := $(call CheckArches,i386 x86_64,asan_iossim_dynamic,$(IOSSIM_SDK))

- Configs += ubsan_osx
  UniversalArchs.ubsan_osx := $(call CheckArches,i386 x86_64 x86_64h,ubsan_osx,$(OSX_SDK))

  # Darwin 10.6 has a bug in cctools that makes it unable to use ranlib on our ARM

Thanks for your help.

Changed 10 years ago by udbraumann

Attachment: main-r234122_0.log.gz added

comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)

Keywords: leopard snowleopard added

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

Sorry, that's a conditional patch for older systems, so I forgot to test it. I'll regenerate it.

comment:5 in reply to:  4 Changed 10 years ago by udbraumann

Thanks for fixing the trouble with the patches in 3.7-r234122_0.

Have tested clang-3.7 r235803_0 but the problem with the missing libcompiler_rt.dylib which firstly occurred in r232656_0 still is there.

comment:6 Changed 9 years ago by h.rayflood@…

#47729 maybe resolve this probrem.

comment:7 Changed 9 years ago by h.rayflood@…

Cc: h.rayflood@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

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

comment:10 in reply to:  9 Changed 9 years ago by udbraumann

I am sorry to report that r138590 unfortunately does not fix the problem for my 10.6.8 platform with Xcode 4.2:

...
:info:build make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/lib/clang/3.7.0/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib] 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_release_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_macho_embedded/soft_pic/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/lib/clang/3.7.0/lib/macho_embedded/libclang_rt.soft_pic.a
:info:build cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/ubsan_iossim_dynamic/libcompiler_rt.dylib: No such file or directory
:info:build make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/lib/clang/3.7.0/lib/darwin/libclang_rt.ubsan_iossim_dynamic.dylib] Error 1
...

Please see the full log in main-r241984.log.gz

Changed 9 years ago by udbraumann

Attachment: main-r241984.log.gz added

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

Well please open another ticket with for your case. I don't see how that could possibly be happening given the Makefile doesn't add the ubsan_iossim_dynamic config any more.

Note: See TracTickets for help on using tickets.