Getting error while trying to build OpenRaioss with flto for gcc15.0 #3082
Unanswered
rashinde45
asked this question in
Q&A
Replies: 1 comment
-
It works fine without flto option, any pointer or clue how to resolve this ? With a quick google search,I understood its known issue that can occur when mixing TLS and non-TLS variables across different compilation units. How do I fix this for OpenRadioss or OpenRadioss cannot be built for link time optimization. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build wth gcc15.0 with "flto" option and getting below error
/usr/bin/ld: units_2_: TLS reference in /tmp/cc3yJk2j.ltrans48.ltrans.o mismatches non-TLS reference in /tmp/cc3yJk2j.ltrans41.ltrans.o /usr/bin/ld: /tmp/cc3yJk2j.ltrans48.ltrans.o: error adding symbols: bad value collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/starter_.dir/build.make:29948: starter_] Error 1 make[3]: Leaving directory '/tmp/qa/OpenRadioss_1/cbuild_starter' make[2]: *** [CMakeFiles/Makefile2:111: CMakeFiles/starter_.dir/all] Error 2 make[2]: Leaving directory '/tmp/qa/OpenRadioss_1/cbuild_starter' make[1]: *** [Makefile:136: all] Error 2 make[1]: Leaving directory '/tmp/qa/OpenRadioss_1/cbuild_starter'
Beta Was this translation helpful? Give feedback.
All reactions