PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

v9.0 32b broken - how to fix

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
Sylvain K



Joined: 13 Oct 2009
Posts: 19

PostPosted: Thu Mar 22, 2012 2:02 pm    Post subject: v9.0 32b broken - how to fix Reply with quote

we have v9 installed at two sites (a cluster and a slew of desktop)

1- on the desktops, I get
% /opt/pgi/linux86-64/9.0/bin/pgf77 -tp k8-32 -c hello.f
% /opt/pgi/linux86-64/9.0/bin/pgf77 -tp k8-32 -o hello hello.o
/usr/bin/ld: /usr/lib64/32/crt1.o: No such file: No such file or directory

/usr/lib/crt1.o is present, but if I hack the output of pgf77 -v (linker) w/ a !!:gs=64/32== (remove string '64/32') I then get

/usr/bin/ld: cannot find -lpgc

2- at the other site (cluster head node) I get

% /software/pgi/linux86-64/9.0/bin/pgf77 -v -tp k8-32 -c hello.f
pgf77-Error-Unknown switch: -v
pgf77-Error-Unknown switch: -tp
pgf77-Error-file with unknown suffix ignored: k8-32
pgf77-Error-Unknown switch: -c
pgf77-Error-file with unknown suffix ignored: hello.f

but /software/pgi/linux86-64/9.0/bin/pgf77 is identical to /opt/pgi/linux86-64/9.0/bin/pgf77

Both sites are fine in 64b mode. Any ideas?

--
ps: hello.f is simply
program hello
c
print *, 'hello world!'
end
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Thu Mar 22, 2012 3:02 pm    Post subject: Reply with quote

Hi Sylvain K.,

Many on the newer 64-bit Linux Distros stopped installing 32-bit system libraries by default. You will need to install them and then reinstall the PGI compilers. The same issue would occur if you try to compile with "gcc -m32".

The exact packages you need to install will depend on your Linux version. Doing a web search for "32-bit gcc" and your OS version should yield the exact libraries you need.

For example, on Ubuntu you need to have the multilib package, "g++-multilib", as well as "libstdc++.i386", "libgcc.i386", "glibc.i386", and "glibc-devel.i386".

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group