-
-
Notifications
You must be signed in to change notification settings - Fork 35
Raspberry PI: unrecognized command line option '-std=gnu++14' #36
Comments
Hi @gdsports , |
Thanks, the updated toolchain fixes the "-std=gcc++14" error. I removed ~/.arduino15 to force the IDE to download the latest packages and archives. But the build fails with "libfl.so.2: cannot open shared object file: No such file or directory".
|
I installed libfl2 to get the missing shared library libfl.so.2 but this might not be the correct solution since it requires root privs.
The IDE finished the compile and upload without errors. Perhaps the solution should be to bundle libfl.so.2 in the arm gcc lib directory.
|
I agree that all the dependencies should be self contained; however I used the very same build script ARM uses to generate its official toolchain, so an additional dependency is, well, unexpected.
So no sign of |
Yes, libfl and libm. Perhaps the ARM version is built with different options.
|
|
Static linking libs makes a lot of sense. I noticed one oddity that may not be relevant. Looks like the --version option reports 7-2019-q4-major. Maybe a typo?
|
On our own build scripts we always static link everything to avoid exactly this kind of issues. However, this build script comes directly from arm (https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-src.tar.bz2?revision=407b9d39-904c-4294-af9c-3b0cdd04184b?product=GNU%20Arm%20Embedded%20Toolchain,Invariant,,Source,7-2017-q4-major) and has the peculiar "feature" to change the "date" field based on when you compile it (thus |
Just a note that I too had this problem except that I am using a MKR WiFi 1010.
|
Raspberry Pi 4 running Raspbian buster.
Linux rpi44gb 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
The text was updated successfully, but these errors were encountered: