[Top] [All Lists]

Re: Link error with big fortran program

To: pro64-support@xxxxxxxxxxx, jcarter@xxxxxxxxxxxxxxxxxxx, Stuart McNicholas <sjm@xxxxxxxxxxxxxxxx>
Subject: Re: Link error with big fortran program
From: mpm@xxxxxxxxxxxxxxxxx (Michael Murphy)
Date: Thu, 15 Jun 2000 11:21:18 -0700 (PDT)
References: <00061510543005.12601@tcdec3> <10006150919.ZM117796@xxxxxxxxxxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
        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'
        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:
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)

<Prev in Thread] Current Thread [Next in Thread>