I'm currently trying to build aarch64 cross compilers on a Dell Ubuntu machine. I'm building from the official release tar balls for the respective branches. I've configured the trees out of source using the following commands ../configure --disable-multilib --build=x86_64-linux-gnu --host=x86_64-linux-gnu -target=aarch64-linux --prefix=/opt/utils/gcc-5.4-aarch64 --program-suffix=-5.4 ../configure --disable-multilib --build=x86_64-linux-gnu --host=x86_64-linux-gnu -target=aarch64-linux --prefix=/opt/utils/gcc-7.2-aarch64 --program-suffix=-7.2 I did use contrib/download_prerequisites to pull the required libraries prior to starting. Currently while building I run in to a problem building the target version of libgcc It looks like a incorrect flag is being passed to xgcc, but I wasn't sure how to resolve it. configure:3464: /opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/xgcc -B/opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/ -B/opt/utils/gcc-7.2-aarch64/aarch64-linu x/bin/ -B/opt/utils/gcc-7.2-aarch64/aarch64-linux/lib/ -isystem /opt/utils/gcc-7.2-aarch64/aarch64-linux/include -isystem /opt/utils/gcc-7.2-aarch64/aarch64-linux/sys-include -o conftest -g -O2 conftest .c >&5 107 /opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/as: 106: exec: -EL: not found 108 configure:3467: $? = 1 109 configure:3655: checking for suffix of object files 110 configure:3677: /opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/xgcc -B/opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/ -B/opt/utils/gcc-7.2-aarch64/aarch64-linu x/bin/ -B/opt/utils/gcc-7.2-aarch64/aarch64-linux/lib/ -isystem /opt/utils/gcc-7.2-aarch64/aarch64-linux/include -isystem /opt/utils/gcc-7.2-aarch64/aarch64-linux/sys-include -c -g -O2 conftest.c >&5 111 /opt/sed-stash/biogears/external/archive/gcc-5.4.0/build-aarch64/./gcc/as: 106: exec: -EL: not found 112 configure:3681: $? = 1 113 configure: failed program was: 114 | /* confdefs.h */ 115 | #define PACKAGE_NAME "GNU C Runtime Library" 116 | #define PACKAGE_TARNAME "libgcc" 117 | #define PACKAGE_VERSION "1.0" 118 | #define PACKAGE_STRING "GNU C Runtime Library 1.0" 119 | #define PACKAGE_BUGREPORT "" 120 | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" 121 | /* end confdefs.h. */ 122 | 123 | int 124 | main () 125 | { 126 | 127 | ; 128 | return 0; 129 | } 130 configure:3695: error: in `/opt/sed-stash/biogears/ external/archive/gcc-5.4.0/build-aarch64/aarch64-linux/libgcc': 131 configure:3698: error: cannot compute suffix of object files: cannot compile 132 See `config.log' for more details. -- Memento Mori