|
waipot
|
 |
« Reply #15 on: November 12, 2008, 02:06:36 AM » |
|
For the old version of toolchain which is included * binutils-2.18.tar.bz2 * gcc-4.2.2.tar.bz2 * newlib-1.15.0.tar.gz * insight-6.8.tar.bz2 You can download the previous installer here gnu-arm-installer.tar.gz and then type these command: tar xzf gnu-arm-installer.tar.gz cd gnu-arm-installer ./gnu-arm-installer.sh The installer will download, extract and compile all of the source files automatically. If it fails to download the source file, you need to download it manually to src/ directory and then run the installer again. If it is successful, you will get the toolchain in install/ directory.
|
|
|
|
|
Logged
|
|
|
|
|
A Microcontroller Discussion Board
|
 |
« Reply #15 on: November 12, 2008, 02:06:36 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
waipot
|
 |
« Reply #16 on: November 12, 2008, 02:12:12 AM » |
|
What NewThis version was fixed to work on Ubuntu 8.04 and 8.10. To install1. Download the latest installer gnu-arm-installer-v0.2.tar.gz and then extract the archive by typing: tar xzf gnu-arm-installer-v0.2.tar.gz
2. Download the following source files to gnu-arm-installer/src * binutils-2.19.tar.bz2 * gcc-4.3.2.tar.bz2 * newlib-1.16.0.tar.gz * insight-6.8.tar.bz2and then type these commands: cd gnu-arm-installer ./gnu-arm-installer.sh The installer will extract and compile all of the source files automatically. If it is successful, you will get the toolchain in install/ directory. ---
|
|
|
|
|
Logged
|
|
|
|
spye
Newbie

Posts: 4
|
 |
« Reply #17 on: November 12, 2008, 01:33:40 PM » |
|
Thanks for the suggestion. Unfortunately I have a chicken-and-egg problem: if I run the install shell script as 'steve', I get the following error:
Configuring in ./gcc configure: loading cache ./config.cache checking build system type... (cached) x86_64-unknown-linux-gnu checking host system type... (cached) x86_64-unknown-linux-gnu checking target system type... (cached) arm-unknown-elf checking LIBRARY_PATH variable... ok checking GCC_EXEC_PREFIX variable... ok checking whether to place generated files in the source directory... no checking whether a default linker was specified... no checking whether a default assembler was specified... no checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
I don't know what causes that, and I can't seem to find the config.log file
If I run the script as superuser, i.e. with the sudo prefix, then I get past the error I just mentioned, but run into the error I posted last night. I don't think the environment variable LD_LIBRARY_PATH is seen when the script runs under sudo.
Thanks again for any suggestions.
BTW. if I go sudo -s, i.e. run as 'root', and then initiate the script without sudo, then I still get the 'C compiler cannot create executables' error.
Here's a thought - is there a directory that I can manually do "chmod 777" to that might get rid of the 'C compiler cannot create executables' error?
|
|
|
|
|
Logged
|
|
|
|
alsig
Newbie

Posts: 1
|
 |
« Reply #18 on: November 13, 2008, 09:50:55 AM » |
|
Hi, I just used the GNU ARM Toolchain Installer, everything build a-ok  But when I try to build a existing project, which build ok with another tc I get this error: -------- begin -------- arm-elf-gcc (GCC) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. source/drivers/systemtiming.o: In function `Drivers::CSystemTiming::Instance()': /home/jens/Code::Blocks/Robot/source/drivers/systemtiming.cpp:16: undefined reference to `__dso_handle' source/drivers/uart.o: In function `Drivers::CUartDriver::Instance()': Linking: main.elf /home/jens/Code::Blocks/Robot/source/drivers/uart.cpp:138: undefined reference to `__dso_handle' arm-elf-gcc -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gdwarf-2 -DROM_RUN -Os -Wall -Wcast-align -Wcast-qual -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=source/crt0.lst -Iinclude/drivers -Iinclude/platform -Iinclude/device_drivers -Iinclude/scheduler -Iinclude/system_configurator -Iinclude/application -MD -MP -MF .dep/main.elf.d source/crt0.o source/main.o source/drivers/gpio.o source/drivers/spi.o source/drivers/systemtiming.o source/device_drivers/max146driver.o source/scheduler/component.o source/scheduler/scheduler.o source/system_configurator/signal.o source/system_configurator/systemconfigurator.o source/application/ledflasher.o source/drivers/uart.o source/drivers/armVIC.o source/drivers/timer.o --output main.elf -nostartfiles -Wl,-Map=main.map,--cref -lc -lm -lc -lgcc -lstdc++ -TLPC2214-ROM.ld collect2: ld returned 1 exit status make: *** [main.elf] Error 1
The problem, as far as I know, is something about static objects. In both lines I declare a static object. Anybody got an idea for solving this problem? /Jens
|
|
|
|
|
Logged
|
|
|
|
|
waipot
|
 |
« Reply #19 on: November 13, 2008, 11:17:56 PM » |
|
Hi Jens, I have no conclusion for your errors now. By the way, if your code is C++, please try to use arm-elf-g++ instead. The common problem is that the Linux cannot find the compiler path. This problem is fixed by typing export PATH=$PATH:/path/to/gnu-arm-installer/install/bin
|
|
|
|
|
Logged
|
|
|
|
spye
Newbie

Posts: 4
|
 |
« Reply #20 on: November 14, 2008, 09:54:00 PM » |
|
Regarding the problems I described in Reply#17, I split the install script into 2 and have now successfully built the toolchain. The first executed Steps 1 and 2 of the original script and I ran this script with sudo prefix. The second script executed Steps 3,4,5 and I ran this script as regular user. Because the first part of the script was run as 'root' I had to manually go in and chown and chgrp some directories, and I had to "sudo apt-get install libx11-dev" to get Iinsight to compile, ... but problems worked around. Thanks.
Questions:
1) I see install/include is empty and install/arm-elf/include is full of good stuff - is this expected?
2) If I want to add the TCP/IP sockets library and related include files, where do I go about getting those?
Thanks.
|
|
|
|
|
Logged
|
|
|
|
spye
Newbie

Posts: 4
|
 |
« Reply #21 on: November 15, 2008, 04:01:44 PM » |
|
I just tried to compile and link a trivial C program to test out the toolchain and got the following linker error:
steve@steve-laptop:~$ arm-elf-gcc hh.c /home/steve/armelfgcc/gnu-arm-installer/install/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: ERROR: /home/steve/armelfgcc/gnu-arm-installer/install/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/lib/crt0.o uses hardware FP, whereas a.out uses software FP
Is it expected that the compiler default and the library default for Floating-Point are different?
From the directories above does it appear that the install put binaries/libraries in the correct directories?
Thanks for any response.
|
|
|
|
|
Logged
|
|
|
|
homicide319
Newbie

Posts: 2
|
 |
« Reply #22 on: November 29, 2008, 06:07:51 PM » |
|
hey people,
when i've downloaded the installer, how do i extract the archive?
like this?: tar xzf gnu-arm-installer-v0.2.tar.gz
what stands xzf for?
and in the next step, folder "gnu-arm-installer/src" already existing??
sorry i'm absolutly new to linux (kubuntu8.1) but i gotta get armed, because i study informatics.
thanks a lot
/tim
|
|
|
|
|
Logged
|
|
|
|
|
Doug
|
 |
« Reply #23 on: November 30, 2008, 10:09:45 AM » |
|
Welcome Tim! Working with Linux is not so sweet, is it?  If you don't know such the commands, this quick review may help you: http://linuxreviews.org/beginner/Please feel free to ask any questions.
|
|
|
|
|
Logged
|
|
|
|
homicide319
Newbie

Posts: 2
|
 |
« Reply #24 on: December 01, 2008, 03:09:09 AM » |
|
hey now i get this error and there is nothing in the install directory:
config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing bfd_stdint.h commands config.status: executing default commands make[3]: Verlasse Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd/po' make[3]: Betrete Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd/po' make[3]: Für das Ziel »info« ist nichts zu tun. make[3]: Verlasse Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd/po' make[3]: Betrete Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd' make[3]: Für das Ziel »info-am« ist nichts zu tun. make[3]: Verlasse Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd' make[2]: *** [info-recursive] Fehler 1 make[2]: Verlasse Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19/bfd' make[1]: *** [all-bfd] Fehler 2 make[1]: Verlasse Verzeichnis '/home/tbienias/gnu-arm-installer/build/binutils-2.19' make: *** [all] Fehler 2
|
|
|
|
|
Logged
|
|
|
|
|
Doug
|
 |
« Reply #25 on: December 01, 2008, 06:56:23 PM » |
|
I suppose you are missing texinfo. To install sudo apt-get install texinfo if you are using Ubuntu.
|
|
|
|
|
Logged
|
|
|
|
|
hellowang
|
 |
« Reply #26 on: December 17, 2008, 11:54:42 PM » |
|
Hi All, I download the files,and run the ./configure.sh but about 10 minutes later ,i got this error:
configure :error:building Gcc requires GMP4.1+ and MPFR2.3.0+......
how can i sovle this problem? any suggestion is apprecated!
|
|
|
|
|
Logged
|
|
|
|
|
A Microcontroller Discussion Board
|
|
|
|
|
|
Logged
|
|
|
|
|