Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#49477 closed defect (fixed)

clang-3.7 @3.7.0_1 fails staging into destroot on 10.6.8

Reported by: udbraumann Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: larryv (Lawrence Velázquez), ballapete (Peter "Pete" Dyballa)
Port: clang-3.7 clang-3.8

Description

While upgrading clang-3.7 @3.7.0_0 to clang-3.7 @3.7.0_1 I got the following error during ---> Staging clang-3.7 into destroot:

:debug:destroot Executing proc-post-org.macports.destroot-destroot-2
:info:destroot error: install_name_tool: can't open file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/destroot/opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib (No such file or directory)
:info:destroot Command failed: install_name_tool -id @rpath/libclang_rt.asan_iossim_dynamic.dylib/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/destroot/opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib
:info:destroot Exit code: 1

As you see, it misses a file libclang_rt.asan_iossim_dynamic.dylib. Any ideas?

Attachments (2)

main.log.gz (239.3 KB) - added by udbraumann 9 years ago.
main.2.log.gz (240.4 KB) - added by udbraumann 8 years ago.

Download all attachments as: .zip

Change History (11)

Changed 9 years ago by udbraumann

Attachment: main.log.gz added

comment:1 Changed 9 years ago by udbraumann

FWIW, upgrading clang-3.8 from 3.8-r250632_0 to 3.8-r251269_0 leads to exactly the same error.

Last edited 9 years ago by udbraumann (previous) (diff)

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

Thanks for the report. Not sure why you don't have the asan runtime for the simualtor, but I'll look into it.

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

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

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

Port: clang-3.8 added
Status: newassigned

Oh. SL. Yeah, I need to just conditionalize those dylib id changes.

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

Resolution: fixed
Status: assignedclosed

comment:6 in reply to:  5 Changed 8 years ago by udbraumann

While trying to build clang-3.7 after the abovementioned changes, I now run into this problem on 10.6.8:

:debug:destroot Executing proc-post-org.macports.destroot-destroot-2
:error:destroot org.macports.destroot for port clang-3.7 returned: no files matched glob pattern "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/destroot/opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin/*.dylib"
:debug:destroot Error code: NONE

Under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work/destroot/opt/local/libexec/llvm-3.7/lib/clang/3.7/lib/darwin I just have these libraries:

$ ls -laG
total 936
drwxr-xr-x  10 root  admin     340 Oct 29 19:31 .
drwxr-xr-x   4 root  admin     136 Oct 29 19:31 ..
-rw-r--r--   1 root  admin    7920 Oct 29 19:31 libclang_rt.10.4.a
-rw-r--r--   1 root  admin  195976 Oct 29 19:31 libclang_rt.cc_kext.a
-rw-r--r--   1 root  admin   72936 Oct 29 19:31 libclang_rt.cc_kext_ios5.a
-rw-r--r--   1 root  admin    1960 Oct 29 19:31 libclang_rt.eprintf.a
-rw-r--r--   1 root  admin   31512 Oct 29 19:31 libclang_rt.ios.a
-rw-r--r--   1 root  admin   17416 Oct 29 19:31 libclang_rt.osx.a
-rw-r--r--   1 root  admin   80024 Oct 29 19:31 libclang_rt.profile_ios.a
-rw-r--r--   1 root  admin   59016 Oct 29 19:31 libclang_rt.profile_osx.a

On the level of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.7/clang-3.7/work I find *.dylib files here:

 find . -name "*dylib"
./build/Release+Debug+Asserts/lib/libclang.dylib
./build/Release+Debug+Asserts/lib/libLLVM-3.7.0.dylib
./build/Release+Debug+Asserts/lib/libLLVM-3.7.dylib
./build/Release+Debug+Asserts/lib/libLTO.dylib
./build/Release+Debug+Asserts/lib/LLVMHello.dylib
./destroot/opt/local/libexec/llvm-3.7/lib/libclang.dylib
./llvm-3.7.0.src/test/Object/Inputs/macho-no-exports.dylib

Any ideas? I attach my main.log named as main.2.log

Changed 8 years ago by udbraumann

Attachment: main.2.log.gz added

comment:7 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… added

Cc Me!

comment:8 in reply to:  5 Changed 8 years ago by udbraumann

While trying to upgrade from lang-3.8 @3.8-r250632_0 to 3.8-r251899_0 on 10.6.8 (Snow Leopard) now I get this problem during patching:

: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.8/clang-3.8/work/.CC_PRINT_OPTIONS'
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.8/clang-3.8/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.8/clang-3.8/work/trunk" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/llvm-3.8/files/leopard-no-asan.patch'
:info:patch patching file projects/compiler-rt/make/platform/clang_darwin.mk
:info:patch Hunk #1 succeeded at 112 (offset -7 lines).
:info:patch patching file tools/clang/runtime/compiler-rt/Makefile
:info:patch Hunk #2 FAILED at 101.
:info:patch 1 out of 2 hunks 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.8/clang-3.8/work/trunk" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/llvm-3.8/files/leopard-no-asan.patch'
:info:patch Exit code: 1
:error:patch org.macports.patch for port clang-3.8 returned: command execution failed

Makefile.rej contains:

***************
*** 103,113 ****
  RuntimeLibrary.darwin.Configs += cc_kext_ios5.a
  endif

- ifneq ($(IOSSIM_SDK),)
- RuntimeLibrary.darwin.Configs += asan_iossim_dynamic.dylib \
-                                  ubsan_iossim_dynamic.dylib
- endif
-
  RuntimeLibrary.macho_embedded.Configs := \
        hard_static.a hard_pic.a
  ifneq (,$(findstring ARM,$(TARGETS_TO_BUILD)))
--- 101,106 ----
  RuntimeLibrary.darwin.Configs += cc_kext_ios5.a
  endif

  RuntimeLibrary.macho_embedded.Configs := \
        hard_static.a hard_pic.a
  ifneq (,$(findstring ARM,$(TARGETS_TO_BUILD)))

Interestingly, clang-3.7 @3.7.0_2 which previously showed the same ASAN trouble as clang-3.8 @3.8-r251269_0 builds fine now on the same 10.6.8 system.

comment:9 Changed 8 years ago by udbraumann

Upgrading from clang-3.8 from 3.8-r250632_0 to 3.8-r252441_0 has worked on 10.6.8, thanks!

Note: See TracTickets for help on using tickets.