m***@gmail.com
2017-11-26 19:08:07 UTC
Hey There
I'm trying to install binutils to my embedded linux from scratch for armel processors (ARMv5 with soft floating point).
these are the configure parameters I'm giving
../binutils-2.27/configure --host=arm-linux-musleabi --target=arm-linux-musleabi --build=x86_64-linux-gnu --disable-nls --disable-multilib --prefix=/home/michele/toolchain-arm
However during the build I get this error regarding libiberty:
make[1]: ingresso nella directory "/home/michele/sources/build-binutils"
make[2]: ingresso nella directory "/home/michele/sources/build-binutils/libiberty"
if [ x"" != x ]; then \
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o pic/strsignal.o; \
else true; fi
if [ x"" != x ]; then \
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o noasan/strsignal.o; \
else true; fi
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o strsignal.o
../../binutils-2.27/libiberty/strsignal.c:554:1: error: conflicting types for 'psignal'
psignal (int signo, char *message)
^~~~~~~
In file included from ../../binutils-2.27/libiberty/strsignal.c:22:0:
/opt/cross/arm-linux-musleabi/include/signal.h:219:6: note: previous declaration of 'psignal' was here
void psignal(int, const char *);
^~~~~~~
Makefile:1443: set di istruzioni per l'obiettivo "strsignal.o" non riuscito
make[2]: *** [strsignal.o] Errore 1
make[2]: uscita dalla directory "/home/michele/sources/build-binutils/libiberty"
Makefile:8049: set di istruzioni per l'obiettivo "all-libiberty" non riuscito
make[1]: *** [all-libiberty] Errore 2
make[1]: uscita dalla directory "/home/michele/sources/build-binutils"
Makefile:850: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
How do I fix this problem? Can this problem be circumvented in some way?
I'm trying to install binutils to my embedded linux from scratch for armel processors (ARMv5 with soft floating point).
these are the configure parameters I'm giving
../binutils-2.27/configure --host=arm-linux-musleabi --target=arm-linux-musleabi --build=x86_64-linux-gnu --disable-nls --disable-multilib --prefix=/home/michele/toolchain-arm
However during the build I get this error regarding libiberty:
make[1]: ingresso nella directory "/home/michele/sources/build-binutils"
make[2]: ingresso nella directory "/home/michele/sources/build-binutils/libiberty"
if [ x"" != x ]; then \
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o pic/strsignal.o; \
else true; fi
if [ x"" != x ]; then \
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o noasan/strsignal.o; \
else true; fi
arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.27/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE ../../binutils-2.27/libiberty/strsignal.c -o strsignal.o
../../binutils-2.27/libiberty/strsignal.c:554:1: error: conflicting types for 'psignal'
psignal (int signo, char *message)
^~~~~~~
In file included from ../../binutils-2.27/libiberty/strsignal.c:22:0:
/opt/cross/arm-linux-musleabi/include/signal.h:219:6: note: previous declaration of 'psignal' was here
void psignal(int, const char *);
^~~~~~~
Makefile:1443: set di istruzioni per l'obiettivo "strsignal.o" non riuscito
make[2]: *** [strsignal.o] Errore 1
make[2]: uscita dalla directory "/home/michele/sources/build-binutils/libiberty"
Makefile:8049: set di istruzioni per l'obiettivo "all-libiberty" non riuscito
make[1]: *** [all-libiberty] Errore 2
make[1]: uscita dalla directory "/home/michele/sources/build-binutils"
Makefile:850: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
How do I fix this problem? Can this problem be circumvented in some way?
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.