[Q] Trouble with gcc and gas

From: Dieter Meinert <dieter_at_semley.ctd.ornl.gov>
Date: Tue, 03 Mar 1998 21:46:51 +0100

-----BEGIN PGP SIGNED MESSAGE-----


Hello World,
I'm trying to compile gcc (2.7.2.2, 2.7.2.3) on a DEC Alpha
running DU4.0c in order to later use gas with some assembler
programs.

Following problem, when building stage1:
configuring> ./configure --prefix=/vol/local
This appears to be a alpha-dec-osf4.0 system.
Using `./config/alpha/alpha.c' to output insns.
Using `./config/alpha/alpha.md' as machine description file.
Using `./config/alpha/osf2.h' as target machine macro file.
Using `./config/alpha/xm-alpha.h' as host machine macro file.
Merged alpha/x-alpha.
Merged c++ fragment(s).
Created `./Makefile'.
Merged alpha/x-alpha.
Created `cp/Makefile'.
Links are now set up to build a native compiler for alpha-dec-osf4.0.
making> make LANGUAGES=c
...skipping until error appears...
if [ -f libgcc2.ready ] ; then \
        true; \
else \
        touch libgcc2.ready; \
fi
./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire
inst emulated pid=31003 <ld> va=0x14000f088 pc=0x120046e08 inst=0x282b0000
collect2: ld returned 1 exit status
/lib/libc.a(ldr_atexit.o)(.lita+0x38): undefined reference to `_DYNAMIC_LINK'
/lib/libc.a(find_rtfunc.o)(.lita+0x90): undefined reference to `_gpinfo'
/lib/libc.a(find_rtfunc.o)(.lita+0xa8): undefined reference to `_fpdata_size'
/lib/libc.a(find_rtfunc.o)(.lita+0xb8): undefined reference to `_DYNAMIC_LINK'
/lib/libc.a(ldr_load.o)(.lita+0xa8): undefined reference to `_DYNAMIC_LINK'
make: *** [enquire] Error 1
making>

Looks like the problem is with the /lib/libc.a, but where are
these functions/arrays defined ?

BTW, what does the "inst emulated pid=31003 <ld> va=0x14000f088
pc=0x120046e08 inst=0x282b0000" line mean, which appears with
most loading/linking routines on some of our machines but not on
others ? (This does NOT affect the negative result of the
compilation, though.) Also the flags -D_OSF_SOURCE, -D__GNUC__
and -D_POSIX_SOURCE which I added some times, one or the other,
to the Makefile don't change the result.

P.S. Does anyone experience problems with the bourne shell the
way that it does not find local directories (e.g ./dir is found,
dir is not...)? Looks like a problem with my personal
environment, since it works OK as root.
 
Tschüß,
                                                Dieter
 
  _____________________________*__________________________________
 / * dieter.meinert_at_aip.de \
 \ Dieter Meinert (- ** http://www.obs.aip.de/~dieter/ \
  \__________________A______*__*___________________________________/
   (public pgp key from http://www.obs.aip.de/~dieter/.Adresse.html)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Encoded using PGP 2.6.3i

iQCVAwUBNPxr+/YksnFoaQ6JAQF/4wQApNwhvl6hxvp0NwKQAfa1Uui76tlLg+u0
NwgCv6njkjqWX3Xr3ERr3cR4cSaH6koiFjbuSaX36S9HF6Kx9VxRJqewoSGoA2ol
3g28sQsBeiKs8OoPTRG36vP1SajGowh8yUZ+CiWv6rIYKQ+cZmT/MKs3quAGsHSL
yvW7ZCiTrM8=
=TAe0
-----END PGP SIGNATURE-----
Received on Tue Mar 03 1998 - 21:47:50 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT