Project

General

Profile

Cannot install the GCC Toolchain for Angström

Added by Okan Çalış almost 3 years ago

Hi,
I'm using MityDsp L138F, and I'm trying to load a simple program to the ARM core running Linux, as documented here: https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Starter_Guide

I have an Ubuntu 16.04 virtual machine installed on a Windows host, but I can't install the GCC toolchain, as explained here: https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/GCC_Toolchain

When I run the executable by typing ./usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi, it doesn't return any errors; however, if I type arm-angstrom-linux-gnueabi-gcc -v to verify the installation, the terminal prints arm-angstrom-linux-gnueabi-gcc: command not found.

I'm trying to install "Aug-2012 SDK Tarball 64-Bit" from https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/GCC_Toolchain

What could the problem be?


Replies (9)

RE: Cannot install the GCC Toolchain for Angström - Added by Michael Williamson almost 3 years ago

Hello,

[edited, you did run the setup script]

This command adds the path to the cross compiler tools to your shell. If you type "arm-" and hit the tab key twice you should see multiple gcc related commands appear after running the setup script.

-Mike

RE: Cannot install the GCC Toolchain for Angström - Added by Okan Çalış almost 3 years ago

Hi Mike,
Thanks for your response. After running the script, I tried typing "arm-", but it doesn't show me anything if I double press the Tab key.

RE: Cannot install the GCC Toolchain for Angström - Added by Michael Williamson almost 3 years ago

If you run the command:

find /usr/local/oecore-i686 | grep arm

Do you see anything?

-Mike

RE: Cannot install the GCC Toolchain for Angström - Added by Okan Çalış almost 3 years ago

If I run find /usr/local/oecore-i686 | grep arm, it returns "find: 'usr/local/oecore-i686': No such file or directory".

But when I run, find /usr/local/oecore-x86_64 | grep arm, it returns a long list of files, most of which are header files.

I don't have an oecore-i686 directory, probably because I downloaded the 64-bit version.

RE: Cannot install the GCC Toolchain for Angström - Added by Jonathan Cormier almost 3 years ago

Okan Çalış wrote:

When I run the executable by typing ./usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi, it doesn't return any errors; however, if I type arm-angstrom-linux-gnueabi-gcc -v to verify the installation, the terminal prints arm-angstrom-linux-gnueabi-gcc: command not found.

There is supposed to be a space between the . and the /usr part of the path. The '.' is the same as the 'source' command which causes the shell to run the script in the current shell environment. Thus allowing the PATH variable to be updated.

RE: Cannot install the GCC Toolchain for Angström - Added by Okan Çalış almost 3 years ago

I honestly didn't know '.' was actually a command there. Thank you.
arm-angstrom-linux-gnueabi-gcc -v returns the following:

Using built-in specs.
COLLECT_GCC=arm-angstrom-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/lto-wrapper
Target: arm-angstrom-linux-gnueabi
Configured with: /space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work-shared/gcc-4.5-r49+svnr184907/gcc-4_5-branch/configure --build=x86_64-linux --host=x86_64-angstromsdk-linux --target=arm-angstrom-linux-gnueabi --prefix=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr --exec_prefix=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr --bindir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi --sbindir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi --libexecdir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi --datadir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/share --sysconfdir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/etc --sharedstatedir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/com --localstatedir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/var --libdir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/lib/armv5te-angstrom-linux-gnueabi --includedir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/include --oldincludedir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/include --infodir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/share/info --mandir=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-nativesdk-angstromsdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-angstrom-linux-gnueabi- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-linker-hash-style=gnu --with-ppl=no --with-cloog=no --enable-cheaders=c_global --with-float=soft --with-local-prefix=/usr/local/oecore-x86_64/sysroots/armv5te-angstrom-linux-gnueabi/usr --with-gxx-include-dir=/usr/local/oecore-x86_64/sysroots/armv5te-angstrom-linux-gnueabi/usr/include/c++ --with-build-time-tools=/space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/arm-angstrom-linux-gnueabi/bin --with-sysroot=/usr/local/oecore-x86_64/sysroots/armv5te-angstrom-linux-gnueabi --with-build-sysroot=/space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/mityomapl138 --disable-libunwind-exceptions --disable-libssp --disable-libgomp --disable-libmudflap --with-mpfr=/space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-nativesdk-angstromsdk-linux --with-mpc=/space/projects/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-nativesdk-angstromsdk-linux --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.5.4 20120305 (prerelease) (GCC)

RE: Cannot install the GCC Toolchain for Angström - Added by Jonathan Cormier almost 3 years ago

No worries its a bit obscure. We should probably switch to documenting as 'source /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi' to make it more clear.

RE: Cannot install the GCC Toolchain for Angström - Added by VIDYA J over 1 year ago

I am also facing same problem, ./usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi, is not giving any response

RE: Cannot install the GCC Toolchain for Angström - Added by Jonathan Cormier over 1 year ago

VIDYA J wrote:

I am also facing same problem, ./usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi, is not giving any response

Please try source /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi

Note this doesn't print anything when you run it.

    (1-9/9)
    Add picture from clipboard (Maximum size: 500 MB)