https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120513
--- Comment #10 from Greg Chandler <chandleg at wizardsworks dot org> --- Ok, I was wrong, it wasn't the defines.... /tmp/gcc-14.2.0/gcc.build.lnx/libiberty# cat 1.c #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define __EXTENSIONS__ 1 #define _ALL_SOURCE 1 #define _GNU_SOURCE 1 #define _POSIX_PTHREAD_SEMANTICS 1 #define _TANDEM_SOURCE 1 /* end confdefs.h. */ #include <sys/file.h> int main () { } /tmp/gcc-14.2.0/gcc.build.lnx/libiberty# alpha-linux-gnu-gcc 1.c -o test.cross.alpha-1c cc1: warning: '-fstack-protector' not supported for this target /tmp/gcc-14.2.0/gcc.build.lnx/libiberty# file test.cross.alpha-1c test.cross.alpha-1c: ELF 64-bit LSB pie executable, Alpha (unofficial), version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, with debug_info, not stripped So the lack of an actual main is the problem.... Is this a compiler/linker bug? I seem to remember being able to compile without a main in the past, and the configure script for libiberty is DEFINATELY not adding it... (I know that tree is old)