Sysroot sync with RPI libsm.so not recognized

Sysprogs forums Forums VisualGDB Sysroot sync with RPI libsm.so not recognized

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23880
    jrgrobinson
    Participant

    Hi,

    I have a VisualGDB build2737 using the raspberry-gcc6.3.0-r4 chain from the sysprogs site and the latest 2018-11-13 Raspbian Stretch on my PI3B.  I have done a clean install of the toolchain and Raspbian after the problem started and this makes no difference.

    I can make a new project with CMake or GNU Make and run it on the PI happily. Once I attempt a sysroot synchronize, so I can use wiringPi libraries, it is no longer possible to build. The build fails at the linker with the error:

    c:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf/libm.so: file not recognized: File truncated

    I have tried all the options(mismatch, missing and all) of sysroot, from clean toolchain installs and all give the same error. I have tried with clean installs of Raspbian and different Pi boards and the failure is consistent.

    I noticed a recent entry, so far inconclusive on Jan 19, in the forum, which has a similar problem.

    Any ideas would be much appreciated.

    • This topic was modified 5 years, 9 months ago by jrgrobinson.
    #23882
    support
    Keymaster

    Hi,

    This looks like a bug that was fixed in VisualGDB 5.4R2. Please try installing that version.

    #23883
    jrgrobinson
    Participant

    That was quick. Re-installed VisualGDB from your website and I had to re -install the tool chain. Now the Hello World build now completes after the sysroot sync.

    I now fail at the undefined reference stage when I add the simple wiringPi code.

    The tutorial uses a Makefile Settings example but the current properties have the CMake settings. How do I enter the wiringPi and phThread entries to the include and libraries list in the CMake screen?

    Sorry if this is unrelated but it is probably a bit newbie to make a topic for.

    Thanks for your fast response and fixing the syn problem.

    #23885
    jrgrobinson
    Participant

    Just to close off.

    R2 of VisualGDB  fixes the file synchronization problem.

    I have worked around my last, unrelated question. It looks to me that a project using libraries like wiringPi in the Raspbian distribution, although synchronized into usr/sysroot, can’t be built in VisualGDB with CMake. The references are good if a GNU Makefile project is used.  As the 2014 VisualGDB wiringPi tutorial does.

    #23886
    support
    Keymaster

    Hi,

    Good to know the sysroot sync works.

    The library-related options used by GCC can be indeed very misleading, so please feel free to look through this page for an overview and examples. Also feel free to share the error messages you get and the settings you have and we can point you to the right direction.

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