Re: Libgme0 fails on Mac OS 10.11 El Capitan / Xcode 8.2.1
Hanspeter Niederstrasser <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Organization | Snaggled Works |
| Message-ID | <[email protected]> |
On 7/24/21 1:08 PM, Scott Hannahs via Fink-users wrote: > In updating my fink, I found the following error: > [100%] Linking CXX shared library libgme.dylib > cd /sw/src/fink.build/libgme0-shlibs-0.6.3-1/game-music-emu-0.6.3/gme && /sw/bin/cmake -E cmake_link_script CMakeFiles/gme.dir/link.txt --verbose=1 > /sw/var/lib/fink/path-prefix-clang/c++ -MD -Wall -W -Wextra -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -fwrapv -fsanitize=undefined -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.11 -dynamiclib -Wl,-headerpad_max_install_names -L/sw/lib -current_version 0.6.3 -o libgme.0.6.3.dylib -install_name /sw/src/fink.build/libgme0-shlibs-0.6.3-1/game-music-emu-0.6.3/gme/libgme.0.dylib CMakeFiles/gme.dir/Blip_Buffer.cpp.o CMakeFiles/gme.dir/Classic_Emu.cpp.o CMakeFiles/gme.dir/Data_Reader.cpp.o CMakeFiles/gme.dir/Dual_Resampler.cpp.o CMakeFiles/gme.dir/Effects_Buffer.cpp.o CMakeFiles/gme.dir/Fir_Resampler.cpp.o CMakeFiles/gme.dir/gme.cpp.o CMakeFiles/gme.dir/Gme_File.cpp.o CMakeFiles/gme.dir/M3u_Playlist.cpp.o CMakeFiles/gme.dir/Multi_Buffer.cpp.o CMakeFiles/gme.dir/Music_Emu.cpp.o CMakeFiles/gme.dir/Ay_Apu.cpp.o CMakeFiles/gme.dir/Ym2612_Nuked.cpp.o CMakeFiles/gme.dir/Sms_Apu.cpp.o CMakeFiles/gme.dir/Ay_Cpu.cpp.o CMakeFiles/gme.dir/Ay_Emu.cpp.o CMakeFiles/gme.dir/Gb_Apu.cpp.o CMakeFiles/gme.dir/Gb_Cpu.cpp.o CMakeFiles/gme.dir/Gb_Oscs.cpp.o CMakeFiles/gme.dir/Gbs_Emu.cpp.o CMakeFiles/gme.dir/Gym_Emu.cpp.o CMakeFiles/gme.dir/Hes_Apu.cpp.o CMakeFiles/gme.dir/Hes_Cpu.cpp.o CMakeFiles/gme.dir/Hes_Emu.cpp.o CMakeFiles/gme.dir/Kss_Cpu.cpp.o CMakeFiles/gme.dir/Kss_Emu.cpp.o CMakeFiles/gme.dir/Kss_Scc_Apu.cpp.o CMakeFiles/gme.dir/Nes_Apu.cpp.o CMakeFiles/gme.dir/Nes_Cpu.cpp.o CMakeFiles/gme.dir/Nes_Fme7_Apu.cpp.o CMakeFiles/gme.dir/Nes_Namco_Apu.cpp.o CMakeFiles/gme.dir/Nes_Oscs.cpp.o CMakeFiles/gme.dir/Nes_Vrc6_Apu.cpp.o CMakeFiles/gme.dir/Nsf_Emu.cpp.o CMakeFiles/gme.dir/Nsfe_Emu.cpp.o CMakeFiles/gme.dir/Sap_Apu.cpp.o CMakeFiles/gme.dir/Sap_Cpu.cpp.o CMakeFiles/gme.dir/Sap_Emu.cpp.o CMakeFiles/gme.dir/Snes_Spc.cpp.o CMakeFiles/gme.dir/Spc_Cpu.cpp.o CMakeFiles/gme.dir/Spc_Dsp.cpp.o CMakeFiles/gme.dir/Spc_Emu.cpp.o CMakeFiles/gme.dir/Spc_Filter.cpp.o CMakeFiles/gme.dir/Vgm_Emu.cpp.o CMakeFiles/gme.dir/Vgm_Emu_Impl.cpp.o CMakeFiles/gme.dir/Ym2413_Emu.cpp.o /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libz.tbd > ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > It does not appear that the library “libclang_rt.ubsan_osx_dynamic.dylib” is on my system at all. There is a libclang_rt.asan_osx_dynamic.dylib and a libclang_rt.tsan_osx_dynamic.dylib but no ubsan. This package has a whole bunch of dependencies and I would like to keep it updated. > > Also include the following system information: > Package manager version: 0.45.3 > Distribution version: selfupdate-git Sat Jul 24 12:59:00 2021, 10.11, x86_64 > Trees: local/main stable/main local/injected > Xcode.app: 8.2.1 > Xcode command-line tools: 8.2.0.0.1.1480973914 > Max. Fink build jobs: 1 > > Google seems to imply that the culprit is the clang option "-fsanitize=undefined”, and that "-fsanitize=address,undefined” is the solution. But as possible work around that has some other effects that may or may not be important. https://stackoverflow.com/questions/42893831/ld-file-not-found-library-developer-libclang-rt-ubsan-osx-dynamic-dylib Can you add -DENABLE_UBSAN=OFF to the set of cmake parameters in /sw/fink/dists/stable/main/finkinfo/sound/libgme0-shlibs.info and test rebuilding? Hanspeter _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users