Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317049 - x11-drivers/nvidia-drivers: fails to cross compile
Summary: x11-drivers/nvidia-drivers: fails to cross compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 19:52 UTC by Ambroz Bizjak
Modified: 2010-07-13 05:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ambroz Bizjak 2010-04-24 19:52:18 UTC
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.
Comment 1 Ambroz Bizjak 2010-04-24 23:20:08 UTC
Sorry, there was a typo, the correct line is:
SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC) CC=$(get-KERNEL_CC)"
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2010-07-13 05:24:30 UTC
Thank you. Sorry it took so long to get resolved. Fixed in 195.36.31