This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Eorror compiling GCC-4.8.0 for Solaris 2.9 and 2.10
- From: "Lincoln" <fslsf at excite dot com>
- To: gcc at gcc dot gnu dot org
- Cc:
- Date: Mon, 30 Sep 2019 11:43:24 -0400
- Subject: Eorror compiling GCC-4.8.0 for Solaris 2.9 and 2.10
Hi GNU.ORG,
I am getting the error below when I try to compile gcc-4.8.0. Can someone assist me with a possible solution:
"/tmp/gcc-4.8.0/libcpp/files.c", line 1268: Error: Cannot assign char* to int.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1371: Warning (Anachronism): Formal argument 2 of type extern "C" int(*)(void**,void*) in call to htab_traverse(htab*, extern "C" int(*)(void**,void*), void*) is being passed int(*)(void**,void*).
"/tmp/gcc-4.8.0/libcpp/files.c", line 1380: Warning (Anachronism): Formal argument 4 of type extern "C" int(*)(const void*,const void*) in call to std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).
"/tmp/gcc-4.8.0/libcpp/files.c", line 1386: Error: The function "__flsbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1530: Error: The function "__filbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1570: Error: The function "__filbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1584: Error: The function "__filbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1597: Error: The function "__filbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1677: Error: The function "__flsbuf" must have a prototype.
"/tmp/gcc-4.8.0/libcpp/files.c", line 1834: Warning (Anachronism): Formal argument 4 of type extern "C" int(*)(const void*,const void*) in call to std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const void*,const void*)) is being pa
ssed int(*)(const void*,const void*).
"/tmp/gcc-4.8.0/libcpp/files.c", line 1932: Warning (Anachronism): Formal argument 5 of type extern "C" int(*)(const void*,const void*) in call to std::bsearch(const void*, const void*, unsigned, unsigned, extern "C" int(*)(const void*,cons
t void*)) is being passed int(*)(const void*,const void*).
7 Error(s) and 11 Warning(s) detected.
make[3]: *** [Makefile:223: files.o] Error 7
make[3]: Leaving directory '/tmp/gcc-4.8.0/objdir/libcpp'
make[2]: *** [Makefile:9816: all-stage1-libcpp] Error 2
make[2]: Leaving directory '/tmp/gcc-4.8.0/objdir'
make[1]: *** [Makefile:20357: stage1-bubble] Error 2
make[1]: Leaving directory '/tmp/gcc-4.8.0/objdir'
make: *** [Makefile:889: all] Error 2
Thank you,
Lincoln.......
-----------------------------------------------------------
The wheel is spinning, but the hamster is asleep!
Yes! The Truth is Out There, Somewhere!