Sysprogs forums › Forums › VisualGDB › Sysroot sync with RPI libsm.so not recognized
- This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by
support.
-
AuthorPosts
-
February 16, 2019 at 02:03 #23880
jrgrobinson
ParticipantHi,
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 6 years, 9 months ago by
jrgrobinson.
February 16, 2019 at 02:10 #23882support
KeymasterHi,
This looks like a bug that was fixed in VisualGDB 5.4R2. Please try installing that version.
February 16, 2019 at 03:10 #23883jrgrobinson
ParticipantThat 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.
February 16, 2019 at 12:43 #23885jrgrobinson
ParticipantJust 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.
February 17, 2019 at 00:42 #23886support
KeymasterHi,
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.
-
This topic was modified 6 years, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.