You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Julia 1.9 on Linux, it is possible to embed Julia using the -fPIE compiler option rather than -fPIC. I'm aware this goes against the docs, but CMake's POSITION_INDEPENDENT_CODE defaults to -fPIE for executables and -fPIC for libraries, so it's mildly annoying to work around.
outdated info below
For example, I built this program (using the docs):
With 1.10.3 it prints an error message and exits with code 0, and the same works if you replace -fPIC with -fPIE. With 1.11.0-beta1 it works for -fPIC but with -fPIE it exits with a nonzero status without printing the message.
I've bisected this to 2defa57, but that might be a red herring if display_error relies on something from REPL. However, it might be a while before I have time to investigate further.
julia> versioninfo()
Julia Version 1.11.0-beta1
Commit 08e1fc0abb9 (2024-04-10 08:40 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 12 × Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
Environment:
JULIA_EDITOR = gvim --remote-tab-silent
The text was updated successfully, but these errors were encountered:
This looks like it might actually be in 1.10 already. For example, this program works with -fPIC but not -fPIE on 1.10.0-alpha1. Working on bisecting now
jonathan-conder-sm
changed the title
1.11.0-beta1: regression for embedding Julia with CMake
1.10: regression for embedding Julia with CMake
May 6, 2024
With Julia 1.9 on Linux, it is possible to embed Julia using the
-fPIE
compiler option rather than-fPIC
. I'm aware this goes against the docs, but CMake's POSITION_INDEPENDENT_CODE defaults to-fPIE
for executables and-fPIC
for libraries, so it's mildly annoying to work around.outdated info below
For example, I built this program (using the docs):
With 1.10.3 it prints an error message and exits with code 0, and the same works if you replace
-fPIC
with-fPIE
. With 1.11.0-beta1 it works for-fPIC
but with-fPIE
it exits with a nonzero status without printing the message.I've bisected this to 2defa57, but that might be a red herring if
display_error
relies on something fromREPL
. However, it might be a while before I have time to investigate further.The text was updated successfully, but these errors were encountered: