-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorcery g++ Cannot find libc.so.6 #3
Comments
Maybe a botched install? Lazy solution: Try duplicating Proper solution: 4.3.3 is ancient (in internet years at least; it was released 8 years ago). You might want to use a more up-to-date toolchain. Chances are its setup will handle these symlinks properly. |
Why don't you include a more up to date version? |
Heh, I hoped that wasn't ours, but was too lazy to check. Well, in my defense it was less ancient (25%!) when I packaged the installer. But I can speak to the fact that the installer we ship does work. Have you tried reinstalling? Did duplicating the libc with the expected name work? I believe CodeSourcery doesn't provide newer CS Lite toolchains for Windows anymore. Or maybe they do, but their website has become difficult to navigate after Mentor Graphics took over and I couldn't manage to find a direct link to a more up-to-date toolchain, so I went with that one. If you do find a recent |
It sort of worked, but with more issues. Firstly Maybe its due to this warning? |
Ye, that's a deal breaker. From the ev3duder documentation:
Either upload the libstdc++ manually. (There is a file manager in the Eclipse plugin, you can use for that), use a cross GCC ≥4.5 or use C. |
Could you maybe use another ARM toolchain other than Sorcery? |
Got a specific one in mind? As I said, if you find a reputable vendor who provides prebuilt windows binaries, I'd be happy to include them. |
A quick search found this. It's seems like an official toolchain, has windows binaries, and last update was a month ago. |
I'm uninstalling Sorcery G++ and seeing if I can get this official toolchain working right now. EDIT: Turns out I was wrong, that toolchain was barebone when I believe a linux toolchain is needed. I did find this however, which I am now testing. (I am using 32-bit ARMv7 Cortex-A, hard-float, little-endian, i686_mingw32) |
Update, back to the same issue: compiles, uploads but does not run. This time using Linaro with C. |
I had the same problem with Linaro, but I can't recall if I investigated the reason. If I were to take a guess now, I'd say it's a libc version mismatch. You can use If you are fine with the existing C++98 support, just upload the
|
Ok, that fixed it (well, I just switched to C and that fixed it [I don't even know why I set it up for C++ when I actually prefer and was planning to use C]). But the program isn't showing up on the list? I have to manually plug it in and use "Upload and Run" to get it to run. I've tried manually uploading it with: |
Does it show up when uploading to the memory card, or do you do that already? There's a |
It does show up from the SD card I believe but I haven't tested it. I would rather it just be on the EV3 itself. I also can't start it from a computer because these will be used for RoboCup. |
The EV3 is a bit pedantic about the directory layout. For example on the SD card, it wants the rbf files to be in a subdirectory. I don't have an EV3 to test, but I recall that it was showing up in the menu when using the internal memory. Did you change Also best of luck with your RoboCup endeavors. I shall root for those using my software :D |
No, what is |
Only .rbf files in specific locations get a menu entry, so the EV3 hello world project contains a Changing it could make the icon disappear, so better keep it as-is. It should say:
at the top, does it? |
Sorry, I've been busy the past day and a half, but I just checked now and it does start with that. EDIT: I've also reset the EV3 and gone through with |
There's an integrated File Manager in Eclipse: I can't remember what |
No, it still doesn't work properly, sorry. The program still doesn't appear in the EV3 program list. |
Starts with what? So it works from SD Card but not from the Brick memory? Did you try in both cases the Hello World C example without any modifications? |
Sorry I wasn't very clear. |
That's unfortunate. Well, no idea what's wrong. I do recall that there were menu entries with brick memory. The documentation also reflects that:
It speaks of RBFs though, not RPFs. Try following these steps and see if it works for you. Apart from that, menu entries for programs on SD memory works out-of-the-box, because that's what we were using primarily, so you could always try that instead of brick memory. Unfortunately, I don't have an EV3 to test on, so I can't offer more help. |
I built some new toolchains at https://github.com/c4ev3/toolchain. The Linux and macOS toolchains should work and support -static-libstdc++. The Windows Toolchain still has some issues though. I will report back here should I get around to fix it... |
I finally got around to using c4ev3, and I'm having issues with the addon/compiler. I posted here as I couldn't find any bug reports for Sorcery and my last issue I posted on one of the other c4ev3 repo's showed that you reply quick with great help.
When I try to compile I get this error:
c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld.exe: cannot find /lib/libc.so.6 inside c:\program files (x86)\codesourcery\sourcery g++ lite\bin\../arm-none-linux-gnueabi/libc/armv4t
I checked that directory and it contains a file called
/lib/libc-2.8.so
but no/lib/libc.so.6
which seems to be the problem. I've tried adding-nostdlib
then `-lc' to see if that fixed anything but neither flags seem to change anything at all.The text was updated successfully, but these errors were encountered: