Skip to content

Fix/ffi env#657

Merged
crazywhalecc merged 1 commit intomainfrom
fix/ffi-env
Mar 19, 2025
Merged

Fix/ffi env#657
crazywhalecc merged 1 commit intomainfrom
fix/ffi-env

Conversation

@henderkes
Copy link
Copy Markdown
Collaborator

Causes:

/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(prep_cif.o): relocation R_X86_64_32S against symbol `ffi_type_float' can not be used when making a PIE object; recompile with -fPIE
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(closures.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(tramp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(ffi64.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(ffiw64.o): relocation R_X86_64_32S against hidden symbol `ffi_closure_win64' can not be used when making a PIE object
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: /app/buildroot/lib/libffi.a(types.o): warning: relocation in read-only section `.rodata'
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
collect2: error: ld returned 1 exit status

When trying to compile as -pie. The -fPIC and -fPIE are given in extra flags of the environment.

@henderkes henderkes requested a review from crazywhalecc March 19, 2025 05:44
@crazywhalecc crazywhalecc added bug Something isn't working kind/dependency Issues related to dependencies labels Mar 19, 2025
@crazywhalecc crazywhalecc merged commit 8a4ba7a into main Mar 19, 2025
10 checks passed
@crazywhalecc crazywhalecc deleted the fix/ffi-env branch March 19, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working kind/dependency Issues related to dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants