All of lore.kernel.org
 help / color / mirror / Atom feed
* stdarg.h inclusion problem (ticket #1343)
@ 2005-05-19  6:24 Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Fabrice Ollivier @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

I have stdarg.h :cif@kalaha ~% locate stdarg.h
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h
/usr/lib/gcc-lib/i386-linux/3.0.4/include/stdarg.h
/usr/lib/gcc-lib/i386-linux/3.2.3/include/stdarg.h
/usr/lib/gcc-lib/i386-linux/3.3.1/include/stdarg.h
(an updatedb was made just before)

cif@kalaha ~% gcc -print-search-dirs
install?s: /usr/lib/gcc-lib/i386-linux/3.3.1/
programmes:
=/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/
lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/:
/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/i386-linux/3.3.1/:
/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/
libraries:
=/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/
gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/i386-linux/3.3.1/:/usr/lib/
gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/:/usr/lib/gcc-lib/i386-linux/
3.3.1/../../../i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../:
/lib/i386-linux/3.3.1/:/lib/:/usr/lib/i386-linux/3.3.1/:/usr/lib/

Any Idea ?

-- 
Cif

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> I have stdarg.h :cif@kalaha ~% locate stdarg.h
> /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdarg.h
> /usr/lib/gcc-lib/i386-linux/3.2.3/include/stdarg.h
> /usr/lib/gcc-lib/i386-linux/3.3.1/include/stdarg.h
> (an updatedb was made just before)
> 
> cif@kalaha ~% gcc -print-search-dirs
> install?s: /usr/lib/gcc-lib/i386-linux/3.3.1/
> programmes:
> =/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1
> /:/usr/
> lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc/i
> 386-linux/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/b
> in/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i3
> 86-linux/bin/ libraries:
> =/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/3.3.1/:/u
> sr/lib/
> gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/i386-linux/3.3.1/
> :/usr/lib/
> gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/:/usr/lib/gcc-lib
> /i386-linux/
> 3.3.1/../../../i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/..
> /../../:/lib/i386-linux/3.3.1/:/lib/:/usr/lib/i386-linux/3.3.1/:/usr/
> lib/
> 
> Any Idea ?

Maybe one more locales problem. What's the output of "LC_ALL=C gcc
-print-search-dirs" ?

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (5 preceding siblings ...)
  2005-05-19  6:24 ` Fabrice Ollivier
@ 2005-05-19  6:24 ` Fabrice Ollivier
  2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
  8 siblings, 0 replies; 10+ messages in thread
From: Fabrice Ollivier @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Le dim 20/07/2003 ? 23:41, Jean Delvare a ?crit :
> Maybe one more locales problem. What's the output of "LC_ALL=C gcc
> -print-search-dirs" ?
Here it is :23:41 cif@kalaha ~% export LC_ALL=C
23:41 cif@kalaha ~% gcc -print-search-dirs
install: /usr/lib/gcc-lib/i386-linux/3.3.1/
programs:
=/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/
libraries:
=/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../:/lib/i386-linux/3.3.1/:/lib/:/usr/lib/i386-linux/3.3.1/:/usr/lib/


-- 
Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (7 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Jean Delvare
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> Le dim 20/07/2003 ? 23:41, Jean Delvare a ?crit :
> > Maybe one more locales problem. What's the output of "LC_ALL=C gcc
> > -print-search-dirs" ?
> Here it is :23:41 cif@kalaha ~% export LC_ALL=C
> 23:41 cif@kalaha ~% gcc -print-search-dirs
> install: /usr/lib/gcc-lib/i386-linux/3.3.1/
> programs:
> =/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1
> /:/usr/lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/li
> b/gcc/i386-linux/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-
> linux/bin/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../.
> ./../i386-linux/bin/ libraries:
> =/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/3.3.1/:/u
> sr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/i386-linux
> /3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/
> :/usr/lib/gcc-lib/i386-linux/3.3.1/../../../i386-linux/3.3.1/:/usr/li
> b/gcc-lib/i386-linux/3.3.1/../../../:/lib/i386-linux/3.3.1/:/lib/:/us
> r/lib/i386-linux/3.3.1/:/usr/lib/

Seems to work...

OK, I better tell you the story from the beginning. The include path is
constructed in the Makefile at line 226:
kbuild_2_4_nostdinc := -nostdinc $(shell LC_ALL=C $(CC)
-print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

Obviously, this doesnt work for you, which is strange because the
command is OK when you run it by yourself. We had problems with locales
on this line, that's why we added "LC_ALL=C", and it was supposed to
work. I can't say if the problem you have is locale-related or not.
Could you please investigate a bit for us? For example, try to print the
value or kbuild_2_4_nostdinc, or create another variable with this line:
  kb24bis := $(shell LC_ALL=C $(CC) -print-search-dirs)
and print it too. Maybe we'll see what's wrong.

You could also try unsetting your locales by hand right before running
make.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
@ 2005-05-19  6:24 ` Fabrice Ollivier
  2005-05-19  6:24 ` Jean Delvare
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Fabrice Ollivier @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> Obviously, this doesnt work for you, which is strange because the
> command is OK when you run it by yourself. We had problems with locales
> on this line, that's why we added "LC_ALL=C", and it was supposed to
> work. I can't say if the problem you have is locale-related or not.
> Could you please investigate a bit for us? For example, try to print the
> value or kbuild_2_4_nostdinc, or create another variable with this line:
>   kb24bis := $(shell LC_ALL=C $(CC) -print-search-dirs)
> and print it too. Maybe we'll see what's wrong.
> 
> You could also try unsetting your locales by hand right before running
> make.

1 = kbuild_2_4_nostdinc and 2 = kb24bis

1=-nostdinc

2=install: /usr/lib/gcc-lib/i386-linux/3.3.1/ programs:
=/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/ libraries: =/usr/lib/gcc-lib/i386-linux/3.3.1/:/usr/lib/gcc/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/lib/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../i386-linux/3.3.1/:/usr/lib/gcc-lib/i386-linux/3.3.1/../../../:/lib/i386-linux/3.3.1/:/lib/:/usr/lib/i386-linux/3.3.1/:/usr/lib/

But it did'nt work, always the same error, even if I seet my locales by
hand just before.

-- 
Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (2 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> But it did'nt work, always the same error, even if I seet my locales
> by hand just before.

Do you have sed installed on your system? Which  version is it?

What does the following command return is run from a shell?
LC_ALL=C gcc -print-search-dirs | sed -ne 's/install: \(.*\)/-I
\1include/gp'

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
@ 2005-05-19  6:24 ` Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Fabrice Ollivier @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> Do you have sed installed on your system? Which  version is it?
cif@kalaha ~% sed -V
GNU sed version 4.0.7

> What does the following command return is run from a shell?
> LC_ALL=C gcc -print-search-dirs | sed -ne 's/install: \(.*\)/-I
> \1include/gp'
cif@kalaha ~% LC_ALL=C gcc -print-search-dirs | sed -ne 's/install:
\(.*\)/-I\1include/gp'
-I/usr/lib/gcc-lib/i386-linux/3.3.1/include

My shell is zsh, but I tried with bash, and no changes :)

-- 
Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (3 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Fabrice Ollivier
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> > Do you have sed installed on your system? Which  version is it?
> cif@kalaha ~% sed -V
> GNU sed version 4.0.7

Should be OK.

> > What does the following command return is run from a shell?
> > LC_ALL=C gcc -print-search-dirs | sed -ne 's/install: \(.*\)/-I
> > \1include/gp'
> cif@kalaha ~% LC_ALL=C gcc -print-search-dirs | sed -ne 's/install:
> \(.*\)/-I\1include/gp'
> -I/usr/lib/gcc-lib/i386-linux/3.3.1/include

I'm puzzled. The command works from your shell, but doesn't seem to work
from inside the Makefile.

Can you force make to use bash as its shell (uncomment the SHELL= line
at the beginning of the Makefile)? Does it work?

Or maybe its is caused by a too recent gcc version (no idea why though),
could you try an older one? You seem to have many versions of gcc on
your system.

I admit I'm puzzled.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (4 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Fabrice Ollivier
  2005-05-19  6:24 ` Fabrice Ollivier
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Fabrice Ollivier @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

> Can you force make to use bash as its shell (uncomment the SHELL= line
> at the beginning of the Makefile)? Does it work?
Hehe, no :)

> Or maybe its is caused by a too recent gcc version (no idea why though),
> could you try an older one? You seem to have many versions of gcc on
> your system.

It try with gcc 3.3 , 3.2 ,3.0 and 2.95 : no result.

Are you sure the bug come from that ? I had the same problem with i2c 
CVS and it have been fix (but I don't know how and i can't remember 
when, maybe one week or two, but maybe more).

-- 
Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* stdarg.h inclusion problem (ticket #1343)
  2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
                   ` (6 preceding siblings ...)
  2005-05-19  6:24 ` Fabrice Ollivier
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


For information: Fabrice and I met on IRC and tried to solve the
problem. We miraculously succeeded, but we are unable to understand how.
Thus the ticket #1343 is closed, but the mystery remains.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-05-19  6:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19  6:24 stdarg.h inclusion problem (ticket #1343) Fabrice Ollivier
2005-05-19  6:24 ` Fabrice Ollivier
2005-05-19  6:24 ` Fabrice Ollivier
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Fabrice Ollivier
2005-05-19  6:24 ` Fabrice Ollivier
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare

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.