Operating System - Linux
1753856 Members
7171 Online
108809 Solutions
New Discussion юеВ

Re: ld warning: PA 2.0 obect file

 
SOLVED
Go to solution
Michael D. Zorn
Regular Advisor

ld warning: PA 2.0 obect file

The warning is

ld: (Warning) At least one PA 2.0 object file (pgm.o) was detected. The linked output may not run on a PA 1.x system

I don't think I need to worry about that - there's only one machine here. Is there a way to suppress that warning?

We compile and link through the compiler, f90, with makefiles. The compile line is

f90 -o pgm pgm.o -lingres -lm

(-lingres is the database library)
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor
Solution

Re: ld warning: PA 2.0 obect file

Hi:

You should be able to suppress this by adding the '+vnocompatwarnings' flag during linking.

That aside, this is only a warning and hence is advisory only.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: ld warning: PA 2.0 obect file

>JRF: this is only a warning and hence is advisory only.

Right. This warning was more important back in 1996 when PA2.0 was introduced. Now, most PA1.1 machines are no longer supported.
Florian Heigl (new acc)
Honored Contributor

Re: ld warning: PA 2.0 obect file

>>JRF: this is only a warning and hence is advisory only.

>Right. This warning was more important back in 1996 when PA2.0 was introduced. Now, most PA1.1 machines are no longer supported.

somewhere in my cellar, an A180C is silently weeping.
yesterday I stood at the edge. Today I'm one step ahead.
Michael D. Zorn
Regular Advisor

Re: ld warning: PA 2.0 obect file

I found I could give it to f90 to hand off to the linker:

f90 -Wl,+vnocompatwarnings .....

and that other options (like -g) need to come after the -W

Thanks again.
Dennis Handly
Acclaimed Contributor

Re: ld warning: PA 2.0 obect file

>f90 -Wl,+vnocompatwarnings

Yes, that's how to pass linker specific options.

>that other options (like -g) need to come after the -Wl

I doubt there is any restriction on the ordering of this -Wl option. Just as long as it is passed to ld. You should be able to see this with -v.
Michael D. Zorn
Regular Advisor

Re: ld warning: PA 2.0 obect file

My makefile line is
FFLAGS=-Wl,+vnocompatwarnings, -g


The reason I got an error message was that I had

FFLAGS=g, -Wl,......

No commas between options.... but seems OK at the end: , -g
Dennis Handly
Acclaimed Contributor

Re: ld warning: PA 2.0 obect file

>My makefile line is
FFLAGS=-Wl,+vnocompatwarnings, -g

You can't have commas in options, just whitespace. There is a comma after -Wl and between options for ld, etc.:
-Wl,-B,immediate

In the case of -Wx, each comma is replaced by a space.
Michael D. Zorn
Regular Advisor

Re: ld warning: PA 2.0 obect file

The solutions provided did the trick.