# Relocation issue during create\_sysimage() of large libraries of code (Flux, FastAI, Cairo)

**URL:** <https://discourse.julialang.org/t/relocation-issue-during-create-sysimage-of-large-libraries-of-code-flux-fastai-cairo/105110>\
**Category:** Performance\
**Created:** [October 18, 2023, 10:09am UTC](https://discourse.julialang.org/t/relocation-issue-during-create-sysimage-of-large-libraries-of-code-flux-fastai-cairo/105110 "2023-10-18T10:09:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raph38130](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raph38130/32/26832_2.png) [@raph38130](https://discourse.julialang.org/u/raph38130)\
**Post date:** [October 18, 2023, 10:09am UTC](https://discourse.julialang.org/t/relocation-issue-during-create-sysimage-of-large-libraries-of-code-flux-fastai-cairo/105110/1 "2023-10-18T10:09:38Z")

</div>

julia-1.9.3 on ibm power9 ppc64le

I successfully created a sysimage with Flux, FastAI, … but can’t incrementally add CairoMakie due to relocation error. Working sysimage.so is 821MB large.

> **Summary**
>
> /tmp/jl\_uxK58XMbaX.o(text.o): in function `japi1_setproperty!_112736': ./Base.jl:38:(.text+0x20000b8): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `jl\_f\_fieldtype’ defined in .text section in /mnt/…/notebooks/julia/julia-1.9.3/lib/julia/libjulia-internal.so  
> ./Base.jl:38:(.text+0x20000e0): additional relocation overflows omitted from the output  
> collect2: error: ld returned 1 exit status

Is there a known workaround ?  
Is it possible to pass `-mlong-call` option to compiler ? `sysimage_build_args=Cmd(["-mlong-calls"])` is not working…
