Skip to content

Since using the PGI Fortran compiler, use the PGI C++ compiler as well.#2

Open
jdew wants to merge 1 commit intocjcoats:masterfrom
jdew:master
Open

Since using the PGI Fortran compiler, use the PGI C++ compiler as well.#2
jdew wants to merge 1 commit intocjcoats:masterfrom
jdew:master

Conversation

@jdew
Copy link

@jdew jdew commented Jan 26, 2018

I'm using the pgi 1710 community edition compilers from pgilinux-2017-1710-x86_64.tar.gz

I needed to make these changes to get this to compile with just the pgi compilers installed.

@cjcoats
Copy link
Owner

cjcoats commented Jan 26, 2018 via email

@cjcoats
Copy link
Owner

cjcoats commented Jan 26, 2018 via email

@jdew
Copy link
Author

jdew commented Jan 26, 2018

This doesn't solve the issue though.

On a ubuntu xenial lts container I just created, added the git and build-essential packages and the pgi compilers.
I've added the following packages:
git
build-essential
libnetcdf-dev
libnetcdff-dev

I get:
make[1]: Entering directory '/root/ioapi-3.2/m3tools'
cd /root/ioapi-3.2/Linux2_x86_64pg; pgf90 -I/root/ioapi-3.2/ioapi '-module ' /root/ioapi-3.2/Linux2_x86_64pg -DFLDMN=1 -DAUTO_ARRAYS=1 -DF90=1 -DNDEBUG -O2 -V -Mnosecond_underscore -DFLDMN=1 -DAUTO_ARRAYS=1 -DF90=1 -DNDEBUG -c /root/ioapi-3.2/m3tools/airs2m3.f
pgf90-Error-Unknown switch: -module
Makefile:175: recipe for target 'airs2m3.o' failed
make[1]: *** [airs2m3.o] Error 1
make[1]: Leaving directory '/root/ioapi-3.2/m3tools'
Makefile:198: recipe for target 'all' failed
make: *** [all] Error 2

Removing the quotes let it compile again. White space after the -module on the variable in the makefile is maintained

I guess the cpp compiler isn't used at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments