From: wiebusch@ifh.de
Subject: alpha/dec unix 4.0: Linking/ld f77 with gcc on dec unix 4
Date: 1998/08/11 [thread overview]
Message-ID: <6qp7i5$n6f$1@nnrp1.dejanews.com> (raw)
Dear reader
I am developer of a C-library, and try to give mixed language support
for Fortran on multiple plattforms
I was browsing digital web pages for suport in a specific problem, but
was unable to find help.
Please give look at the following problem:
On DEC-UNIX-4 (OSF1 spice2.physics.wisc.edu V4.0 564 alpha)
I experince a strange linking problem, which I do not have on
DEC-UNIX V.3.2 or on any other unix system: HPUX, LINUX, Irix, Sun.
This problem appears on every DEC-UNIX-V.4.0 site.
The library is usually compiled with gcc, the fortran code
is compiled with f77. I link using f77. The
name of the library is librdmc.a
The output is:
Compilation:
> f77 -v -static -G 0 -g -fpe -O0 -extend_source -g -c rdmc_exam4.f > -o
rdmc_exam4.o
> /usr/lib/cmplrs/fort/decfort -noautomatic -G 0 -g -fpe -O0 >
> -extend_source -g -switch fe_platinum -o rdmc_exam4.o rdmc_exam4.f
Linking:
f77 -v -static -G 0 -g -fpe -O0 -extend_source -g -L. rdmc_exam4.o
librdmc.a -lm -lc -o rdmc_exam4
/usr/bin/cc -v -G 0 -g -O0 -g -L. -o rdmc_exam4
/usr/lib/cmplrs/fort/for_main.o rdmc_exam4.o librdmc.a -lm -lc -lUfor
-lfor -lFutil -lm_4sqrt -lm -lots
/usr/lib/cmplrs/cc/ld -o rdmc_exam4 -L. -g2 -O0 -call_shared
/usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/fort/for_main.o rdmc_exam4.o
librdmc.a -lm -lc -lUfor -lfor -lFutil -lm_4sqrt -lm -lots -lc
ld:
Object file format error in: librdmc.a(rdmc_mcopen.o):
local_is_complete: iaux(971) > iauxMax(889) for obj
librdmc.a(rdmc_mcopen.o)
/usr/lib/cmplrs/cc/ld:
0.00u 0.01s 0:00 50% 0+5k 1+0io 0pf+0w 5stk+656mem
fort: Severe: Failed while trying to link.
gmake[1]: *** [rdmc_exam4] Error 1
iauxMax seems to be a maximum size for a symbol table.
If I use gcc instead of cc, everything is fine.
How can I tell f77 to use gcc instead of cc for linking? or How can I
increase
iauxMax? Is there another solution?
Thank you for help,
Sincerily
Christopher Wiebusch
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
reply other threads:[~1998-08-11 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox