FS#73741 - [racket] 8.4-1 has incorrect symbol table in libracketcs.a

Attached to Project: Community Packages
Opened by Quang Luong (quang) - Friday, 11 February 2022, 15:14 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To George Rawlinson (rawlinsong)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



racket 8.4-1 on Arch Linux has incorrect symbol table in libracketcs.a, making other programs unable to link against it.

Additional info:
This issue does not exist on racket-8.3

Steps to reproduce:
* Download racket-8.4-1 from any mirror
* Extract the package archive (e.g. tar avzf rac
* Observe the output
00000000 T racket_apply
00000000 T racket_boot
00000000 T racket_cpointer_address
00000000 T racket_cpointer_base_address
00000000 T racket_cpointer_offset
* In fact, everything is 00000000.
* This does not happen when I build from the same PKGBUILD on my computer (with an exception that CC=/usr/bin/clang)
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/racket/issues/1
Comment by Quang Luong (quang) - Friday, 11 February 2022, 15:36 GMT
TLDR: For community's racket 8.4

* nm /usr/lib/libracketcs.a
* all the symbols address are 00000000, which is incorrect
Comment by Toolybird (Toolybird) - Wednesday, 15 March 2023, 03:52 GMT
I cannot see how this [1] was ever actioned for this pkg. Maybe it was fudged.

[1] https://archlinux.org/todo/lto-fat-objects/
Comment by George Rawlinson (rawlinsong) - Thursday, 11 May 2023, 08:36 GMT
I first modified the package in Nov '22, so I wasn't aware of the LTO issue. Recompiling with -ffat-lto-objects at the moment.

EDIT: That didn't fix it, symbol table is still mangled.