public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29233]  New: Wrong installation for standard headers
@ 2006-09-26  7:53 kethgen at inf dot ethz dot ch
  2006-09-26 14:00 ` [Bug bootstrap/29233] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kethgen at inf dot ethz dot ch @ 2006-09-26  7:53 UTC (permalink / raw)
  To: gcc-bugs

I tried to post the bug to gcc-bugs@gcc.gnu.org so I have to by click and play
here:

I use the following procedure to install gcc on RHEL4-Machines:

tar xvjf gcc-4.1.1.tar.bz2
mkdir gcc-4.1.1-build
cd gcc-4.1.1-build
../gcc-4.1.1/configure --prefix=/usr/pack/gcc-4.1.1-ke
--exec-prefix=/usr/pack/gcc-4.1.1-ke/ix86-rhel4
make
make install

Unfortunate the standard header files like stdio gets not installed to
/usr/pack/gcc-4.1.1-ke/include but under
/usr/pack/gcc-4.1.1-ke/ix86-rhel4/lib/gcc/i686-pc-linux-gnu/4.1.1/include/
and so it cannot be found.


-- 
           Summary: Wrong installation for standard headers
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kethgen at inf dot ethz dot ch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
@ 2006-09-26 14:00 ` pinskia at gcc dot gnu dot org
  2006-09-26 14:03 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-26 14:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
          Component|c                           |bootstrap


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
  2006-09-26 14:00 ` [Bug bootstrap/29233] " pinskia at gcc dot gnu dot org
@ 2006-09-26 14:03 ` pinskia at gcc dot gnu dot org
  2006-09-26 15:17 ` klaus dot ethgen at inf dot ethz dot ch
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-26 14:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-09-26 14:02 -------
Well stdio.h that GCC installs is a fixed up include file so I don't know what
is wrong here at all.  Can you give a full example of a program that goes wrong
and the error message?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
  2006-09-26 14:00 ` [Bug bootstrap/29233] " pinskia at gcc dot gnu dot org
  2006-09-26 14:03 ` pinskia at gcc dot gnu dot org
@ 2006-09-26 15:17 ` klaus dot ethgen at inf dot ethz dot ch
  2006-09-26 15:22 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: klaus dot ethgen at inf dot ethz dot ch @ 2006-09-26 15:17 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]



------- Comment #2 from kethgen at inf dot ethz dot ch  2006-09-26 15:17 -------
Subject: Re:  Wrong installation for standard headers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Di den 26. Sep 2006 um 16:02 schrieb pinskia at gcc dot gnu dot org:
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2006-09-26 14:02 -------
> Well stdio.h that GCC installs is a fixed up include file so I don't know what
> is wrong here at all.  Can you give a full example of a program that goes wrong
> and the error message?

#include <stdio.h>

main()
{
   printf("Test\n");
}

> gcc -o test test.c
test.c:1:19: Fehler: stdio.h: Datei oder Verzeichnis nicht gefunden
test.c: In Funktion »main«:
test.c:5: Warnung: Unverträgliche implizite Deklaration der eingebauten
Funktion »printf«

Gruß
   Klaus
- -- 
IT Support Group D-INFK - Klaus Ethgen     http://www.isg.inf.ethz.ch/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <klaus.ethgen@inf.ethz.ch>
Fingerprint:         D7 67 71 C4 99 A6 D4 FE   EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQEVAwUBRRlEVp+OKpjRpO3lAQINfwgAhHeJlKxGeCzl7fXEPxKe+FBRR4/rCVvN
BoL+9RcFgAp6qL4FbwnEEuNmWgfBJD4Aim+n7kySLeZerycW+pefYuttqVAukhSm
NeJ7agXKUQI2IUAvi4G2Z8GZm8a3VO+WsJiy8pBnvCbqWPQF+kt7KRAO6P0gtZQv
1vGSao4kOlsRlpk4L/qMbB4S4nrb0jb1o/QZxIF3OW7j/qxVwNnT2LwKlOj5uqpS
WgKCdtwbWshPNC/6aAnK3X2CArNLlJxWtr0n16NwDDorQgidFcw84V0aSDQR5Axq
PC1j5Qgah6bbsKOFu+XdYOjWUDpH42tDUacU3TYxujJEZZ6LLgMZwg==
=L2D6
-----END PGP SIGNATURE-----


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
                   ` (2 preceding siblings ...)
  2006-09-26 15:17 ` klaus dot ethgen at inf dot ethz dot ch
@ 2006-09-26 15:22 ` pinskia at gcc dot gnu dot org
  2006-09-26 15:33 ` klaus dot ethgen at inf dot ethz dot ch
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-26 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-09-26 15:21 -------
Can you add -v when invoking gcc and give that output because stdio.h should
have already been in /usr/include because that is the standard place for it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
                   ` (3 preceding siblings ...)
  2006-09-26 15:22 ` pinskia at gcc dot gnu dot org
@ 2006-09-26 15:33 ` klaus dot ethgen at inf dot ethz dot ch
  2006-09-26 15:40 ` pinskia at gcc dot gnu dot org
  2006-09-26 15:58 ` klaus dot ethgen at inf dot ethz dot ch
  6 siblings, 0 replies; 8+ messages in thread
From: klaus dot ethgen at inf dot ethz dot ch @ 2006-09-26 15:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2649 bytes --]



------- Comment #4 from kethgen at inf dot ethz dot ch  2006-09-26 15:33 -------
Subject: Re:  Wrong installation for standard headers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Am Di den 26. Sep 2006 um 17:21 schrieb pinskia at gcc dot gnu dot org:
> ------- Comment #3 from pinskia at gcc dot gnu dot org  2006-09-26 15:21 -------
> Can you add -v when invoking gcc and give that output because stdio.h should
> have already been in /usr/include because that is the standard place for it.

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/usr/pack/gcc-4.1.1-ke
--exec-prefix=/usr/pack/gcc-4.1.1-ke/ix86-rhel4
Thread model: posix
gcc version 4.1.1
 /usr/pack/gcc-4.1.1-ke/ix86-rhel4/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1
-quiet -v test.c -quiet -dumpbase test.c -mtune=pentiumpro -auxbase test
-version -o /tmp/cc0zi5zw.s
ignoring nonexistent directory
"/usr/pack/gcc-4.1.1-ke/ix86-rhel4/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/pack/gcc-4.1.1-ke/include
 /usr/pack/gcc-4.1.1-ke/ix86-rhel4/lib/gcc/i686-pc-linux-gnu/4.1.1/include
 /usr/include
End of search list.
GNU C version 4.1.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.6 20060404 (Red Hat 3.4.6-3).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129103
Compiler executable checksum: 64220c6e62d2baca30492f8a8121c3a3
test.c:1:19: error: stdio.h: No such file or directory
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function
'printf'

The compile machine has it on this place but on the clients where gcc is
used there is no gcc from redhat installed. gcc should work out of the
box. This was working in past but not with this application.

Gruß
   Klaus
- -- 
IT Support Group D-INFK - Klaus Ethgen     http://www.isg.inf.ethz.ch/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <klaus.ethgen@inf.ethz.ch>
Fingerprint:         D7 67 71 C4 99 A6 D4 FE   EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQEVAwUBRRlIIZ+OKpjRpO3lAQLNTwf+JcFJWa5B7gKxSy11fJJn7gynXeoofcAz
yqL55PLefi9F5pHFzJorKpKWSM0cjLw5mV95cBUXlGxcvEICO91SICZ5mzlpBdKc
5Jjz0oDnqV3lPl6hk57b7VR/zzYobWtgU4we5rvtUU5FH2mXG0XehBCl+BQOSncB
MnCmHmZy3r99YkXWBGQ0cleMkhpS5oGJZ3Bg0lHu1PqV2rIbxHIdqxnqS9x+ccAd
3i3IofX1q24KCl9IjgPQN1SFbWZsxShZHckWOac0+Qidayg+6aWL4v/ckAOpqWW0
+jsubXQd252R/UGCamSSCZG0BdMazwhhpuNYexJW6avs0sPKb4V6Mg==
=iBf3
-----END PGP SIGNATURE-----


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
                   ` (4 preceding siblings ...)
  2006-09-26 15:33 ` klaus dot ethgen at inf dot ethz dot ch
@ 2006-09-26 15:40 ` pinskia at gcc dot gnu dot org
  2006-09-26 15:58 ` klaus dot ethgen at inf dot ethz dot ch
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-26 15:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-26 15:40 -------
 /usr/local/include
 /usr/pack/gcc-4.1.1-ke/include
 /usr/pack/gcc-4.1.1-ke/ix86-rhel4/lib/gcc/i686-pc-linux-gnu/4.1.1/include
 /usr/include

Oh, so you compiled the GCC and then copied it over to a machine that does not
have the standard glibc header files.  Well this is not a bug, you need
glibc-dev also to be able to compile.  GCC is just the compiler (well that is
only partly true) and does not contain the standard C Library files.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

* [Bug bootstrap/29233] Wrong installation for standard headers
  2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
                   ` (5 preceding siblings ...)
  2006-09-26 15:40 ` pinskia at gcc dot gnu dot org
@ 2006-09-26 15:58 ` klaus dot ethgen at inf dot ethz dot ch
  6 siblings, 0 replies; 8+ messages in thread
From: klaus dot ethgen at inf dot ethz dot ch @ 2006-09-26 15:58 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]



------- Comment #6 from kethgen at inf dot ethz dot ch  2006-09-26 15:58 -------
Subject: Re:  Wrong installation for standard headers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Di den 26. Sep 2006 um 17:40 schrieb pinskia at gcc dot gnu dot org:
> Oh, so you compiled the GCC and then copied it over to a machine that does not
> have the standard glibc header files.  Well this is not a bug, you need

Yes.

> glibc-dev also to be able to compile.  GCC is just the compiler (well that is
> only partly true) and does not contain the standard C Library files.

Oh, in older versions I might remember that the standard headers was
included in gcc.

I just tried it out and it seems to be fixed this way. Not nice but
fixed.

Gruß
   Klaus
- -- 
IT Support Group D-INFK - Klaus Ethgen     http://www.isg.inf.ethz.ch/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <klaus.ethgen@inf.ethz.ch>
Fingerprint:         D7 67 71 C4 99 A6 D4 FE   EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQEVAwUBRRlN+Z+OKpjRpO3lAQItogf+IfYa+RtaNpzedI+Vfx6FJB4v5o7yQvi8
4a0AozyRJtY9RbHCDMVcDDuBO+4G2YZmtte0mIt9+wzEG7GYRmMLgbYlCo0zwhUB
4yWZHxiClN4PC2vcfWXFzQquWZDr2RTDMHl4HSuf7avzefWm9Ri1n37kYuc4vxEm
tXl/5U6WP1Fn4IdJ/NIMhGZDXlqgrpEc8aq1cbZ3kDvNpHmv/LmNv95SPWe/pWFE
FvPp6iAldTqYWxoHl2XvdD+DaTe9m7SllAHqMtOtazo3vqpEjTeD2E7sFpzhFTiP
RTq4KG5L9cYoVVJxwYf9RWq1WLaCdIqvSwUIgg3D/xydAXQDvXNsBg==
=TG4U
-----END PGP SIGNATURE-----


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29233


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

end of thread, other threads:[~2006-09-26 15:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26  7:53 [Bug c/29233] New: Wrong installation for standard headers kethgen at inf dot ethz dot ch
2006-09-26 14:00 ` [Bug bootstrap/29233] " pinskia at gcc dot gnu dot org
2006-09-26 14:03 ` pinskia at gcc dot gnu dot org
2006-09-26 15:17 ` klaus dot ethgen at inf dot ethz dot ch
2006-09-26 15:22 ` pinskia at gcc dot gnu dot org
2006-09-26 15:33 ` klaus dot ethgen at inf dot ethz dot ch
2006-09-26 15:40 ` pinskia at gcc dot gnu dot org
2006-09-26 15:58 ` klaus dot ethgen at inf dot ethz dot ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).