Skip to contentSkip to conversation

I2c (cvs upload) compile problem.

DISCUSSION Rob Blomquist 3 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I uploaded the freshest i2c and lm_sensors packages by cvs tonight in the hopes that my ASUS A7N8X board with its Nivida chips would be detected. I am running a fresh build of Mandrake 9.1, with the 2.4.21-0.13mdk kernel running.

I get a compile error in "make install" right at the begininning:

[root@timmy2 i2c]# make install
if [ -n " kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o" ] ; then \
if [ -d "/lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/kernel" ] ; then \
mkdir -p /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/kernel/drivers/i2c ; \
install -o root -g root -m 644 kernel/i2c-core.o kernel/i2c-dev.o
kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'/kernel/drivers/i2c ; \
for i in kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o
kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o ; do \
rm -f /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2

-d'"'`/misc/`basename $i` ; \
    done \

else \
mkdir -p /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/misc ; \
install -o root -g root -m 644 kernel/i2c-core.o kernel/i2c-dev.o
kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'/misc ; \
fi \
fi
install: `/lib/modules/2.4.21-0.13mdksmp' is a directory
install: `2.4.21-0.13mdkenterprise' is a directory
install: `2.4.21-0.13mdk' is a directory
make: *** [install-kernel] Error 1

Can you guys help me out with this one? Yes, 2.4.21-0.13mdksmp is a directory as is 2.4.21-0.13mdk, 2.4.21-0.13mdkenterprise sounds fair, but not on my system.

Rob

Signature · 1 line
Kirkland, Washington
#1 lore raw
Quoted 5 lines

I uploaded the freshest i2c and lm_sensors packages by cvs tonight in the hopes that my ASUS A7N8X board with its Nivida chips would be detected. I am running a fresh build of Mandrake 9.1, with the 2.4.21-0.13mdk kernel running.

You mean you *downloaded* the packages?

Quoted 1 line

I get a compile error in "make install" right at the begininning:

That's bad. Let's fix it.

Quoted 6 lines

[root@timmy2 i2c]# make install
(...)
install: `/lib/modules/2.4.21-0.13mdksmp' is a directory
install: `2.4.21-0.13mdkenterprise' is a directory
install: `2.4.21-0.13mdk' is a directory
make: *** [install-kernel] Error 1

Can you show me the output of the following commands:

uname -r

grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'

It should help me understand what happened.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Rob Blomquist
Quoted 6 lines · you
Quoted 4 lines

I uploaded the freshest i2c and lm_sensors packages by cvs tonight in the hopes that my ASUS A7N8X board with its Nivida chips would be detected. I am running a fresh build of Mandrake 9.1, with the 2.4.21-0.13mdk kernel running.

You mean you *downloaded* the packages?

Yes, I dowloaded them by cvs last night.

Quoted 11 lines
Quoted 1 line

I get a compile error in "make install" right at the begininning:

That's bad. Let's fix it.

Quoted 6 lines

[root@timmy2 i2c]# make install
(...)
install: `/lib/modules/2.4.21-0.13mdksmp' is a directory
install: `2.4.21-0.13mdkenterprise' is a directory
install: `2.4.21-0.13mdk' is a directory
make: *** [install-kernel] Error 1

Quoted 4 lines

Can you show me the output of the following commands:

uname -r

$ uname -r
2.4.21-0.13mdk
Quoted 2 lines

grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'

[root@timmy2 robbo]# grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"' 2.4.21-0.13mdksmp
2.4.21-0.13mdkenterprise
2.4.21-0.13mdk
2.4.21-0.13mdksecure

I am quite mystified by all of these, as I am only using the kernel 2.4.21-0.13mdk, and I downloaded the src.rpm for it, hopeing that it would work without a recompile of the same kernel. Why the f*ck would Mandrake put all these libraries on a machine that only ran one of the kernels? Argh. As you can see:

[root@timmy2 robbo]# cd /boot
[root@timmy2 boot]# ls

boot.0300                  kernel.h@                System.map@
config@                    kernel.h-2.4.21-0.13mdk  System.map-2.4.21-0.13mdk
config-2.4.21-0.13mdk      map                      us.klt
grub/                      message@                 vmlinuz@
initrd-2.4.21-0.13mdk.img  message-graphic          vmlinuz-2.4.21-0.13mdk
initrd.img@                message-text

Thanks a bunch.

Rob

Signature · 1 line
Kirkland, Washington
#3 lore raw
In reply to Rob Blomquist

You probably have a linux/version.h in the kernel tree that is setup to do modversions for multiple versions of the kernel based on /boot/versions.h. Red Hat does the same thing.

The code in the Makefile that greps version.h gets confused when it finds multiple 'UTS_RELEASE' definitions.

I would recommend that you compile with:

     make MODPREF=/lib/modules/$(uname -r) install

If you want to completely replace the distro lm_sensors files, you should also set "PREFIX=/usr" on the command line. Otherwise, be sure that you set LD_LIBRARY_PATH before you run the new sensors command so that it picks up the library from /usr/local/lib not /usr/lib/

    make MODPREF=/lib/modules/$(uname -r) PREFIX=/usr install

:v)

Quoted 55 lines · Rob Blomquist

I uploaded the freshest i2c and lm_sensors packages by cvs tonight in the hopes that my ASUS A7N8X board with its Nivida chips would be detected. I am running a fresh build of Mandrake 9.1, with the 2.4.21-0.13mdk kernel running.

I get a compile error in "make install" right at the begininning:

[root@timmy2 i2c]# make install
if [ -n " kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o" ] ; then \
if [ -d "/lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/kernel" ] ; then \
mkdir -p /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/kernel/drivers/i2c ; \
install -o root -g root -m 644 kernel/i2c-core.o kernel/i2c-dev.o
kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'/kernel/drivers/i2c ; \
for i in kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o
kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o ; do \
rm -f /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2

-d'"'`/misc/`basename $i` ; \
    done \

else \
mkdir -p /lib/modules/`grep UTS_RELEASE
/lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'`/misc ; \
install -o root -g root -m 644 kernel/i2c-core.o kernel/i2c-dev.o
kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/grep UTS_RELEASE /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 -d'"'/misc ; \
fi \
fi
install: `/lib/modules/2.4.21-0.13mdksmp' is a directory
install: `2.4.21-0.13mdkenterprise' is a directory
install: `2.4.21-0.13mdk' is a directory
make: *** [install-kernel] Error 1

Can you guys help me out with this one? Yes, 2.4.21-0.13mdksmp is a directory as is 2.4.21-0.13mdk, 2.4.21-0.13mdkenterprise sounds fair, but not on my system.

Rob