-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
u-boot-sunxi fails to compile with recent gcc versions #16
Comments
Any solution to this? Thanks |
Issue is way too old but I was stuck on the same problem and solved it with an inelegant way. I'm using Ubuntu 18.04.2 LTS and if I'm not mistaken
To add it as an alternative: Then finally
|
I would recommend to download the required compiler from
https://releases.linaro.org/archive/14.04/components/toolchain/binaries/
make -j8 ARCH=arm
CROSS_COMPILE=/<PATH>/gcc-linaro-arm-linux-gnueabihf-4.8-2013.07-1_linux/bin/arm-linux-gnueabihf-
uImage...
…On Fri, May 17, 2019 at 4:09 PM Gediz ***@***.***> wrote:
Issue is way too old but I was stuck on the same problem and solved it
with an inelegant way.
I'm using Ubuntu 18.04.2 LTS and if I'm not mistaken
gcc-4.9-arm-linux-gnueabi is the most recent and suitable for use
version. I was unable to directly install it via apt so I had to append
the following line to my /etc/apt/sources.list;
deb http://cz.archive.ubuntu.com/ubuntu xenial main universe
then
sudo apt update and sudo apt install gcc-4.9-arm-linux-gnueabi to install
the package.
To add it as an alternative:
sudo update-alternatives --install /usr/bin/arm-linux-gnueabi-gcc
arm-linux-gnueabi-gcc /usr/bin/arm-linux-gnueabi-gcc-4.9 100
Then finally
***@***.*** ~ sudo update-alternatives --config arm-linux-gnueabi-gcc
There are 2 choices for the alternative arm-linux-gnueabi-gcc (providing /usr/bin/arm-linux-gnueabi-gcc).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/arm-linux-gnueabi-gcc-4.9 100 auto mode
1 /usr/bin/arm-linux-gnueabi-gcc-4.9 100 manual mode
* 2 /usr/bin/arm-linux-gnueabi-gcc-7 50 manual mode
Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/arm-linux-gnueabi-gcc-4.9 to provide /usr/bin/arm-linux-gnueabi-gcc (arm-linux-gnueabi-gcc) in auto mode
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AATMEPSKMOIDXVHQ6SILJ6LPV24CRA5CNFSM4CMLOZ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVU3PMA#issuecomment-493467568>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATMEPW7V6O5IQIRSMBWEWTPV24CRANCNFSM4CMLOZ5Q>
.
|
There are no compiler support files for either gcc 5 or 6, which according to
apt-cache search gcc | grep gnueabi
means it can no longer be compiled with built in packages in current versions of Debian, which only include cross compilers for gcc versions 5 and 6.The text was updated successfully, but these errors were encountered: