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]

gcc-4.0.2 suse9.3 installation problem


I'm trying to install gcc-4.0.2 on suse9.3. 

in the gcc-4.0.2 folder I

sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in

then I made a gcc4.0.2obj folder, I

../gcc-4.0.2/configure --prefix=/opt/gcc4 \
    --libexecdir=/opt/gcc4/lib --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-languages=c,c++,f95

and I tried make bootstrap

It ends with the following:

echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = {
\"c\", " >> tmp-gtyp.h
gf="cp fortran"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh
/home/maria/sup/gcc-4.0.2/gcc/../move-if-change
tmp-gtyp.h gtyp-gen.h
echo timestamp > s-gtyp-gen
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE
-I. -Ibuild -I/home/maria/sup/gcc-4.0.2/gcc
-I/home/maria/sup/gcc-4.0.2/gcc/build
-I/home/maria/sup/gcc-4.0.2/gcc/../include
-I/home/maria/sup/gcc-4.0.2/gcc/../libcpp/include -o
build/gengtype.o
/home/maria/sup/gcc-4.0.2/gcc/gengtype.c
/home/maria/sup/gcc-4.0.2/missing flex
-ogengtype-lex.c
/home/maria/sup/gcc-4.0.2/gcc/gengtype-lex.l
WARNING: `flex' is missing on your system. You should
only need it if
you modified a `.l' file. You may need the `Flex'
package
in order for those modifications to take effect. You
can get
`Flex' from any GNU archive site.
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wno-error -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild
-I/home/maria/sup/gcc-4.0.2/gcc
-I/home/maria/sup/gcc-4.0.2/gcc/build
-I/home/maria/sup/gcc-4.0.2/gcc/../include
-I/home/maria/sup/gcc-4.0.2/gcc/../libcpp/include -o
build/gengtype-lex.o gengtype-lex.c
gcc: gengtype-lex.c: No such file or directory
gcc: no input files
make[2]: *** [build/gengtype-lex.o] Error 1
make[2]: Leaving directory `/opt/gcc402obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/opt/gcc402obj/gcc'
make: *** [bootstrap] Error 2

What should I do?

************************
I also try to install gcc-4.0.2 in an other pc, with
suse9.1 where the previous worked.

While in /usr/local/bin, I

ln -s /opt/gcc4/bin/gfortran gfortran

I compiled a program and tried to execute it. I got

"error while loading shared libraries:
libgfortran.so.0: cannot open shared 
object file: No such file or directory"

I added the following in .profile

PATH=$PATH:/opt/gcc4/lib/
export PATH

I also tried 

ln -s /opt/gcc4/lib/libgfortran.so.0 libgfortran.so.0

in /usr/local/bin

Neither worked.

Any suggestions?

thanx


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


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