Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36623 - i2c 2.7.0, 2.8ces 2.4.23-r1 (2.4.23-aa1).0 does not build with aa-sources
Summary: i2c 2.7.0, 2.8ces 2.4.23-r1 (2.4.23-aa1).0 does not build with aa-sources
Status: VERIFIED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 00:09 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2006-03-21 04:49 UTC (History)
1 user (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 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-12-28 00:09:54 UTC
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>
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-12-28 04:57:24 UTC
Can you check that this still happens in 2.8.2?
Comment 2 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-12-28 10:02:32 UTC
sys-apps/i2c-2.8.1, sys-apps/i2c-2.8.2 do not work either. same error.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-01-04 12:18:28 UTC
Can you try this with aa3 and see if you still get this?
Comment 4 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-02-28 17:32:24 UTC
tim, there is no aa3. aa2 just came out: Bug 43241.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-02-29 04:37:37 UTC
Hmm, I was looking at the _pre3 instead of a aa3. I've added aa2 in now, does that solve the issue?
Comment 6 Jason Cox (RETIRED) gentoo-dev 2004-04-13 22:53:28 UTC
Hae you found a combination that works? i2c and lm_sensors are very fickle with their API and change it very often.
Comment 7 Jason Cox (RETIRED) gentoo-dev 2004-04-16 18:19:06 UTC
Few months old. Closing. If the problem still exists, please reopen.
Comment 8 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-04-18 00:45:27 UTC
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
Comment 9 Kerin Millar 2006-03-21 04:49:35 UTC
This is an old bug and aa-sources has long since been removed from portage. Closing fully.