Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* GNU GCC 2.8.1 and DEC ld 3.11
@ 1999-08-03  4:00 Ga�l Trinquart
  1999-08-03  4:00 ` Wolfram Klaus
  1999-08-04  4:00 ` Petr Jiricek
  0 siblings, 2 replies; 3+ messages in thread
From: Ga�l Trinquart @ 1999-08-03  4:00 UTC (permalink / raw)


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 <stdio.h>

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:





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNU GCC 2.8.1 and DEC ld 3.11
  1999-08-03  4:00 GNU GCC 2.8.1 and DEC ld 3.11 Ga�l Trinquart
@ 1999-08-03  4:00 ` Wolfram Klaus
  1999-08-04  4:00 ` Petr Jiricek
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Klaus @ 1999-08-03  4:00 UTC (permalink / raw)


"Ga�l Trinquart" <gtrinquart@elan.fr> writes:

>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 <stdio.h>

>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

Sure, there's no such function. Try fprintf() or printf() without the
stdout argument. All in all it's just a typo.

Bye,
   Wolfram


--
                                       """
                                      (o o)
+---------------------------------oOO--(_)--OOo-------------------------------+
|  Wolfram Klaus     (klaus@physik.fu-berlin.de)        FU Berlin, FB Physik  |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNU GCC 2.8.1 and DEC ld 3.11
  1999-08-03  4:00 GNU GCC 2.8.1 and DEC ld 3.11 Ga�l Trinquart
  1999-08-03  4:00 ` Wolfram Klaus
@ 1999-08-04  4:00 ` Petr Jiricek
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Jiricek @ 1999-08-04  4:00 UTC (permalink / raw)


Gaël Trinquart wrote:
> 
> 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 <stdio.h>
> 
> int main ( int argc , char* argv [] )
> {
>         fprint ( stdout , "Hello World" ) ;
>         return (0 ) ;
> }

not sure, but I assume that the result will be better after replacing
'fprint' with 'fprintf' :-)


-- 

Petr Jiricek        <jirpe@gdt.cz>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-08-04  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-03  4:00 GNU GCC 2.8.1 and DEC ld 3.11 Ga�l Trinquart
1999-08-03  4:00 ` Wolfram Klaus
1999-08-04  4:00 ` Petr Jiricek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox