From: Stuart McNicholas <sjm@xxxxxxxxxxxxxxxx>
On Thu, 15 Jun 2000, Jack Carter wrote:
> Try -Wl,-relax from the driver.
>
> Jack
By which, I think you mean:
sgif90 -i8 -i64 -Wl,-relax -O3 -lcrypt -o
/hosts/fs/home2/sjm/molpro2000.5/bin/molpro.exe molver.o molpro.o
-L/hosts/fs/home2/sjm/molpro2000.5/lib -lmolpro -lgks0
Then I get:
gcc: unrecognized option `-relax'
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/crtbegin.o(.fini+0x2):
relocation truncated to fit: PCREL21B fini
collect2: ld returned 1 exit status
ie, same error as before and unknown option -relax.
This is an compiler driver error which exists in the version we
open-sourced last month. We have since fixed it, so -Wl,-relax
will work in the next release update. This was a general bug with
how -Wl flags are passed to the linker. In the meantime,
you can either do:
-Wl,-Wl\\,--relax
or you can invoke gcc directly to do the link and add in -relax
(if you do sgif90 -show you'll see how gcc is invoked to do the link,
then just add the -relax option by hand).
-- Mike Murphy
-- mpm@xxxxxxx
-- quote of the day:
-- "To laugh often and much; to win the respect of intelligent people and
-- the affection of children; to earn the appreciation of honest critics
-- and endure the betrayal of false friends; to appreciate beauty;
-- to find the best in others; to leave the world a bit better,
-- whether by a healthy child, a garden patch or a redeemed social condition;
-- to know even one life has breathed easier because you have lived.
-- This is to have succeeded." (Ralph Waldo Emerson)
|