Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for 22 04 #49

Merged
merged 3 commits into from
Aug 16, 2022
Merged

Fixes for 22 04 #49

merged 3 commits into from
Aug 16, 2022

Conversation

tinselcity
Copy link
Contributor

@tinselcity tinselcity commented Aug 16, 2022

What

catch updated to catch2 (due to glibc changes for MINSIGSTKSZ define) issue.

ref:

cmake updates and cleanup for 22.04 compatibility

of note is

# ------------------------------------------------------------------------------
# fix for error
# ...
# /usr/bin/ld: /tmp/ccJLmlSQ.ltrans0.ltrans.o: relocation R_X86_64_32S against
# `.rodata' can not be used when making a PIE object; recompile with -fPIE
# ...
# ref:
# https://github.com/kermitt2/pdfalto/issues/41#issuecomment-479881065
# ------------------------------------------------------------------------------
set(CMAKE_EXE_LINKER_FLAGS "-no-pie")

Seems like libunwind-dev was compiled w/o -fPIC / -fPIE
see:

>readelf --relocs /usr/lib/x86_64-linux-gnu/libunwind.a | awk '$3~/^R_/ && $5!~/^\.debug/{print $3}' |sort -u
R_X86_64_32
R_X86_64_32S
R_X86_64_64
R_X86_64_DTPOFF32
R_X86_64_GOTPCREL
R_X86_64_PC32
R_X86_64_PLT32
R_X86_64_REX_GOTP
R_X86_64_TPOFF32

ref: https://unix.stackexchange.com/a/89220

@tinselcity tinselcity merged commit 02cb5bb into master Aug 16, 2022
@tinselcity tinselcity deleted the fixes_for_22_04 branch August 16, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant