szaghi / FiNeR

Fortran INI ParseR and generator
38 stars 5 forks source link

Building a library? #11

Closed jacobwilliams closed 7 years ago

jacobwilliams commented 7 years ago

Can I build FiNeR as a static library? When I try this:

FoBiS.py build -mode finer-static-intel

it makes static/mod and static/obj folders, but doesn't compile anything. Am I doing something wrong?

szaghi commented 7 years ago

@jacobwilliams

Hi Jacob,

surely it is possible, probably I missed up something in the fobos. Let me few hours to fix it (I have not Intel on my tablet, I can try with only GNU, but if it will work with GNU it should work with also Intel).

See you later.

szaghi commented 7 years ago

@jacobwilliams

Hi Jacob, there ware typos on fobos, I should have fixed them on the new release just uploaded

stefano@thor(07:04 AM Sat May 06) on hotfix/fix-broken-library-building-issue#11 [!]
~/fortran/FiNeR 12 files, 112Kb
→ FoBiS.py build -mode finer-static-gnu
Builder options
  Directories
    Building directory: "static"
    Compiled-objects .o   directory: "static/obj"
    Compiled-objects .mod directory: "static/mod"
  Compiler options
    Vendor: "gnu"
    Compiler command: "gfortran"
    Module directory switch: "-J"
    Compiling flags: "-c -frealloc-lhs -std=f2008 -fall-intrinsics -O2"
    Linking flags: "-O2"
    Preprocessing flags: ""
    Coverage: False
    Profile: False
  Preprocessor used: None
  Preprocessor output directory: None
  Preprocessor extensions processed: []

Building src/lib/finer.f90
Compiling src/third_party/PENF/src/lib/penf_global_parameters_variables.F90 serially
Compiling src/third_party/PENF/src/lib/penf_b_size.F90 serially
Compiling src/third_party/PENF/src/lib/penf_stringify.F90 serially
Compiling src/third_party/PENF/src/lib/penf.F90 serially
Compiling src/third_party/BeFoR64/src/lib/befor64_pack_data_m.F90 serially
Compiling src/third_party/BeFoR64/src/lib/befor64.F90 serially
Compiling src/third_party/StringiFor/src/lib/stringifor_string_t.F90 serially
Compiling src/lib/finer_backend.f90 src/third_party/StringiFor/src/lib/stringifor.F90 using 2 concurrent processes
Compiling src/lib/finer_option_t.F90 serially
Compiling src/lib/finer_section_t.f90 serially
Compiling src/lib/finer_file_ini_t.f90 serially
Compiling src/lib/finer.f90 serially
Linking static/libfiner.a
Target src/lib/finer.f90 has been successfully built

stefano@thor(07:05 AM Sat May 06) on hotfix/fix-broken-library-building-issue#11 [!]
~/fortran/FiNeR 13 files, 116Kb
→ tree static/
static/
├── build_finer.log
├── libfiner.a
├── mod
│   ├── befor64.mod
│   ├── befor64_pack_data_m.mod
│   ├── finer_backend.mod
│   ├── finer_file_ini_t.mod
│   ├── finer.mod
│   ├── finer_option_t.mod
│   ├── finer_section_t.mod
│   ├── penf_b_size.mod
│   ├── penf_global_parameters_variables.mod
│   ├── penf.mod
│   ├── penf_stringify.mod
│   ├── stringifor.mod
│   └── stringifor_string_t.mod
└── obj
    ├── befor64.o
    ├── befor64_pack_data_m.o
    ├── finer_backend.o
    ├── finer_file_ini_t.o
    ├── finer.o
    ├── finer_option_t.o
    ├── finer_section_t.o
    ├── penf_b_size.o
    ├── penf_global_parameters_variables.o
    ├── penf.o
    ├── penf_stringify.o
    ├── stringifor.o
    └── stringifor_string_t.o

Let me know if the fix works for you.

Thank you very much for reporting it.

Cheers.

jacobwilliams commented 7 years ago

Thanks! Works great now!

szaghi commented 7 years ago

You are always welcome :smile: