This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/26709] New: Compile of gcc 3.3.6 failed
- From: "Sven dot Rebhan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 09:30:45 -0000
- Subject: [Bug other/26709] New: Compile of gcc 3.3.6 failed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I am unable to compile gcc 3.3.6 downloaded from mirror ftp.gwdg.de.
./configure && make -j2 triggers the following errors:
f/com.c: At top level:
f/com.c:11080: error: conflicting types for ?ffecom_gfrt_basictype?
f/com.h:236: error: previous declaration of ?ffecom_gfrt_basictype? was here
This seems to be an trivial typo, I fixed it with:
--- gcc-3.3.6/gcc/f/com.h 2003-03-22 16:24:51.000000000 +0100
+++ gcc-3.3.6-fix/gcc/f/com.h 2006-03-15 18:23:29.000000000 +0100
@@ -233,7 +233,7 @@
void ffecom_finish_progunit (void);
tree ffecom_get_invented_identifier (const char *pattern, ...)
ATTRIBUTE_PRINTF_1;
-ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
+ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt ix);
ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix);
void ffecom_init_0 (void);
void ffecom_init_2 (void);
The second error is in the java directory:
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -DHAVE_CONFIG_H -I. -Ijava -I. -I./java -I./config
-I./../include java/gjavah.c -o java/gjavah.o
java/gjavah.c:49: error: static declaration of ?flag_jni? follows
non-staticdeclaration
java/java-tree.h:170: error: previous declaration of ?flag_jni? was here
Here I don't know if the fix below is correct. At least it fixes the compile
problem... ;-)
--- gcc-3.3.6/gcc/java/gjavah.c 2003-03-28 23:18:48.000000000 +0100
+++ gcc-3.3.6-fix/gcc/java/gjavah.c 2006-03-15 18:29:42.000000000 +0100
@@ -46,7 +46,7 @@
static int found_error = 0;
/* Nonzero if we're generating JNI output. */
-static int flag_jni = 0;
+int flag_jni = 0;
/* When nonzero, warn when source file is newer than matching class
file. */
I hope this helps!? Please be patient with me, because this is my first bug
report and fix so far.
--
Summary: Compile of gcc 3.3.6 failed
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Sven dot Rebhan at gmail dot com
GCC host triplet: x86, SuSE Linux 10.0, gcc 4.0.2 (SuSE version)
GCC target triplet: i586-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26709