public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/15226] New: bootstrap failure in collect2.c: parse error before "FILHDR"
@ 2004-04-30 12:38 dtucker at zip dot com dot au
2004-04-30 12:40 ` [Bug bootstrap/15226] " dtucker at zip dot com dot au
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: dtucker at zip dot com dot au @ 2004-04-30 12:38 UTC (permalink / raw)
To: gcc-bugs
Bootstrapping on AIX 4.2.1 (yeah, I know it's old) fails because of some missing
declarations (FILHDR and SYMENT, they're in filehdr.h syms.h respectively). I
got it to build by adding those includes to gcc/collect2.c (I'll attach the
trivial patch, it's probably not the right thing but it works for me).
$ /home/dtucker/gcc-3.4.0/configure --enable-languages=c --disable-nls
--with-included-gettext --enable-threads=aix && make bootstrap
[snip build]
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I.
-I/home/dtucker/gcc-3.4.0/gcc -I/home/dtucker/gcc-3.4.0/gcc/.
-I/home/dtucker/gcc-3.4.0/gcc/../include \
-DTARGET_MACHINE=\"powerpc-ibm-aix4.2.1.0\" \
-c /home/dtucker/gcc-3.4.0/gcc/collect2.c -o collect2.o
In file included from /home/dtucker/gcc-3.4.0/gcc/collect2.c:102:
/usr/include/ldfcn.h:50: error: parse error before "FILHDR"
/usr/include/ldfcn.h:52: error: parse error before '}' token
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2645: error: parse error before "SYMENT"
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2645: warning: function declaration isn't
a prototype
/home/dtucker/gcc-3.4.0/gcc/collect2.c: In function `scan_prog_file':
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: `U802WRMAGIC' undeclared
(first use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: (Each undeclared identifier
is reported only once
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: for each function it appears
in.)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: `U802ROMAGIC' undeclared
(first use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: `U802TOCMAGIC' undeclared
(first use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2684: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2687: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2687: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2689: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2694: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2694: error: `F_SHROBJ' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2699: error: `SYMENT' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2699: error: parse error before "symbol"
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2701: warning: implicit declaration of
function `ldtbread'
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2701: error: `symbol' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `C_EXT' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `N_UNDEF' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `N_TMASK' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `DT_NON' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `N_BTSHFT' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2705: error: `DT_FCN' undeclared (first
use in this function)
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2799: error: dereferencing pointer to
incomplete type
/home/dtucker/gcc-3.4.0/gcc/collect2.c:2810: warning: implicit declaration of
function `ldclose'
--
Summary: bootstrap failure in collect2.c: parse error before
"FILHDR"
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dtucker at zip dot com dot au
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-ibm-aix4.2.1.0
GCC host triplet: powerpc-ibm-aix4.2.1.0
GCC target triplet: powerpc-ibm-aix4.2.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/15226] bootstrap failure in collect2.c: parse error before "FILHDR"
2004-04-30 12:38 [Bug bootstrap/15226] New: bootstrap failure in collect2.c: parse error before "FILHDR" dtucker at zip dot com dot au
@ 2004-04-30 12:40 ` dtucker at zip dot com dot au
2004-04-30 12:41 ` [Bug bootstrap/15226] [AIX 4.2.1] " pinskia at gcc dot gnu dot org
2004-05-15 16:17 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: dtucker at zip dot com dot au @ 2004-04-30 12:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dtucker at zip dot com dot au 2004-04-30 12:23 -------
Created an attachment (id=6196)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6196&action=view)
Add includes for filehdr.h and syms.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/15226] [AIX 4.2.1] bootstrap failure in collect2.c: parse error before "FILHDR"
2004-04-30 12:38 [Bug bootstrap/15226] New: bootstrap failure in collect2.c: parse error before "FILHDR" dtucker at zip dot com dot au
2004-04-30 12:40 ` [Bug bootstrap/15226] " dtucker at zip dot com dot au
@ 2004-04-30 12:41 ` pinskia at gcc dot gnu dot org
2004-05-15 16:17 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 12:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Summary|bootstrap failure in |[AIX 4.2.1] bootstrap
|collect2.c: parse error |failure in collect2.c: parse
|before "FILHDR" |error before "FILHDR"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/15226] [AIX 4.2.1] bootstrap failure in collect2.c: parse error before "FILHDR"
2004-04-30 12:38 [Bug bootstrap/15226] New: bootstrap failure in collect2.c: parse error before "FILHDR" dtucker at zip dot com dot au
2004-04-30 12:40 ` [Bug bootstrap/15226] " dtucker at zip dot com dot au
2004-04-30 12:41 ` [Bug bootstrap/15226] [AIX 4.2.1] " pinskia at gcc dot gnu dot org
@ 2004-05-15 16:17 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-05-15 16:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2004-05-14 21:20 -------
collect2.c includes a.out.h for OBJECT_FORMAT_COFF. I no longer have access to
AIX 4.2.1, but current AIX /usr/include/a.out.h includes xcoff.h, which includes
filehdr.h and syms.h.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/15226] [AIX 4.2.1] bootstrap failure in collect2.c: parse error before "FILHDR"
[not found] <bug-15226-1471@http.gcc.gnu.org/bugzilla/>
@ 2006-02-14 11:05 ` multix at gmail dot com
0 siblings, 0 replies; 5+ messages in thread
From: multix at gmail dot com @ 2006-02-14 11:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from multix at gmail dot com 2006-02-14 11:05 -------
this is still broken in both gcc 3.4.5 and gcc 4.0.2 on aix 4.2.1
(well, it is marked as wontfix, thus it was to be expected)
--
multix at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |multix at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-14 11:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 12:38 [Bug bootstrap/15226] New: bootstrap failure in collect2.c: parse error before "FILHDR" dtucker at zip dot com dot au
2004-04-30 12:40 ` [Bug bootstrap/15226] " dtucker at zip dot com dot au
2004-04-30 12:41 ` [Bug bootstrap/15226] [AIX 4.2.1] " pinskia at gcc dot gnu dot org
2004-05-15 16:17 ` dje at gcc dot gnu dot org
[not found] <bug-15226-1471@http.gcc.gnu.org/bugzilla/>
2006-02-14 11:05 ` multix at gmail dot com
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).