while trying to 'emerge lm-sensors', i2c is needed. but upon emerging i2c-2.7.0 with aa-sources-2.4.23-aa1: kernel/i2c-philips-par.c:163: initializer element is not constant kernel/i2c-philips-par.c:163: (near initialization for `bit_lp_data.timeout') kernel/i2c-philips-par.c:172: initializer element is not constant kernel/i2c-philips-par.c:172: (near initialization for `bit_lp_data2.timeout') make: *** [kernel/i2c-philips-par.o] Error 1 make: *** Waiting for unfinished jobs.... kernel/i2c-elv.c:155: initializer element is not constant kernel/i2c-elv.c:155: (near initialization for `bit_elv_data.timeout') make: *** [kernel/i2c-elv.o] Error 1 /usr/sbin/ebuild.sh: line 21: [: too many arguments and then later: gcc -I/lib/modules/2.4.23-aa1/build/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE \ -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include \ /lib/modules/2.4.23-aa1/build/include/linux/modversions.h -c kernel/i2c-elv.c -o kernel/i2c-elv.o kernel/i2c-philips-par.c:163: initializer element is not constant kernel/i2c-philips-par.c:163: (near initialization for `bit_lp_data.timeout') kernel/i2c-philips-par.c:172: initializer element is not constant kernel/i2c-philips-par.c:172: (near initialization for `bit_lp_data2.timeout') make: *** [kernel/i2c-philips-par.o] Error 1 make: *** Waiting for unfinished jobs.... kernel/i2c-elv.c:155: initializer element is not constant kernel/i2c-elv.c:155: (near initialization for `bit_elv_data.timeout') make: *** [kernel/i2c-elv.o] Error 1 !!! ERROR: sys-apps/i2c-2.7.0 failed. !!! Function src_install, Line 35, Exitcode 2 !!! (no error message) looks like i2c-elv.c and i2c-philips-par.c are the culprits. try to manually compile: i2c-2.7.0 # gcc -I/lib/modules/2.4.23-aa1/build/include -O2 -DLM_SENSORS -D__KERNEL__ \ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include \ /lib/modules/2.4.23-aa1/build/include/linux/modversions.h -c kernel/i2c-elv.c -o kernel/i2c-elv.o kernel/i2c-elv.c:155: initializer element is not constant kernel/i2c-elv.c:155: (near initialization for `bit_elv_data.timeout') i2c-2.7.0 # gcc -I/lib/modules/2.4.23-aa1/build/include -O2 -DLM_SENSORS -D__KERNEL__ \ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include \ /lib/modules/2.4.23-aa1/build/include/linux/modversions.h -c kernel/i2c-philips-par.c \ -o kernel/i2c-philips-par.o kernel/i2c-philips-par.c:163: initializer element is not constant kernel/i2c-philips-par.c:163: (near initialization for `bit_lp_data.timeout') kernel/i2c-philips-par.c:172: initializer element is not constant kernel/i2c-philips-par.c:172: (near initialization for `bit_lp_data2.timeout') the same error occurs with lm-sensors-2.8.1 and fyi: i2c-2.7.0 # ls -l /usr/src/linux lrwxrwxrwx 1 root root 16 Dec 10 16:19 /usr/src/linux -> linux-2.4.23-aa1/ could this be a known problem in the aa kernel? see <http://lkml.org/lkml/2003/10/5/157>
Can you check that this still happens in 2.8.2?
sys-apps/i2c-2.8.1, sys-apps/i2c-2.8.2 do not work either. same error.
Can you try this with aa3 and see if you still get this?
tim, there is no aa3. aa2 just came out: Bug 43241.
Hmm, I was looking at the _pre3 instead of a aa3. I've added aa2 in now, does that solve the issue?
Hae you found a combination that works? i2c and lm_sensors are very fickle with their API and change it very often.
Few months old. Closing. If the problem still exists, please reopen.
i have not found a version of i2c which works with aa-sources. but the error that the i2c ebuild prints: * I2C requires the source of a compatible kernel * version installed in /usr/src/linux * (or the environmental variable $LINUX) * and kernel I2C *disabled* or *enabled as a module* upon compile failure is sufficient. thanks
This is an old bug and aa-sources has long since been removed from portage. Closing fully.