Gcc compiler for linux ARM architecture
Gcc compiler for linux ARM architecture
Hello
I need create application for linux with arm7 procesor and 2.4.21 kernel , i download toolchain from gnuarm.com but all application not work only see segmentation fault
any Ideas are welcome !
I need create application for linux with arm7 procesor and 2.4.21 kernel , i download toolchain from gnuarm.com but all application not work only see segmentation fault
any Ideas are welcome !
- wread
- Module Guard
- Posts: 1255
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
Re: Gcc compiler for linux ARM architecture
The gnuarm toolchain includes a debugger, why don't you use it?
I understand your environment should be 64-bits.....
I understand your environment should be 64-bits.....
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
Re: Gcc compiler for linux ARM architecture
Yes i compile with -mcpu=armv7tdmi flag.Hamza wrote:Try to compile with an ARM cpu ?
@wread
I don't like debuggers, environment is for 32 bit architecture.
Create it simple application in latest codetyphoon for linux and arm procesors but see the same bug segmentation fault maybe kernel 2.4.21 and glibc 2.2.3 is too old ?
- wread
- Module Guard
- Posts: 1255
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
Re: Gcc compiler for linux ARM architecture
I think gnuarm is for 64-bit architecture; deshalb your segfaults!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Gcc compiler for linux ARM architecture
Hi crashman,
Looking over the gnuarm download page, I see toolchains for gcc up to version 4.1 (released in 2006), but porteus 1 uses gcc version 4.5, so perhaps this is part of the issue. If you downloaded binaries that use much older versions of dependencies as well, that could add to the problems.
When I was working on ARM, I used the Codesourcery Codebench toolchain -- I'm not positive this is the appropriate link, but here is one: http://www.mentor.com/embedded-software ... e-edition/
I'm stuck in windows at the moment and my toolchain and instructions for use are on my ext4 partition. I'll grab some more info for you and post it later today or tomorrow. I might even have some useable modules.
Looking over the gnuarm download page, I see toolchains for gcc up to version 4.1 (released in 2006), but porteus 1 uses gcc version 4.5, so perhaps this is part of the issue. If you downloaded binaries that use much older versions of dependencies as well, that could add to the problems.
When I was working on ARM, I used the Codesourcery Codebench toolchain -- I'm not positive this is the appropriate link, but here is one: http://www.mentor.com/embedded-software ... e-edition/
I'm stuck in windows at the moment and my toolchain and instructions for use are on my ext4 partition. I'll grab some more info for you and post it later today or tomorrow. I might even have some useable modules.
Please take a look at our online documentation, here. Suggestions are welcome!
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Gcc compiler for linux ARM architecture
Ok -- I am using this file from sourcery codebench lite:
arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
It works for me on Porteus 1.2 32-bit.
You have to sign up on their website and give them your email address, and the package is not GPL compliant, they have proprietary software in there.
go to this link: http://www.mentor.com/embedded-software ... e-edition/
look under 'ARM processors' and then, I'm not sure if it's the 'GNU/Linux' or 'EABI' release, but you'll click on one of those, then you'll have to give them your email address and create a password, then they send you a download link via email and you can sort through the releases. I had trouble with newer releases, which is why I went with the 2010q1-188 version.
I simply extracted that file to a location on my hard disk (/mnt/sdb2/arm/codesourcery), and then ran these commands:
Then I compiled the software as usual.
I hope that helps, let me know if it doesn't
arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
It works for me on Porteus 1.2 32-bit.
You have to sign up on their website and give them your email address, and the package is not GPL compliant, they have proprietary software in there.
go to this link: http://www.mentor.com/embedded-software ... e-edition/
look under 'ARM processors' and then, I'm not sure if it's the 'GNU/Linux' or 'EABI' release, but you'll click on one of those, then you'll have to give them your email address and create a password, then they send you a download link via email and you can sort through the releases. I had trouble with newer releases, which is why I went with the 2010q1-188 version.
I simply extracted that file to a location on my hard disk (/mnt/sdb2/arm/codesourcery), and then ran these commands:
Code: Select all
export PATH=/mnt/sdb2/arm/codesourcery/arm-2010q1/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=/mnt/sdb2/arm/codesourcery/arm-2010q1/bin/arm-none-eabi-
I hope that helps, let me know if it doesn't
Please take a look at our online documentation, here. Suggestions are welcome!
Re: Gcc compiler for linux ARM architecture
Hi Ahau
Thanks for the reply I will know if it works!
regards
EDIT://
For this moment downloaded binaries for windows create application run and..."cannot execute binary file"
Machine specyfication:
CPU: ARM7
Memory: 16MB RAM,
8 MB FLASH
Linux with kerrnel 2.4.21
Glibc-2.2.3
Low memory create segmentation fault but i am download other crosscompiler with gcc-2.95.3 and glibc-2.2.3 create apps wih him and show other bug:
Inconsistency detected by ld.so: dynamic-link.h: 62: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!
this is bug with glibc<2.3 and linker ld.so --- you can go crazy
Thanks for the reply I will know if it works!
regards
EDIT://
For this moment downloaded binaries for windows create application run and..."cannot execute binary file"
Machine specyfication:
CPU: ARM7
Memory: 16MB RAM,
8 MB FLASH
Linux with kerrnel 2.4.21
Glibc-2.2.3
Low memory create segmentation fault but i am download other crosscompiler with gcc-2.95.3 and glibc-2.2.3 create apps wih him and show other bug:
Inconsistency detected by ld.so: dynamic-link.h: 62: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!
this is bug with glibc<2.3 and linker ld.so --- you can go crazy
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Gcc compiler for linux ARM architecture
Hi crashman,
If you like, since I have a working toolchain on my system (granted, it may not be the right toolchain for what you're trying to do), you could bundle your source code, post it online, and I will download it and try to compile it on my system. If it works, I can send you the binaries back, and also work on getting the toolchain to work the same on your system so you can recompile as needed.
Another option might be to install an older version of Slackware that would have a matching version of glibc and gcc.
So I understand better -- You downloaded Windows binaries for codesourcery codebench, and got the "cannot execute binary file" error when you tried to run it in Linux?"For this moment downloaded binaries for windows create application run and..."cannot execute binary file"
If you like, since I have a working toolchain on my system (granted, it may not be the right toolchain for what you're trying to do), you could bundle your source code, post it online, and I will download it and try to compile it on my system. If it works, I can send you the binaries back, and also work on getting the toolchain to work the same on your system so you can recompile as needed.
Another option might be to install an older version of Slackware that would have a matching version of glibc and gcc.
Please take a look at our online documentation, here. Suggestions are welcome!
Re: Gcc compiler for linux ARM architecture
Yes i downloaded crosscompiler for windows os but target executable file is for ARM machine .Ahau wrote: So I understand better -- You downloaded Windows binaries for codesourcery codebench, and got the "cannot execute binary file" error when you tried to run it in Linux?
Is not possible, very incompatible files i testing gzip under remote machine and doesn't work.Ahau wrote: Another option might be to install an older version of Slackware that would have a matching version of glibc and gcc.
Unfortunately, the network but it is difficult to find a ready-made solution for kernel 2.4
I do not know if my client on the go let you know if my client agree.Ahau wrote: If you like, since I have a working toolchain on my system (granted, it may not be the right toolchain for what you're trying to do), you could bundle your source code, post it online, and I will download it and try to compile it on my system
Thank you for help me.