Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2022 22:36:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 268495] audio/openal-soft: fix build with lld 15 on i386
Message-ID:  <bug-268495-12827-A2591w2FlF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268495-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268495-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-multimedia
(Nobody) <multimedia@FreeBSD.org> for maintainer-feedback:
Bug 268495: audio/openal-soft: fix build with lld 15 on i386
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268495



--- Description ---
During an exp-run for llvm 15 (see bug 265425), it turned out that
audio/openal-soft failed to link with lld 15, on i386:

      : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -fno-strict-alia=
sing
-O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG
-Wl,--as-needed -fstack-protector-strong -Wl,-z,notext
CMakeFiles/makemhr.dir/utils/makemhr/loaddef.cpp.o
CMakeFiles/makemhr.dir/utils/makemhr/loadsofa.cpp.o
CMakeFiles/makemhr.dir/utils/makemhr/makemhr.cpp.o -o makemhr=20
-Wl,-rpath,/usr/local/lib:  -pthread  libsofa-support.a  -pthread  libcommo=
n.a=20
/usr/local/lib/libmysofa.so  /usr/lib/libz.so  -lm && :
      ld: error: makemhr:(.eh_frame+0x14cf): internal linker error: wrote
incorrect addend value 0x3400 instead of 0x0 for dynamic relocation R_386_3=
2 at
offset 0x408417 against symbol __gxx_personality_v0

This is because lld 15 with assertions enabled (which is default on -CURREN=
T)
checks dynamic relocations more thoroughly, and in combination with -z note=
xt
(which was added earlier for bug 242307) results in the above diagnostic.

Work around it by disabling the dynamic relations checks on i386.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268495-12827-A2591w2FlF>