Raymond Toy pushed to branch arm-dev at cmucl / cmucl Commits: de1ded89 by Raymond Toy at 2026-03-27T17:23:56-07:00 Set C compiler for arm. Allow using different compiler in elf.h For arm/linux, we're building on a Raspberry Pi 5 and a 64-bit raspbian OS. To build and run cmucl we needed the 32-bit compiler and libraries. Hence set the compiler in Config.arm_linux appropriately. Also, let Config specify the compiler to use in elf.h. (Untested on arm, of course.) Otherwise it defaults to "gcc", basically. - - - - - 2 changed files: - src/lisp/Config.arm_linux - src/lisp/elf.h Changes: ===================================== src/lisp/Config.arm_linux ===================================== @@ -105,6 +105,11 @@ OPENLIBM_SRCS = \ $(OPENLIBM_DIR)/s_tanhf.c endif +# We're currently building cmucl on a Raspberry Pi5 running a 64-bit +# raspbian. We had to download the arm32 compiler and libraries to be +# able to build and run cmucl. +CC = arm-linux-gnueabihf-gcc + ifeq ($(filter 2% 3%, $(shell $(CC) -dumpversion)),) CPP_INCLUDE_OPTIONS := -iquote . -iquote $(PATH1) ifndef FEATURE_CORE_MATH @@ -130,7 +135,7 @@ ASSEM_SRC = arm-assem.S undefineds-assem.S OS_SRC += Linux-os.c os-common.c elf.c OS_LIBS = -ldl -lutil OS_LINK_FLAGS = -marm -rdynamic -Wl,-Map,foo -Wl,-z,noexecstack -CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEFINE_C_COMPILER=$(CC) EXEC_FINAL_OBJ = exec-final.o ===================================== src/lisp/elf.h ===================================== @@ -34,7 +34,7 @@ */ #if defined(__SUNPRO_C) #define C_COMPILER "cc" -#else +#elif !defined(C_COMPILER) #define C_COMPILER "gcc" #endif View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/de1ded89e4bb8a5bc910f1e0... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/de1ded89e4bb8a5bc910f1e0... You're receiving this email because of your account on gitlab.common-lisp.net. Manage all notifications: https://gitlab.common-lisp.net/-/profile/notifications | Help: https://gitlab.common-lisp.net/help