PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

installing and compiling netcdf-3.6.0-p1 with pgf90 compiler
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Mon May 09, 2005 10:40 am    Post subject: Reply with quote

Hi Petero,

The 64-bit compilers won't execute on a 32-bit system. Reset the path to compilers to "/usr/bin/linux86/6.0/bin" and things should work.

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Mon May 09, 2005 10:39 pm    Post subject: Reply with quote

Mat,
i still see the following errors in config.log:
1) checking for C compiler default output file name... configure: error: C compiler cannot create executables.
2) pgcc-Fatal-unable to find any RC file
3) configure: failed program was:
| /* confdefs.h. */

any suggestion?

thanks,
petero
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 10, 2005 8:23 am    Post subject: Reply with quote

Hi Petero,

Are you able to compile a simple hello world program? What is the output from the dryrun command when you use the 32-bit compilers?
Code:
/usr/bin/linux86/6.0/bin/pgcc -V -dryrun x.c

I'm wondering if you have an installation issue. What OS are you using and what does your localrc file have configured? ("cat /usr/bin/linux86/6.0/bin/localrc").

If your localrc file doesn't exist or is empty, try reconfiguring the install by changing to the /usr/bin/linux86/6.0/bin directory and running 'makelocalrc -x /usr/bin/linux86/6.0'.

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Tue May 10, 2005 10:19 am    Post subject: Reply with quote

Yes Mat,
Thanks for your help,
Below are some info about my system,but i still cannot compile it successfully and i have also included those errors below.Also i have a quick question,is it fine to run ./configure several time without doin cleaning?
thanks in advance,

[root@drizzle bin]# uname -a
Linux drizzle.hupas.howard.edu 2.4.20-28.8 #1 Thu Dec 18 12:53:39 EST 2003 i686 i686 i386 GNU/Linux

[root@drizzle bin]# pgcc -V -dryrun x.c
pgcc-Fatal-unable to find any RC file

[root@drizzle bin]# pwd
/usr/bin/linux86/6.0/bin
[root@drizzle bin]# cat localrc
cat: localrc: No such file or directory

[root@drizzle bin]# makelocalrc -x /usr/bin/linux86/6.0
[root@drizzle bin]# cat localrc
set LFC=-lg2c;
set LDSO=/lib/ld-linux.so.2;
set GCCDIR=/usr/lib/gcc-lib/i386-redhat-linux/3.2;
set GCCINC=/usr/lib/gcc-lib/i386-redhat-linux/3.2/include;
set G77DIR=/usr/lib/gcc-lib/i386-redhat-linux/3.2;
set THROW=__THROW=;
set HAMMER=;
set X86_64=;
# makelocalrc executed by root Tue May 10 11:48:33
[root@drizzle bin]#

After i compiled again i got these errors:
1) checking for C compiler default output file name... configure: error: C compiler cannot create executables
2) ./PGIinstall: No such file or directory
3) configure: failed program was:
| /* confdefs.h. */
4) configure:1615: error: C compiler cannot create executables
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 10, 2005 1:16 pm    Post subject: Reply with quote

Hi Petero,

The "PGIInstall" file gets created when you first install the compilers. I'm wondering if the main problem is that you untar'd the PGI package but forgot to install it?

If so, you'll need to run "./install" from root directory of the untar'd package. Note that you can not install to the same directory where you've untar'd, so I suggest removing you current PGI directory tree, untar the package in a temporary directory, and then run "install".

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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