PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Netcdf 4.1.3 and PGI 12.9 (Mac OsX 10.8.2 M. Lion)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
lcana



Joined: 16 Jun 2006
Posts: 10

PostPosted: Mon Oct 22, 2012 4:01 am    Post subject: Netcdf 4.1.3 and PGI 12.9 (Mac OsX 10.8.2 M. Lion) Reply with quote

Hi all,

I'm trying to build netcdf-4.1.3 against PGI compilers with the following flags:
==========

export CC=pgcc
export CXX=pgcpp
export FC=pgfortran
export LD=pgfortran
export CFLAGS="-fastsse -Msignextend"
export FFLAGS="-fastsse"
export CPPFLAGS="-DpgiFortran"
./configure --prefix=/Users/lcana/Lib/netcdf --disable-dap --disable-netcdf-4
make
make test
make install
==========

Once started to do 'make', I see tons of warnings like this one:
"PGC-W-0267-#warning -- "Unsupported compiler detected" (/usr/include/sys/cdefs.h: 81)
PGC-W-0114-More than one type specified (../include/ncdispatch.h: 111)
PGC-W-0143-Useless typedef declaration (no declarators present) (../include/ncdispatch.h: 111)"

And finally, compilation fails at this point:
libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -DpgiFortran -fastsse -Msignextend -c ncx.c -o libnetcdf3_la-ncx.o
PGC-W-0267-#warning -- "Unsupported compiler detected" (/usr/include/sys/cdefs.h: 81)
PGC-F-0249-#error -- "ix_float implementation" (ncx.c: 1382)
PGC/x86-64 OSX 12.9-0: compilation aborted
make[2]: *** [libnetcdf3_la-ncx.lo] Error 1

Any idea?
Regards,

Luis
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 438

PostPosted: Wed Oct 24, 2012 4:58 pm    Post subject: Building netcdf 4.1.3 on 64-bit Mac mountain lion Reply with quote

Luis,

I have sent you mail to address these problems.

After replacing the cdefs.h file in our include/sys area,
things build.

dave
Back to top
View user's profile
Carter Borst



Joined: 31 Jan 2006
Posts: 1

PostPosted: Tue Feb 26, 2013 2:57 pm    Post subject: Re: Building netcdf 4.1.3 on 64-bit Mac mountain lion Reply with quote

jtull wrote:
Luis,

I have sent you mail to address these problems.

After replacing the cdefs.h file in our include/sys area,
things build.

dave


Hello,

I am encountering this same error when trying to build netcdf-3.6.3 with PGI 12.10 (64bit) on CentOS 6.3 x86_64.

Would an update to that same file work for my issue? I followed the suggestions on the NetCDF363/PGI2012 web page, but had no further success.

source='attr.c' object='attr.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c -o attr.lo attr.c
libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c attr.c -o attr.o
source='ncx.c' object='ncx.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c -o ncx.lo ncx.c
libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c ncx.c -o ncx.o
PGC-F-0249-#error -- "ix_float implementation" (ncx.c: 1240)
PGC/x86-64 Linux 12.10-0: compilation aborted
make[3]: *** [ncx.lo] Error 1
make[3]: Leaving directory `/usr/local/src/netcdf-3.6.3/libsrc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/netcdf-3.6.3/libsrc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/netcdf-3.6.3'
make: *** [all] Error 2

Thank you,

Carter
Back to top
View user's profile
grfrost



Joined: 18 Mar 2013
Posts: 2

PostPosted: Tue Mar 19, 2013 4:18 pm    Post subject: Re: Building netcdf 4.1.3 on 64-bit Mac mountain lion Reply with quote

Carter Borst wrote:
jtull wrote:
Luis,

I have sent you mail to address these problems.

After replacing the cdefs.h file in our include/sys area,
things build.

dave


Hello,

I am encountering this same error when trying to build netcdf-3.6.3 with PGI 12.10 (64bit) on CentOS 6.3 x86_64.

Would an update to that same file work for my issue? I followed the suggestions on the NetCDF363/PGI2012 web page, but had no further success.

source='attr.c' object='attr.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c -o attr.lo attr.c
libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c attr.c -o attr.o
source='ncx.c' object='ncx.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c -o ncx.lo ncx.c
libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran -fast -Msignextend -Mipa=fast -c ncx.c -o ncx.o
PGC-F-0249-#error -- "ix_float implementation" (ncx.c: 1240)
PGC/x86-64 Linux 12.10-0: compilation aborted
make[3]: *** [ncx.lo] Error 1
make[3]: Leaving directory `/usr/local/src/netcdf-3.6.3/libsrc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/netcdf-3.6.3/libsrc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/netcdf-3.6.3'
make: *** [all] Error 2

Thank you,

Carter

I just encountered this as well.

It looks like you guys have a fix for this (comments above discuss 'sending a file' to other folks reporting this). How does one go about getting the file.

Could we post it somewhere and link to it?

Or can I get you to send me a copy of the proposed fix.

Gary
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Mar 20, 2013 9:14 am    Post subject: Reply with quote

Hi Gary,

Send a note to PGI Customer Service (trs@pgroup.com).

Thanks,
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 1, 2  Next
Page 1 of 2

 
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