This is the mail archive of the gcc@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]

How can i g77 persuade to include __eprintf in cross compilation?


Hi,
i am sorry, but i have trouble building a Linux hosted,
mingw32 targetted gcc-2.95 with using this:

binutils:
./configure --target=i686-pc-mingw32 --prefix=/sw/local_l/kahlert/Cross
make
make install

gcc-2.95:
mkdir obj
cd obj
../egcs-19990718/configure --target=i686-pc-mingw32 \
                           --prefix=/sw/local_l/kahlert/Cross \
			   --enable-languages=c++,f77 \
			   --with-headers=/sw/local_l/kahlert/WINNT/include \
			   --with-libs=/sw/local_l/kahlert/WINNT/lib \
			   --without-newlib
make cross install
cd ..
mkdir obj2
cd obj2
setenv PATH /sw/local_l/kahlert/Cross/bin:$PATH
../egcs-19990718/configure --host=i686-pc-mingw32 \
                           --target=i686-pc-mingw32 \
                           --build=i686-pc-linux-gnu \
			   --prefix=/sw/local_l/kahlert/Cross \
			   --enable-languages=c++,f77 \
			   --without-newlib
make cross install

The problem is with g77:
Mumit Khan suggested to build libg2c.a by a canadian cross,
which i hope it's the procedure, i try. First i used the above script without
the newlib stuff, but i got the same undefined references to __eeprintf as below.
Since it is mentioned in the configure web page that --with-newlib leaves out this 
function i thought it would be smart to use --without-newlib, o.k. it was worth a try.

I am a bit clueless what to try next.
Can any kind soul suggest anything?

This is the error output:
rm -f f771.exe
i686-pc-mingw32-gcc  -DIN_GCC    -g -O2  -W -Wall  -o ../f771.exe bad.o bit.o bld.o 
    com.o data.o equiv.o expr.o global.o implic.o info.o intrin.o lab.o lex.o malloc.o
    name.o parse.o proj.o src.o st.o sta.o stb.o stc.o std.o ste.o storag.o stp.o 
    str.o sts.o stt.o stu.o stv.o stw.o symbol.o target.o top.o type.o version.o
    where.o `cat ../stamp-objlist` `if [ xobstack.o != x ]; then echo ../obstack.o; 
        else true; fi` `case "i686-pc-mingw32-gcc" in "cc") if [ x != x ]; then echo .  ./;
	else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi` -ladvapi32
bad.o: In function `ffebad_here':
/home/kahlert/LOCAL/egcs-19990718/gcc/f/bad.c:261: undefined reference to `__eprintf'
bad.o: In function `ffebad_string':
/home/kahlert/LOCAL/egcs-19990718/gcc/f/bad.c:338: undefined reference to `__eprintf'
bit.o: In function `ffebit_count':
/home/kahlert/LOCAL/egcs-19990718/gcc/f/bit.c:81: undefined reference to `__eprintf'
bit.o: In function `ffebit_set':
/home/kahlert/LOCAL/egcs-19990718/gcc/f/bit.c:150: undefined reference to `__eprintf'
bit.o: In function `ffebit_test':
/home/kahlert/LOCAL/egcs-19990718/gcc/f/bit.c:183: undefined reference to `__eprintf'
bld.o:/home/kahlert/LOCAL/egcs-19990718/gcc/f/bld.c:239: more undefined references 
to `__eprintf' follow
make[2]: *** [../f771.exe] Error 1
make[2]: Leaving directory `/sw/local_l/kahlert/obj2/gcc/f'
make[1]: *** [f771.exe] Error 2
make[1]: Leaving directory `/sw/local_l/kahlert/obj2/gcc'
make: *** [install-gcc] Error 2                                             

Thanks in advance,
Martin.


PS: Perhaps it would be helpful to adept the cross-gcc FAQ to gcc-2.95.

-- 
esa$ gcc -Wall -o ariane5 ariane5.c
ariane5.c: 666: warning: long float implicitly truncated to unsigned type
esa$ ariane5


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