Opened 17 months ago
Closed 17 months ago
#18551 closed bug (fixed)
-rdynamic flag broken after GCC updated to 13.1.0
Reported by: | trungnt2910 | Owned by: | nielx |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Build System | Version: | R1/beta4 |
Keywords: | regression | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Since 11.x, GCC on Haiku has added support for the -rdynamic
flag. The flag is simply ignored because Haiku binaries always have that behavior by default. See also: https://github.com/haiku/buildtools/commit/9866b1a47a32306b1660ebff0efbec067545cf7f.
Now, compiling anything with the -rdynamic
flag fails with:
https://github.com/haiku/buildtools/commit/9866b1a47a32306b1660ebff0efbec067545cf7f
This applies to both cross-compiling on Linux and building natively on Haiku using the package from HaikuPorts. The regression currently breaks .NET builds for Haiku.
Change History (6)
comment:1 by , 17 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 months ago
Component: | Build System → Applications |
---|---|
Keywords: | regression added |
comment:3 by , 17 months ago
Component: | Applications → Build System |
---|
comment:4 by , 17 months ago
comment:5 by , 17 months ago
Status: | assigned → in-progress |
---|
Potential solution: https://review.haiku-os.org/c/buildtools/+/6814
Tested locally with the cross-compiler, seems to work better.
comment:6 by , 17 months ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
merged in btrev43208; trungnt2910 confirmed it fixes the problem.
I've modified the
haiku.opt
file to something like this:And tried to use the
-fake
flag:This means that the
haiku.opt
is still valid and has an effect on the GCC driver. However,-rdynamic
is still blocked:This means between GCC 11 and GCC 13, something else must have happened that specifically affected
-rdynamic
(and/or probably some other related flags).