sist2 icon indicating copy to clipboard operation
sist2 copied to clipboard

Build fails

Open MparkG opened this issue 1 year ago • 4 comments

Device Information (please complete the following information):

  • OS: Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-53-generic x86_64)
  • Deployment: normal
  • SIST2 Version: git newest

Command with arguments make

Describe the bug build fails with error

Steps To Reproduce go through build instructions on readme

Expected behavior builds successfully

Actual Behavior

[ 86%] Linking C executable sist2
Erfolgreicher Kindprozess 0x5c38cf52bd40 PID 80258  wird eingesammelt
Aktiver Kindprozess 0x5c38cf52bd40 (sist2) PID 80260 
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_expm1.o): warning: relocation against `_dl_x86_cpu_features' in read-only section `.text'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_atan.o): in function `__atan_ifunc':
(.text+0x546): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: (.text+0x551): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: (.text+0x55a): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_cbrt.o): in function `__cbrt':
(.text+0x3a): undefined reference to `__frexp'
/usr/bin/ld: (.text+0x136): undefined reference to `__ldexp'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_ceil.o): in function `__ceil_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_floor.o): in function `__floor_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_sin.o): in function `__sin_ifunc':
(.text+0x1206): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: (.text+0x1211): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: (.text+0x121a): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_sin.o):(.text+0x1266): more undefined references to `_dl_x86_cpu_features' follow
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_cbrtf.o): in function `__cbrtf':
(.text+0x37): undefined reference to `__frexpf'
/usr/bin/ld: (.text+0x118): undefined reference to `__ldexpf'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_ceilf.o): in function `__ceilf_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_cosf.o): in function `__cosf_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: (.text+0xf): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_floorf.o): in function `__floorf_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_sinf.o): in function `__sinf_ifunc':
(.text+0x6): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.39.a(s_sinf.o):(.text+0xf): more undefined references to `_dl_x86_cpu_features' follow
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Erfolgloser Kindprozess 0x5c38cf52bd40 PID 80260  wird eingesammelt
make[2]: *** [CMakeFiles/sist2.dir/build.make:542: sist2] Fehler 1
Kindprozess 0x5c38cf52bd40 PID 80260 wird aus der Kette entfernt.
Erfolgloser Kindprozess 0x5ac4485e5ab0 PID 80095  wird eingesammelt
make[1]: *** [CMakeFiles/Makefile2:205: CMakeFiles/sist2.dir/all] Fehler 2
Kindprozess 0x5ac4485e5ab0 PID 80095 wird aus der Kette entfernt.
Erfolgloser Kindprozess 0x5dfa6f80ee50 PID 80047  wird eingesammelt
make: *** [Makefile:91: all] Fehler 2
Kindprozess 0x5dfa6f80ee50 PID 80047 wird aus der Kette entfernt.

any ideas what i can try? Thanks

MparkG avatar Mar 30 '25 12:03 MparkG

Could you try again with the latest version? Compiling should work with with ubuntu 24

shyyio avatar Jul 05 '25 16:07 shyyio

ill gladly try again later today!

Am 5. Juli 2025 18:33:01 MESZ schrieb Shy @.***>:

shyyio left a comment (sist2app/sist2#523)

Could you try again with the latest version? Compiling should work with with ubuntu 24

-- Reply to this email directly or view it on GitHub: https://github.com/sist2app/sist2/issues/523#issuecomment-3039311829 You are receiving this because you authored the thread.

Message ID: @.***>

MparkG avatar Jul 05 '25 16:07 MparkG

how much ram do i need?

after several hours i am getting a segmentation fault..

collect2: fatal error: ld terminated with signal 11 [SEGFAULT], core dumped compilation terminated. make[2]: *** [CMakeFiles/sist2.dir/build.make:561: sist2] Error 1

the OOM killer did not trigger, so ram should have been enough.

ld is hovering between 7 and 8 GB of ram.

the command is

/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-linux-gnu/13/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper -plugin-opt=-fresolution=/tmp/ccK6g0xd.res -plugin-opt=-pass-

MparkG avatar Jul 07 '25 09:07 MparkG

Thanks for flagging, this should be fixed in c38c2f3 - please reopen if you still encounter this problem

shyyio avatar Aug 24 '26 12:08 shyyio