nvidia-drivers doesn't cross compile. It uses the native compiler instead of the cross compiler to compile the kernel module. The bug is fixed by changing the following line in the ebuild: SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" to SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" CC=$(get-KERNEL_CC) Reproducible: Always Steps to Reproduce: 1. Attempt to cross compile nvidia-drivers from amd64 to x86. I was building it as part of Chromium OS. Actual Results: It uses the native compiler for building the kernel module. Expected Results: Should use the cross compiler.
Sorry, there was a typo, the correct line is: SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC) CC=$(get-KERNEL_CC)"
Thank you. Sorry it took so long to get resolved. Fixed in 195.36.31