TLS error while compling Vrui form script

Home Forums AR Sandbox Forum TLS error while compling Vrui form script

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2646
    mkaszuba
    Participant

    I have a fresh install of Mint and when I run the build-ubuntu.sh file, I was able to to the Building Vrui example programs portion. At the Linking VisionTest… I get this error:
    usr/bin/ld: TLS reference in 0/g++3.gg0.03/visionTest.o mismatches non-TLS reference in /user/local/lib/x86-64-linux-gnu/Vrui-8.0/libVrui.so
    usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/vrui/libVrui.so: error adding symbols: bad value
    Collect2: error ld returned1 exit status.

    Please advise.

    #2648
    Sean Robinson
    Participant

    Are you using Mint 19.x (latest supported version) or another Mint version?

    I think you need to remove the src directory before rebuilding Vrui. The error you show can come from the following: failed first build, install missing dependencies, then try to build again without removing artifacts from the first build.

    Also, this looks like an incomplete summary of the error rather than the actual error message(s). If the above does not work, please post the full errors.

    #2654
    mkaszuba
    Participant

    Here is the complete error:
    Linking /home/arsandbox/src/Vrui-8.0-002/lib/x86_64-linux-gnu/VRVislets/libLatencyTester.so…
    /usr/bin/ld: _ZN18GLARBShaderObjects7currentE: TLS reference in o/g++-3.g0.O3/pic/Vrui/Vislets/LatencyTester.o mismatches non-TLS reference in /home/arsandbox/src/Vrui-8.0-002/lib/x86_64-linux-gnu/libVrui.so
    /usr/bin/ld: /home/arsandbox/src/Vrui-8.0-002/lib/x86_64-linux-gnu/libVrui.so: error adding symbols: bad value
    collect2: error: ld returned 1 exit status
    make: *** [makefile:1691: /home/arsandbox/src/Vrui-8.0-002/lib/x86_64-linux-gnu/VRVislets/libLatencyTester.so] Error 1
    make: *** Waiting for unfinished jobs….
    Linking /home/arsandbox/src/Vrui-8.0-002/lib/x86_64-linux-gnu/VRDevices/libArtDTrack.so…
    Build unsuccessful; please fix any reported errors and try again

    My version of Mint is 21.2, I could not locate a 19.x version to download.

    #2661
    Sean Robinson
    Participant

    My version of Mint is 21.2, I could not locate a 19.x version to download.

    It is possible to build the AR Sandbox on LM 21.x, but you will need to change the process a bit. See the solution from @solanic in VRUI – “Unable to locate package”. The discussion on that page has background info and further links.

    #2667
    mkaszuba
    Participant

    I was able to work around the TLS issue by using the LMDE 6 “Faye” version of Mint Linux. I still had to make the edits mentioned in the .sh file, but the rest of the process worked as expected.

    http://doc-ok.org/?topic=errors-during-build-ubuntu-sh-processing

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.