This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building gcc3.1 on linux



I tried to install native gcc3.1 on my linux box with both gcc2.95.3 and gcc3.0.1
(the one that comes with SuSE 7.3)

I did:

./configure --prefix="/opt/gcc/gcc-3.1" --enable-languages=c,c++ --disable-threads


Here is a piece from gcc/config.log that will cause a make error later:

 configure:4554: checking whether fprintf_unlocked is declared
 configure:4573: gcc -c -g -c -DLINUX -I. -I./../include  conftest.c 1>&5
 configure: In function `main':
 configure:4568: `fprintf_unlocked' undeclared (first use in this function)
 configure:4568: (Each undeclared identifier is reported only once
 configure:4568: for each function it appears in.)
 configure: failed program was:
 #line 4559 "configure"
 #include "confdefs.h"
 #undef HAVE_DECL_FPRINTF_UNLOCKED
 #define HAVE_DECL_FPRINTF_UNLOCKED 1

 #include "ansidecl.h"
 #include "system.h"

 int main() {
 #ifndef fprintf_unlocked
 char *(*pfn) = (char *(*)) fprintf_unlocked ;
 #endif
 ; return 0; }
 configure:4554: checking whether strstr is declared


and a 'make bootstrap-lean' gives always ==>

/home/porschberg/gcc-3.1/gcc/./read-rtl.c:762: undefined reference to `fprintf_unlocked'
bitmap.o:/home/porschberg/gcc-3.1/gcc/bitmap.c:734: more undefined references to `fprintf_unlocked' follow
collect2: ld returned 1 exit status
make[2]: *** [genflags] Error 1
make[2]: Leaving directory `/home/porschberg/gcc-3.1/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/porschberg/gcc-3.1/gcc'
make: *** [bootstrap-lean] Error 2

Any help?

What is the best choice to build gcc3.1, gcc2.95.3 or gcc3.0.1 ?

-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]