Add GCC7 to build scripts and docs#452
Conversation
| sudo apt-get update | ||
| sudo apt-get install libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386 -y | ||
| sudo apt-get install gcc-5.4-base:i386 -y | ||
| sudo apt-get install gcc-7.3-base:i386 -y |
There was a problem hiding this comment.
@dagar This is an incorrect guess. What do I use for the 32 bit libraries?
There was a problem hiding this comment.
I don't believe this package exists, however we don't have to have the regular gcc version with the arm-none-eabi-gcc version.
There was a problem hiding this comment.
OK, as we discussed I will delete all the 32bit support libraries.
|
|
||
| ```sh | ||
| bash: gcc-arm-none-eabi-4_7-2014q2/bin/arm-none-eabi-gcc: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory | ||
| bash: gcc-arm-none-eabi-4_7-2014q2/bin/arm-none-eabi-gcc: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory |
There was a problem hiding this comment.
@dagar I can imagine that I could replace the source path to the current gcce - e.g. with something like:
gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
But how can I tell if this is still valid?
There was a problem hiding this comment.
If I delete the support libraries above then this won't be needed because it is only relevant to them.
| ```sh | ||
| sudo apt-get install libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386 | ||
| sudo apt-get install gcc-4.6-base:i386 | ||
| sudo apt-get install gcc-7.3-base:i386 |
There was a problem hiding this comment.
As above, needs to be correct 32 bit binaries
| <!-- import GCC toolchain common documentation --> | ||
| {% include "_gcc_toolchain_installation.txt" %} | ||
|
|
||
| ## Additional 32 bit libraries |
There was a problem hiding this comment.
Note, removed these instructions - 32 bit support libraries as we discussed.
|
|
||
| Now restart your machine. | ||
| <!-- import GCC toolchain common documentation --> | ||
| {% include "_gcc_toolchain_installation.txt" %} |
There was a problem hiding this comment.
This imports same instructions as every other build. We can do this now that the 32 bit support libraries are no longer required.
| This is free software; see the source for copying conditions. There is NO | ||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Removed this section as it makes no sense now the 32bit support libraries are not needed. Actually the whole section technically isn't needed since it no longer provides any real troubleshooting - however telling people how to check versions is always useful step in debuggin.
|
This is ready for re-review. |
@dagar Thought it best to update the GCC to 7 as soon as possible - in response to PX4/PX4-Autopilot#8773 (comment)
Some questions inline though would appreciate your help with.