I'm using Arch Linux Arm on Raspberry Pi 3 and I'm trying to build a git version of a software, without creating a package so this has nothing to do with packaging and/or `makepkg` and I get the error given in the title. I've had this problem with https://01.org/connman which uses autotools and a similar problem with https://github.com/transmission/transmission which can be built both using autotools and cmake (I chose cmake).
This is the error message from cmake:
$this->bbcode_second_pass_code('', '
Error running link command: Illegal instruction
')
And from libtool:
$this->bbcode_second_pass_code('', '
./libtool: line 1845: 22634 Illegal instruction (core dumped) ar cr gdbus/.libs/libgdbus-internal.a gdbus/.libs/mainloop.o gdbus/.libs/watch.o gdbus/.libs/object.o gdbus/.libs/client.o gdbus/.libs/polkit.o
')
This also happens when I try to compile something with makepkg so I suppose it's flags `CPPFLAGS` and `LDFLAGS` are not useful.
Any ideas why this is happening?
Thanks.