szaghi / FLAP

Fortran command Line Arguments Parser for poor people
151 stars 34 forks source link

Cannot compile using ifort #60

Closed cphyc closed 8 years ago

cphyc commented 8 years ago

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 commented 8 years ago

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

cphyc commented 8 years ago

Neat!

szaghi commented 8 years ago

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 commented 8 years ago

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

szaghi commented 8 years ago

Thank you for your feedback!