* Link problems
@ 1997-01-21 22:51 Brian Webb
0 siblings, 0 replies; 6+ messages in thread
From: Brian Webb @ 1997-01-21 22:51 UTC (permalink / raw)
I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
one of my programs on it, but I'm getting many link errors. The errors
that I'm getting are as follows:
g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
truncated to fit: LITERAL __CTOR_END__
/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
e_exp.c(.text+0xe4): relocation truncated to fit: LITERAL ln2HI
e_exp.c(.text+0xec): relocation truncated to fit: LITERAL ln2LO
e_exp.c(.text+0x120): relocation truncated to fit: LITERAL $C35
e_exp.c(.text+0x128): relocation truncated to fit: LITERAL halF
e_exp.c(.text+0x154): relocation truncated to fit: LITERAL ln2HI
e_exp.c(.text+0x160): relocation truncated to fit: LITERAL ln2LO
This goes on for quite some time with similar messages. Has anybody
seen these errors before?
- Brian Webb
webbb@aries.tucson.saic.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Link problems
@ 1997-01-23 17:07 J
1997-01-23 19:25 ` jestabro
0 siblings, 1 reply; 6+ messages in thread
From: J @ 1997-01-23 17:07 UTC (permalink / raw)
>I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
>one of my programs on it, but I'm getting many link errors. The errors
>that I'm getting are as follows:
>
>g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
>-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
>ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
>-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
>/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
>truncated to fit: LITERAL __CTOR_END__
>/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
>e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
>e_exp.c(.text+0xe4): relocation truncated to fit: LITERAL ln2HI
>e_exp.c(.text+0xec): relocation truncated to fit: LITERAL ln2LO
>e_exp.c(.text+0x120): relocation truncated to fit: LITERAL $C35
>e_exp.c(.text+0x128): relocation truncated to fit: LITERAL halF
>e_exp.c(.text+0x154): relocation truncated to fit: LITERAL ln2HI
>e_exp.c(.text+0x160): relocation truncated to fit: LITERAL ln2LO
>
>This goes on for quite some time with similar messages. Has anybody
>seen these errors before?
I've seen these before, but have no idea what they mean. I got them when
trying to compile octave 2.0.1.
I posted to this list about it a couple of weeks ago, but haven't gotten
a response.
- J
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Link problems
1997-01-23 17:07 J
@ 1997-01-23 19:25 ` jestabro
1997-01-24 20:33 ` Richard Henderson
0 siblings, 1 reply; 6+ messages in thread
From: jestabro @ 1997-01-23 19:25 UTC (permalink / raw)
>>> J said:
> >I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
> >one of my programs on it, but I'm getting many link errors. The errors
> >that I'm getting are as follows:
> >
> >g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
> >-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
> >ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
> >-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
> >/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
> >truncated to fit: LITERAL __CTOR_END__
> >/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
> >e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
> >e_exp.c(.text+0xe4): relocation truncated to fit: LITERAL ln2HI
> >e_exp.c(.text+0xec): relocation truncated to fit: LITERAL ln2LO
> >e_exp.c(.text+0x120): relocation truncated to fit: LITERAL $C35
> >e_exp.c(.text+0x128): relocation truncated to fit: LITERAL halF
> >e_exp.c(.text+0x154): relocation truncated to fit: LITERAL ln2HI
> >e_exp.c(.text+0x160): relocation truncated to fit: LITERAL ln2LO
> >
> >This goes on for quite some time with similar messages. Has anybody
> >seen these errors before?
>
> I've seen these before, but have no idea what they mean. I got them when
> trying to compile octave 2.0.1.
I was hoping someone more knowledgable would have posted, but, hey, maybe
I can fool some people... :-)
These errors are because the binary being built got so large that the
constants/addresses/strings/etc mentioned in the error messages couldn't
be put into *one* global area, and addressed in the standard way.
This problem, IIRC, has been fixed in the latest GCC binaries available;
also, according to *many* experiences shared with the net, upgrading to the
latest GCC/glibc is not for the faint-of-heart... :-)
It's possible there's a fixed GCC that'll drop onto Red Hat 4.0, but I don't
know where to look.
If you're feeling adventurous, you could try turning parts of those large
binaries into shared libraries; that'll get around the problem. Here's what
Richard Henderson said about this, when I had similar problems trying to link
the latest XEmacs-19.14:
> > Trying to Compile Xemacs in my avanti i get many messages :
> > relocation truncated to fit: LITERAL ....
> > in the final link stage. The messages are all refering to functions that
> > are defined in static libaries.
>
> With small programs, that is a sign of having linked ECOFF object
> files into the ELF executable. However, I've recently had two reports
> of very large programs (CLAPACK and a recent g++ snapshot) exceeding
> the maximum .got segment size also yielding this message.
>
> The current ELF linker implements .got compression, which cuts a third
> to a half of the size off the ECOFF .lita size, but does not allow
> multiple .got subsections. That was a bit o' nastiness I didn't want
> to fool with and I thought I'd gotten away with it when the X server
> linked with room to spare. Suffice to say that I am now working on it.
>
> As a workaround, you should be able to get things to work by turning
> the static libraries into shared libraries and sticking them in the
> Xemacs libexec bin directory. This because each library gets its own
> .got section and so effectively achives the desired result of multiple
> sections for the application.
>
> The former operation would be like so:
>
> ld -shared -o libfoo.so --whole-archive libfoo.a --no-whole-archive
>
> and the latter like
>
> gcc -o xemacs -Wl,-rpath,/usr/libexec/emacs/version/alpha-linux ...
>
> Oh, and you'll need to do the build like
>
> LD_LIBRARY_PATH=path make
>
> where path is a colon separated path to the directories of the .so
> files in the build directory. This because emacs will need them to
> load while it dumps itself.
Good luck; the above technique worked for XEmacs, YMMV...
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Link problems
1997-01-23 19:25 ` jestabro
@ 1997-01-24 20:33 ` Richard Henderson
0 siblings, 0 replies; 6+ messages in thread
From: Richard Henderson @ 1997-01-24 20:33 UTC (permalink / raw)
> > >I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
> > >one of my programs on it, but I'm getting many link errors. The errors
> > >that I'm getting are as follows:
> > >
> > >g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
> > >-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
> > >ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
> > >-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
> > >/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
> > >truncated to fit: LITERAL __CTOR_END__
> > >/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
> > >e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
There's something wrong here. Did you report the entire link line?
I don't see `-static' but I do see /usr/lib/libm.a -- `-lm' should
have pulled in the shared version.
Does /usr/lib/libm.so exist? Did you previously have RH 3.0.3 on
that machine, and if so, did you build any of the /swl/share/ bits
with it?
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Link problems
@ 1997-01-23 20:12 bruce a. campbell
0 siblings, 0 replies; 6+ messages in thread
From: bruce a. campbell @ 1997-01-23 20:12 UTC (permalink / raw)
J wrote:
>
> >I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
> >one of my programs on it, but I'm getting many link errors. The errors
> >that I'm getting are as follows:
> >
> >g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
> >-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
> >ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
> >-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
> >/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
> >truncated to fit: LITERAL __CTOR_END__
> >/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
> >e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
> >e_exp.c(.text+0xe4): relocation truncated to fit: LITERAL ln2HI
> >e_exp.c(.text+0xec): relocation truncated to fit: LITERAL ln2LO
> >e_exp.c(.text+0x120): relocation truncated to fit: LITERAL $C35
> >e_exp.c(.text+0x128): relocation truncated to fit: LITERAL halF
> >e_exp.c(.text+0x154): relocation truncated to fit: LITERAL ln2HI
> >e_exp.c(.text+0x160): relocation truncated to fit: LITERAL ln2LO
> >
> >This goes on for quite some time with similar messages. Has anybody
> >seen these errors before?
>
> I've seen these before, but have no idea what they mean. I got them when
> trying to compile octave 2.0.1.
>
> I posted to this list about it a couple of weeks ago, but haven't gotten
> a response.
>
> - J
You have the Famed Single .got section Overflow (referred to from now on
as the .gotcha.
See the response that Richard Henderson sent about two days ago.
The net is you need to replace your ld, as, and all .as and .os
you indend to use for linking.
baruch@aod.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Link problems
@ 1997-01-24 21:08 Brian Webb
0 siblings, 0 replies; 6+ messages in thread
From: Brian Webb @ 1997-01-24 21:08 UTC (permalink / raw)
> > > >I just purchased a UDB running RedHat Linux 4.0, and I'm trying to build
> > > >one of my programs on it, but I'm getting many link errors. The errors
> > > >that I'm getting are as follows:
> > > >
> > > >g++ -L../../lib/ALPHA -L/swl/share/webbb/lib/ALPHA -L/swl/ATR/lib/ALPHA
> > > >-L/swl/tcl-7.6/ALPHA/lib -L/usr/X11R6/lib -o ../../bin/ALPHA/image_wish
> > > >ALPHA/tkAppInit.o -ltk_ext -ltcl_ext -lXWImage -lgf -llists -lregion
> > > >-lseg -lutil -ltk4.2 -ltcl7.6 -lX11 -lgcc -ldl -lm
> > > >/usr/lib/gcc-lib/alpha-linux/2.7.2/crtend.o(.text+0x14): relocation
> > > >truncated to fit: LITERAL __CTOR_END__
> > > >/usr/lib/libm.a(e_exp.o): In function `__ieee754_exp':
> > > >e_exp.c(.text+0xa0): relocation truncated to fit: LITERAL $C34
>
> There's something wrong here. Did you report the entire link line?
> I don't see `-static' but I do see /usr/lib/libm.a -- `-lm' should
> have pulled in the shared version.
>
> Does /usr/lib/libm.so exist? Did you previously have RH 3.0.3 on
> that machine, and if so, did you build any of the /swl/share/ bits
> with it?
For some reason libm.so did not exist on my system. I created a link
from libm.so.6 to libm.so and everything links fine now. It would seem
that the libm.so link is missing in the RedHat 4.0 distribution. I just
installed from the RedHat 4.0 CD last weekend and installed all the
updates yesterday. In any case, problem solved. Thanks!
- Brian
webbb@aries.tucson.saic.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-01-24 21:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-21 22:51 Link problems Brian Webb
-- strict thread matches above, loose matches on Subject: below --
1997-01-23 17:07 J
1997-01-23 19:25 ` jestabro
1997-01-24 20:33 ` Richard Henderson
1997-01-23 20:12 bruce a. campbell
1997-01-24 21:08 Brian Webb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox