Guido Falsi wrote:
Hi,I'm running head, commit 1364d8fd9b25d6d3e9618e7be073a1a1b41aa19c from July 8.Today my poudriere decided to rebuild thunderbird, and also built the new firefox.Both are now crashing on launch with the following error: XPCOMGlueLoad error for file /usr/local/lib/firefox/libgkcodecs.so: /usr/local/lib/firefox/libgkcodecs.so: Undefined symbol "sin" Couldn't load XPCOM. (same for thunderbird with the directory changed)I was able to recover thuinderbird functionlity by fetching libgkcodecs.so from a zfs snapshot. Not tried with firefox since it is a new version, but it could be a temporary solution for me.Looking at the build logs I found the error at the tail of the message.Looks like a -lm is missing somwhere or something has changed in h FreeBSD head related to this?I kind of remember some related message in the mailiing lists, but I've been unable to find it.
PR 296825 is the latest report.
I'm reporting this right away because it looks like it needs quick fixing. I'm investigating some better workaround.Can't reproduce with LLVM 22. Probably fine with LLVM 21 as well. May be some "hidden" Rust interaction, which itself requires at least LLVM 21.Thanks! From build logs:/usr/local/bin/clang19 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack- protector-strong -fstack-clash-protection -fstrict-flex-arrays=1 - DLIBICONV_PLUG -isystem /usr/local/include -pthread -ffunction-sections -fdata-sections -fno-math-errno -fdiagnostics-absolute-paths -fPIC -O2 - pipe -march=x86-64-v3 -O3 -DLIBICONV_PLUG -fstack-protector-strong - isystem /usr/local/include -fno-strict-aliasing -O2 -O3 -fno-omit-frame- pointer -funwind-tables -shared -Wl,-z,defs -Wl,--warn-unresolved- symbols -Wl,--gc-sections -Wl,-h,libgkcodecs.so -o ../../../dist/bin/ libgkcodecs.so -Wl,@/wrkdirs/usr/ports/mail/thunderbird/work/.build/ config/external/gkcodecs/libgkcodecs_so.list -Wl,--as-needed -Wl,-- undefined-version -Wl,--icf=safe -Wl,--build-id=sha1 -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc -fuse-ld=lld - fstack-protector-strong -fstack-clash-protection -Wl,-rpath-link,/ wrkdirs/usr/ports/mail/thunderbird/work/.build/dist/bin -O2 -O3 - Wl,--version-script,libgkcodecs.so.symbolsld.lld: warning: undefined symbol: sin >>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (_ve_envelope_init)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (_ve_envelope_init)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (_ve_envelope_init)>>> referenced 46 more times ld.lld: warning: undefined symbol: log >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(mdct_init) >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(_vp_psy_init) >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(_vp_psy_init) >>> referenced 18 more times ld.lld: warning: undefined symbol: cos >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(mdct_init) >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(mdct_init) >>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(mdct_init) >>> referenced 38 more times ld.lld: warning: undefined symbol: atan >>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (floor0_inverse2)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (floor0_inverse2)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (floor0_inverse2)>>> referenced 7 more times ld.lld: warning: undefined symbol: exp >>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (vorbis_lsp_to_curve)>>> referenced by Unified_c_media_libvorbis0.c >>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o:(_vp_psy_init) >>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (setup_tone_curves)>>> referenced 22 more times ld.lld: warning: undefined symbol: pow >>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (_book_maptype1_quantvals)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (_book_unquantize)>>> referenced by Unified_c_media_libvorbis0.c>>> ../../../media/libvorbis/Unified_c_media_libvorbis0.o: (vorbis_book_init_encode)ld.lld: warning: undefined symbol: acos >>> referenced by celt_encoder.c >>> ../../../media/libopus/celt_encoder.o:(tone_detect) ld.lld: warning: undefined symbol: log10 >>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_pitch_analysis_core_FLP)>>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_pitch_analysis_core_FLP)>>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_noise_shape_analysis_FLP)>>> referenced 2 more times ld.lld: warning: undefined symbol: exp2 >>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_find_pred_coefs_FLP)>>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_noise_shape_analysis_FLP)>>> referenced by Unified_c_media_libopus4.c>>> ../../../media/libopus/Unified_c_media_libopus4.o: (silk_process_gains_FLP) In file included from /wrkdirs/usr/ports/mail/thunderbird/work/.build/ xpfe/appshell/Unified_cpp_xpfe_appshell0.cpp:2: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/xpfe/appshell/AppWindow.cpp:67: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/dom/ipc/BrowserHost.h:8: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/dom/ipc/BrowserParent.h:21: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/layout/ipc/RemoteLayerTreeOwner.h:12: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/layout/painting/nsDisplayList.h:49: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/layout/painting/nsDisplayListInvalidation.h:11: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/gfx/layers/wr/WebRenderUserData.h:10: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/gfx/webrender_bindings/WebRenderAPI.h:16: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/gfx/layers/wr/IpcResourceUpdateQueue.h:10: In file included from /wrkdirs/usr/ports/mail/thunderbird/work/ thunderbird-152.0.1/gfx/layers/client/TextureClient.h:21: /wrkdirs/usr/ports/mail/thunderbird/work/thunderbird-152.0.1/gfx/2d/ CriticalSection.h:53:3: warning: mutex 'mMutex' is still held at the end of function [-Wthread-safety-analysis]53 | } | ^/wrkdirs/usr/ports/mail/thunderbird/work/thunderbird-152.0.1/gfx/2d/ CriticalSection.h:51:26: note: mutex acquired here51 | DebugOnly<int> err = pthread_mutex_lock(&mMutex); | ^/wrkdirs/usr/ports/mail/thunderbird/work/thunderbird-152.0.1/gfx/2d/ CriticalSection.h:56:26: warning: releasing mutex 'mMutex' that was not held [-Wthread-safety-analysis]56 | DebugOnly<int> err = pthread_mutex_unlock(&mMutex); | ^
-- Charlie Li ...nope, still don't have an exit line.
OpenPGP_signature.asc
Description: OpenPGP digital signature
