From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,549776f8fc51c1c,start X-Google-Attributes: gidfee84,public From: "Ga�l Trinquart" Subject: GNU GCC 2.8.1 and DEC ld 3.11 Date: 1999/08/03 Message-ID: <7o65u2$586$1@jaydee.iway.fr>#1/1 X-Deja-AN: 508271798 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@fr.uu.net X-Trace: jaydee.iway.fr 933665538 5382 194.98.105.81 (3 Aug 1999 07:32:18 GMT) Organization: UUNet NNTP-Posting-Date: 3 Aug 1999 07:32:18 GMT Newsgroups: comp.unix.osf.osf1 I have rebuilt GCC 2.8.1 binaries on DEC/OSF1 v2.0 and the compiler works well (it actually produce object file). Unfortunatly, it does not interface correctly with the DEC standart linker 'ld' (undefined references). Here is what I've done... Anybody has hints ? $ cat helloworld.c #include int main ( int argc , char* argv [] ) { fprint ( stdout , "Hello World" ) ; return (0 ) ; } $ echo " ";date;uname -a;pwd;echo " ";ls -la;echo " " Mon Aug 2 11:51:22 GMT+0100 1999 OSF1 decalpha.elan.fr V2.0 240 alpha /mnt/sun250/home1/perso/gael/tmp total 3 drwxrwxrwx 2 gael st 512 Aug 2 10:49 . drwxr-xr-x 8 gael st 512 Jul 22 17:51 .. -rw-rw-r-- 1 gael st 113 Jul 29 15:40 helloworld.c $ gcc helloworld.c collect2: ld returned 1 exit status /usr/bin/ld: Unresolved: fprint $ gcc -c helloworld.c $ echo " ";date;uname -a;pwd;echo " ";ls -la;echo " " Mon Aug 2 11:53:18 GMT+0100 1999 OSF1 decalpha.elan.fr V2.0 240 alpha /mnt/sun250/home1/perso/gael/tmp total 5 drwxrwxrwx 2 gael st 512 Aug 2 10:51 . drwxr-xr-x 8 gael st 512 Jul 22 17:51 .. -rw-rw-r-- 1 gael st 113 Jul 29 15:40 helloworld.c -rw-r--r-- 1 gael st 1768 Aug 2 10:51 helloworld.o $ ld -v -non_shared -L/usr/lib -lc helloworld.o ld: Pass 1 Trying to open file /usr/lib/libc.a Opened file /usr/lib/libc.a Opened file helloworld.o helloworld.o: ld: Error: Undefined: _iob fprint ld: Pass 2 helloworld.o: About GCC: $ gcc -v Reading specs from /usr/local/lib/gcc-lib/alpha-dec-osf2.0/2.8.1/specs gcc version 2.8.1 $ more /usr/local/lib/gcc-lib/alpha-dec-osf2.0/2.8.1/specs *asm: %{!mgas:-g} -nocpp %{pg} -O0 *asm_final: %{!mgas: %{!mno-mips-tfile: mips-tfile %{v*: -v} %{K: -I %b.o~} %{!K: %{save-temps: -I %b.o~}} %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} %{.s:%i} %{!.s:%g.s}}} *cpp: %{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}} {.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-D LANGUAGE_ASSEMBLY}} %{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplu s} %{.cxx: -D__LANGUAGE_C_P LUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplu s} %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} %{mieee:-D_IEEE_FP} %{mieee-with-inexact:-D_IEEE_FP -D_IEEE _FP_INEXACT} *cc1: *cc1plus: *endfile: *link: -G 8 %{O*:-O3} %{!O*:-O1} %{static:-non_shared} %{!static:%{shared:-shared} %{!shared:-call_shared}} %{pg} %{taso} %{rpath *} *lib: %{p:-lprof1} %{pg:-lprof1} %{a:-lprof2} -lc *libgcc: -lgcc *startfile: %{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}} *switches_need_spaces: *signed_char: %{funsigned-char:-D__CHAR_UNSIGNED__} *predefines: -Dunix -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE _BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Ama chine(alpha) *cross_compile: 0 *version: 2.8.1 *multilib: . ; *multilib_defaults: