All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: compilation error
Date: Thu, 19 May 2005 06:24:31 +0000	[thread overview]
Message-ID: <20031223224953.35de4526.khali@linux-fr.org> (raw)
In-Reply-To: <20031223135304.7b789b49.marco@iftbqp.com>

[MDS, read below please.]

> I checked for the includes dir.
> ls -l /usr/local/include 
> total 0
> lrwxrwxrwx    1 root     staff          28 2003-05-27 17:12 linux ->
> /usr/src/linux/include/linux

This is wrong AFAIK. Your should not have such a link. If you have an
"asm" link here too, you shouldn't either. You must have two sets of
linux+asm includes. One in /usr/include, that matches the ones your libc
was build with. And one in /usr/src/linux/include (or whatever) with the
ones for your running kernel. The first ones should *not* be symlinks
pointing to the second ones. They must all be read directories.

I know that old systems do it that way but that's bad and it is known
that i2c and lm_sensors have difficulties building in these conditions.

Still...

> I try to make clean i2c, lm_sensors, the kernel tree etc. But I still
> have the error :
> 
> ..
> gcc -M -MG  -D__SMP__ -DMODVERSIONS -include
> /lib/modules/2.4.23-ben1/build/include/linux/modversions.h
> -D__KERNEL__-DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I.
> -Ikernel/include-I/usr/local/include 
> -I/lib/modules/2.4.23-ben1/build/include -nostdinc-I
> /usr/lib/gcc-lib/powerpc-linux/3.3.3/include  -Wall -O2
> kernel/busses/i2c-nforce2.c | \
>        	sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-nforce2.d
> kernel/busses/i2c-nforce2.o: Makefile '`dirname
> kernel/busses/i2c-nforce2.d`/Module.mk' @' >
> kernel/busses/i2c-nforce2.d cat kernel/include/sensors.h.template >
> kernel/include/sensors.h awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL
> END/' kernel/chips/*.c >> kernel/include/sensors.h
> echo '#endif' >> kernel/include/sensors.h
> gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -Wall -O2 
> prog/sensors/chips.c | \
>        	sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd
> prog/sensors/chips.ro: Makefile '`dirname
> prog/sensors/chips.rd`/Module.mk' @' > prog/sensors/chips.rd
> make: *** No rule to make target `sys/io.h', needed by
> `prog/dump/isadump.rd'.  Stop.
> 
> Could someone help me. Or give me some pointers to any solution for
> managing the fan on g4 1ghz (the mirror one;))

isadump doesn't compile on non-i386 targets, and isn't useful here
either. Edit prog/dump/Module.mk and remove isadump from
PROGDUMPTARGETS, PROGDUMPSOURCES and PROGDUMPBININSTALL.

We should either fix isadump or remove it from the targets on non-i386
systems, but I don't know how to do that. MDS?

Thanks for reporting, let us know how it goes.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

  reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 compilation error marco
2005-05-19  6:24 ` Jean Delvare [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-13  1:25 Compilation error Vijayakumar Badiger
2016-09-13  1:53 ` Rudolf Streif
2016-09-13  3:32   ` Fred Ollinger
2013-09-13 16:06 compilation error Lluís Pàmies i Juárez
2013-09-13 18:23 ` Roald van Loon
2013-09-13 19:04   ` Lluís Pàmies i Juárez
2013-09-13 19:50     ` Roald van Loon
2013-09-13 20:13       ` Roald van Loon
2013-09-13 20:51         ` Lluís Pàmies i Juárez
2010-06-25  6:15 Compilation error Lars Bjørndal
2010-02-12 10:13 compilation error Niamathullah sharief
2010-02-12 12:20 ` Gary Thomas
2010-02-12 17:44   ` Koen Kooi
2007-03-07  9:03 Compilation Error Shahar Frank
2007-03-06 22:54 John Markh
     [not found] ` <1173221670.15050.3.camel-WzFbyMo6myHT/s/qtBRgsA@public.gmane.org>
2007-03-06 23:10   ` Damir Shayhutdinov
2007-01-16 10:29 Two 2.6.20-rc5-rt2 issues Rui Nuno Capela
2007-01-22 10:29 ` compilation error Alessio Igor Bogani
2007-01-22 10:54   ` Ingo Molnar
2005-12-23 11:53 Compilation Error Prabhat_Singh
2005-10-11 19:51 Jeff Stevens
2005-07-25  7:16 Compilation error Susheel Raj
2004-10-31 21:00 compilation error Deepak Manohar
2004-11-01  8:13 ` Keir Fraser
2002-10-17 10:48 Compilation error Silakhdar Krikeb
2002-08-14 14:30 compilation error Suparerk Supasith
2002-08-14 14:54 ` Michail Bachmann
2002-08-14 14:56 ` Alan James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031223224953.35de4526.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.