Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot compile using ifort #60

Closed
cphyc opened this issue Apr 5, 2016 · 5 comments
Closed

Cannot compile using ifort #60

cphyc opened this issue Apr 5, 2016 · 5 comments

Comments

@cphyc
Copy link

cphyc commented Apr 5, 2016

When I try to compile using ifort, I get the following error:

> FoBiS.py build -mode shared-intel
Builder options
  Directories
    Building directory: "shared"
    Compiled-objects .o   directory: "shared/obj"
    Compiled-objects .mod directory: "shared/mod"
  Compiler options
    Vendor: "intel"
    Compiler command: "ifort"
    Module directory switch: "-module"
    Compiling flags: "-cpp -c -fpic -assume realloc_lhs -O2"
    Linking flags: "-shared -O2"
    Preprocessing flags: ""
    Coverage: False
    Profile: False
  PreForM.py used: False
  PreForM.py output directory: None
  PreForM.py extensions processed: []

Building src/lib/flap.f90
Compiling src/third_party/PENF/src/lib/penf.F90 serially
src/third_party/PENF/src/lib/penf.F90(1392): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [BIT_SIZE]
use penf_b_size,  only : bit_size, byte_size
-------------------------^
compilation aborted for src/third_party/PENF/src/lib/penf.F90 (code 1)

src/third_party/PENF/src/lib/penf.F90(1392): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [BIT_SIZE]
use penf_b_size,  only : bit_size, byte_size
-------------------------^
compilation aborted for src/third_party/PENF/src/lib/penf.F90 (code 1)

FYI, I'm using ifort version:

ifort (IFORT) 15.0.6 20151119
Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.
@szaghi
Copy link
Owner

szaghi commented Apr 5, 2016

@cphyc there is minor bug on the third party dependency PENF, give me few minutes and I will upload a fix.

@cphyc
Copy link
Author

cphyc commented Apr 5, 2016

Neat!

szaghi added a commit that referenced this issue Apr 5, 2016
@szaghi
Copy link
Owner

szaghi commented Apr 5, 2016

In the new v1.0.5 just upload you should be able to compile with also Intel. It was a minor bug already fixed into PENF, but I forget to pull the new version of PENF into FLAP... I am too lazy!

Let me know if it work

@cphyc
Copy link
Author

cphyc commented Apr 5, 2016

It did the trick, thanks!
Fixed in #v1.0.5

@cphyc cphyc closed this as completed Apr 5, 2016
@szaghi
Copy link
Owner

szaghi commented Apr 5, 2016

Thank you for your feedback!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants