Arch ARM Toolchain building on Ubuntu 18.04 fails

Development on core packages and the distribution goes on in here.

Arch ARM Toolchain building on Ubuntu 18.04 fails

Postby redbrain » Wed Apr 24, 2019 8:42 am

Hello,

I try to build the ARM Arch Toolchain on Ubuntu 18.04.2 LTS (x86_64). I followed the steps in

https://archlinuxarm.org/wiki/Distcc_Cross-Compiling

The first problem occured when crosstool-ng is trying to download gcc-8.2.1

$this->bbcode_second_pass_code('', '[DEBUG] ==> Return status 8
[DEBUG] Not at this location: "http://gcc.gnu.org/pub/gcc/releases/gcc-8.2.1/gcc-8.2.1.tar.gz"
[ERROR] gcc: download failed')

which is not available anymore on the common mirrors. So I changed it to gcc-8.2.0 in .config.

Next problem is ncurses compilation:

$this->bbcode_second_pass_code('', '[EXTRA] Building ncurses
[ERROR] _15246.c:843:15: error: expected ')' before 'int'
[ERROR] make[2]: *** [../objects/lib_gen.o] Error 1
[ERROR] make[2]: *** Waiting for unfinished jobs....
[ERROR] make[2]: *** [fallback.c] Error 1
[ERROR] make[1]: *** [all] Error 2')

According to https://stackoverflow.com/questions/37475222/ncurses-6-0-compilation-error-error-expected-before-int

i should add "export CPPFLAGS="-P" somewhere. But where is the right place for it? or should I patch ncurses itself to fix this?
But how?

Best regards
redbrain
 
Posts: 7
Joined: Wed Apr 24, 2019 7:58 am

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 5 guests