Question
I built the Linux kernel with the Advanced Toolchain
https://www.ibm.com/support/pages/advance-toolchain-linux-power
residing in the /opt directory
Compiling kernel modules fail:
cd "/lib/modules/"6.12.0-160000.28-lucy"/build" && make M=/tmp/open-cas-linux-25.12.2/modules modules
make[2]: Entering directory '/usr/src/linux-6.12.0-160000.28'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-13 (GCC) 15.1.1 20250502 (Advance-Toolchain 19.0-0) [066115a7a44a]
You are using: gcc-13 (SUSE Linux) 13.4.0
CC [M] /tmp/open-cas-linux-25.12.2/modules/cas_cache/classifier.o
In file included from /tmp/open-cas-linux-25.12.2/modules/cas_cache/cas_cache.h:13,
from /tmp/open-cas-linux-25.12.2/modules/cas_cache/classifier.c:7:
/tmp/open-cas-linux-25.12.2/modules/include/cas_ioctl_codes.h:182:26: error: ‘OCF_CORE_MAX’ undeclared here (not in a function); did you mean ‘OCF_ERR_MAX’?
182 | uint16_t core_id[OCF_CORE_MAX];
| ^~~~~~~~~~~~
| OCF_ERR_MAX
make[5]: *** [scripts/Makefile.build:229: /tmp/open-cas-linux-25.12.2/modules/cas_cache/classifier.o] Error 1
My kernel .config file includes this:
CONFIG_CC_VERSION_TEXT="gcc-13 (GCC) 15.1.1 20250502 (Advance-Toolchain 19.0-0) [066115a7a44a]"
In the open-cas-linux software files there are many references to gcc.
I tried to change entries in different files, no success....
How can I define the C compiler in the software? Running "./configure" does not allow me to change the compiler version, the variable "CC" gets ignored.
I checked with different open-cas versions, and the error seems related to the kernel version,
is it too new?
Motivation
The kernel runs faster with this compiler
Your Environment
- OpenCAS version: 25.12.2
- Operating System: openSUSE 16.0, ppc64le
- Kernel version: 6.12.0 (from rpm packages)
Question
I built the Linux kernel with the Advanced Toolchain
https://www.ibm.com/support/pages/advance-toolchain-linux-power
residing in the /opt directory
Compiling kernel modules fail:
My kernel .config file includes this:
CONFIG_CC_VERSION_TEXT="gcc-13 (GCC) 15.1.1 20250502 (Advance-Toolchain 19.0-0) [066115a7a44a]"
In the open-cas-linux software files there are many references to gcc.
I tried to change entries in different files, no success....
How can I define the C compiler in the software? Running "./configure" does not allow me to change the compiler version, the variable "CC" gets ignored.
I checked with different open-cas versions, and the error seems related to the kernel version,
is it too new?
Motivation
The kernel runs faster with this compiler
Your Environment