Hi Alpha-Osf-Managers,
I've been trying to compile gcc2.7.2 on a DEC Alpha server 1000 4/200 with DU 4.0,
but obtain error messages for the library file /lib/libc.a eg:
$make LANGUAGES=c
rm -f ld
ln collect2 ld > /dev/null 2>&1 || cp collect2 ld
./xgcc -B./ -dumpspecs > tmp-specs
mv tmp-specs specs
cc -DIN_GCC -g -I. -I. -I./config -o g++ ./cp/g++.c obstack.o ` case "cc" in "cc") echo "" ;; esac ` -lmld
./xgcc -B./ -DIN_GCC -g -I./include -DNO_MEM -DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
if [ -f libgcc2.ready ] ; then true; else touch libgcc2.ready; fi
./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire
collect2: ld returned 1 exit status
/lib/libc.a: could not read symbols: Malformed archive
*** Exit 1
Stop.
OR on other atttempts at compiling I get the following error messages:
-----------------------------------------------------------------------
/lib/libc.a(geteuid.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(strdup.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(basename.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(__ispriv.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(bsearch.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(__lc_load.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(getuid.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(__lc_dlopen.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(__lc_dlsym.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(ldr_load.o)(.pdata+0x4): relocation truncated to fit: SREL32 xdata
/lib/libc.a(ldr_load.o)(.pdata+0xc): relocation truncated to fit: SREL32 xdata
/lib/libc.a(ldr_load.o)(.pdata+0x14): relocation truncated to fit: SREL32 xdata
/lib/libc.a(ldr_atexit.o)(.lita+0x38): undefined reference to `_DYNAMIC_LINK'
/lib/libc.a(ldr_load.o)(.lita+0xa8): undefined reference to `_DYNAMIC_LINK'
*** Exit 1
I copied the stage2 compiled files from another department that has succesfully installed gcc.2.7.2
on a DEC Alpha with DU 4.0 and tried to install gcc. It still complains about libc.a:
make install CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O"
stage2/xgcc -Bstage2/ -DIN_GCC -g -O -o cccp cccp.o cexp.o version.o obstack.o ` case "stage2/xgcc -Bstage2/" in "cc") echo "" ;; esac ` -lmld
collect2: ld returned 1 exit status
/lib/libc.a: could not read symbols: Malformed archive
*** Exit 1
Stop.
Next I copied the their libc.a file and still obtained the above error message!
Could anyone provide a solution or pointers to the problem?
Thanks,
Tony.
__________________________________________________________________
| | |
| Tony East - Systems Engineer | Tel No: 0116 2551 551 Ex 8475 |
| DeMontfort University, | E-mail te_at_dmu.ac.uk |
| The Gateway, Leicester. | Web
http://www.cms.dmu.ac.uk/~te |
|_______________________________|__________________________________|
Received on Mon Oct 28 1996 - 15:13:05 NZDT