EDIT: this used to be the FAQ for linux, but Ive moved that to the user guide.
but kept this post, as it useful for info about issues tim had with GCC.
Issue with install GCC on linux
Hi thetechnobear,
I encounter an error when installing:
After this operation, 158 MB of additional disk space will be used.
(Reading database ... 841559 files and directories currently installed.)
Preparing to unpack .../gcc-arm-none-eabi_4.9.3.2015q2-1trusty1_amd64.deb ...
Unpacking gcc-arm-none-eabi (4.9.3.2015q2-1trusty1) over (4.8.2-14ubuntu1+6) ...
dpkg: error processing archive /var/cache/apt/archives/gcc-arm-none-eabi_4.9.3.2015q2-1trusty1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/arm-none-eabi-as', which is also in package binutils-arm-none-eabi 2.24-2ubuntu2+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-arm-none-eabi_4.9.3.2015q2-1trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
any idea?
thanks
I assume your running with sudo?
(can you confirm which package you are trying to install, and what version of linux your using)
sounds like you have a package mismatch... as you already have the gcc-arm package installed...
Im sure you could force the package install, but Im not sure if thats what you want.
I'm simply trying to install Axoloti in a new location.
It was installed in other locations previously, so gcc-arm with that as well I assume.
I go:
git clone https://github.com/JohannesTaelman/axoloti.git
and
sudo ./platform_linux/install.sh
on Ubuntu 14.04.2 LTS
cool, just wanted to check it wasn't the new axoloti.deb install
the issue is:
Unpacking gcc-arm-none-eabi (4.9.3.2015q2-1trusty1) over (4.8.2-14ubuntu1+6)
so its trying to install a package which you already have installed, and it would have to change the package.
usually, it would just upgrade it, but for some reason, it appears your package are not 'related'
probably you can just force the install to the newer version with
apt-get install -f gcc-arm-none-eabi
(the only issue being i don't know if you have other dependencies, but Id have thought this will be fine, since you are installing a newer version)
(its a bit odd, I have 14.04 LTS installed, and used install.sh with no issue... though it was a clean install, perhaps yours has been 'used' a bit more, and has old packages hanging around )
hmm,
gives the same error still:
dpkg: error processing archive /var/cache/apt/archives/gcc-arm-none-eabi_4.9.3.2015q2-1trusty1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/arm-none-eabi-as', which is also in package binutils-arm-none-eabi 2.24-2ubuntu2+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-arm-none-eabi_4.9.3.2015q2-1trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
anyhow, I manually removed gcc-arm-none-eabi altogether,
now the install script still hangs at this next:
platform_linux/install.sh: line 19: ./add_udev_rules.sh: No such file or directory
I changed line 19 to
./platform_linux/add_udev_rules.sh
no complaints there anymore.
next stop:
ChibiOS_2.6.8.zip already downloaded
Archive: ChibiOS_2.6.8.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ChibiOS_2.6.8.zip or
ChibiOS_2.6.8.zip.zip, and cannot find ChibiOS_2.6.8.zip.ZIP, period.
It seems to be a problem with line 46
curl -L http://sourceforge.net/projects/chibios/files/ChibiOS_RT%20stable/Version%202.6.8/$ARCHIVE > $ARCHIVE
which results in an invalid ChibiOS_2.6.8.zip (sized 639 bytes)
ok, add_dev should be after the cd $PLATFORM_ROOT, updated, and sent pull request.
(the reason it worked for me before, is I run this script whilst in platform_linux)
will see if i get the same with chibios... (odd this worked a couple of days ago )
EDIT: Sourceforge is having issues...
"We're sorry -- the Sourceforge site is currently in Disaster Recovery mode, and currently requires
the use of javascript to function. Please check back later."
from twitter: #SourceForge site is read-only, developer services disabled due to storage infra fault. Service restoral work in-progress, ETA to follow.
and same story on current server status.
What you can do is download manually using a web browser... then unzip into ./Chibios
(note: we are using 2.6.8, but for some reason latest version is currently 2.6.7... perhaps an older backup archive on source forge?)
EDIT (18/07): appears sourceforge is back up and running, should work now
Older versions of gcc-arm-none-eabi seem problematic, one user reported on Mint Linux:
/usr/lib/gcc/arm-none-eabi/4.8.2/include/stdint.h:9:26: fatal
error: stdint.h: No such file or directory
# include_next <stdint.h>
^
compilation terminated.
Install gcc-arm-none-eabi 4.9-2015q2 from https://launchpad.net/gcc-arm-embedded if your distribution only provides old versions of gcc-arm-none-eabi.
gcc-arm-none-eabi is now included in the application bundle, to avoid this complication for users.
and build.sh (renamed from install.sh) now retrieves the latest version from https://launchpad.net/gcc-arm-embedded, so we wont have gcc clashes.
note: it needs to have the 32bit libc installed, which build.sh use apt-get to retrieve.
this approach is also consistent with our approach on windows and OS X of providing the compiler with the runtime package, and keeping it local to axoloti. (allows us more control over test/updating etc)