abhiTronix / raspberry-pi-cross-compilers

Latest GCC Cross Compiler & Native (ARM & ARM64) CI generated precompiled standalone toolchains for all Raspberry Pis. 🍇
https://sourceforge.net/projects/raspberry-pi-cross-compilers
GNU General Public License v3.0
594 stars 104 forks source link

Exec format error when trying execute gcc-8.2.0 #7

Closed jimcruse closed 5 years ago

jimcruse commented 5 years ago

After all the setup I now get an exec format error I now get an: root@raspberrypi:/home/pi/gcc_all/cross-pi-gcc-8.2.0/bin# .arm-linux-gnueabihf- gcc-8.2.0 bash: ./arm-linux-gnueabihf-gcc-8.2.0: cannot execute binary file: Exec format error

abhiTronix commented 5 years ago

@jimcruse

After all the setup I now get an exec format error I now get an: root@raspberrypi:/home/pi/gcc_all/cross-pi-gcc-8.2.0/bin# .arm-linux-gnueabihf- gcc-8.2.0 bash: ./arm-linux-gnueabihf-gcc-8.2.0: cannot execute binary file: Exec format error

Are you running the cross-compiler on Raspberry Pi?, they are meant for specifically for linux environments(like ubuntu, mint etc) not raspbian.

Also, Native binaries are for raspbian only, Also don't use cross-compiler commands to excess them. These are the commands meant for you:

Testing: (Post Linking)

You can check Installed versions as below:

    Native Compiler(Raspberry pi): #Use these commands

    gcc --version
    ld -v
    ldd -v

and finally, Kindly refer the Readme Section Carefully before posting an issue.

jimcruse commented 5 years ago

I reinstalled everything from scratch and got it working, had to relink g++ to /opt/gcc-8.2.0/bin/arm-linux-gnueabihf-g++

abhiTronix commented 5 years ago

I reinstalled everything from scratch and got it working, had to relink g++ to /opt/gcc-8.2.0/bin/arm-linux-gnueabihf-g++

@jimcruse This Bug is fixed in commit https://github.com/abhiTronix/raspberry-pi-cross-compilers/commit/645352297e1074e5a0ab27c354ace6a1914b8467 . Kindly Try ReadMe section again. Thankyou

jimcruse commented 5 years ago

I'll try next week, I broke my raspberry pi

On Wed, Feb 20, 2019, 11:19 AM Abhishek Thakur notifications@github.com wrote:

I reinstalled everything from scratch and got it working, had to relink g++ to /opt/gcc-8.2.0/bin/arm-linux-gnueabihf-g++

@jimcruse https://github.com/jimcruse This Bug is fixed in commit 6453522 https://github.com/abhiTronix/raspberry-pi-cross-compilers/commit/645352297e1074e5a0ab27c354ace6a1914b8467 . Kindly Try ReadMe section again. Thankyou

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abhiTronix/raspberry-pi-cross-compilers/issues/7#issuecomment-465717115, or mute the thread https://github.com/notifications/unsubscribe-auth/ApGeueqcK-3USjV-5MA6IrNgSEGq9qQiks5vPZ-7gaJpZM4aURia .