Build Failure of PyNE

71 views
Skip to first unread message

Ian Hoffman

unread,
Dec 10, 2020, 5:58:42 PM12/10/20
to pyne...@googlegroups.com
Scanning dependencies of target alphad
[ 35%] Building Fortran object src/CMakeFiles/alphad.dir/ensdf_processing/ALPHAD/alphad.f.o
/home/ihoffman/git/pyne/src/ensdf_processing/ALPHAD/alphad.f:941:49:

 923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
     |                                 2                 
......
 941 |                         CALL CNVU2S(hf(l)-dhf(l),0.0,hfsav(ihf),        &
     |                                                 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ihoffman/git/pyne/src/ensdf_processing/ALPHAD/alphad.f:949:49:

 923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
     |                                 2                 
......
 949 |                         CALL CNVU2S(hf(l)+dhf(l),0.0,hfsav(ihf),        &
     |                                                 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ihoffman/git/pyne/src/ensdf_processing/ALPHAD/alphad.f:960:42:

 923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
     |                                 2          
......
 960 |                         CALL CNVU2S(hf(l),0.0,hfsav(ihf),LEN(hfsav(ihf))&
     |                                          1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ihoffman/git/pyne/src/ensdf_processing/ALPHAD/alphad.f:1063:30:

 923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
     |                                 2
......
1063 |             CALL CNVU2S(hf(l),0.0,outstr(5),10,doutst(5),0)
     |                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
make[2]: *** [src/CMakeFiles/alphad.dir/build.make:82: src/CMakeFiles/alphad.dir/ensdf_processing/ALPHAD/alphad.f.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:271: src/CMakeFiles/alphad.dir/all] Error 2
make: *** [Makefile:149: all] Error 2


I hope this helps - I can always provide more info if needed. Thanks for all your work on this awesome project!

Ian

Paul Wilson

unread,
Dec 10, 2020, 6:00:58 PM12/10/20
to pyne...@googlegroups.com

Hi Ian,

Can you confirm which FORTRAN compiler you are using?  (perhaps you can just capture/share the output of the full build process)

Thanks

Paul

--

---
You received this message because you are subscribed to the Google Groups "PyNE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyne-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyne-dev/727006843.4266363.1607639365005%40mail.yahoo.com.
--
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
o: 608-263-0807, c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706
Webex Meeting Room: https://uwmadison.webex.com/meet/pr920233086
Webex Phone Access: +1-415-655-0001, Access code: 920 233 086

Computational Nuclear Engineering Research Group

andrewda...@gmail.com

unread,
Dec 11, 2020, 4:40:47 AM12/11/20
to pyne...@googlegroups.com
I'm going to guess GCC-10 or higher?

I saw similar failures and started a process to make it an optional
cmake option to build this.
> https://groups.google.com/d/msgid/pyne-dev/a47adb57-2542-4ff3-a645-3f80f33ac477%40wisc.edu
> .


Message has been deleted
Message has been deleted

Olek Yardas

unread,
Sep 27, 2021, 5:02:21 PM9/27/21
to PyNE
I'm running into this exact same issue. Here's the CMake output:

```CMake command is
cmake .. -DCMAKE_INSTALL_PREFIX=/home/ooblack/projects/pyne/app -DHDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/serial -DHDF5_LIBRARIES=/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so -DHDF5_LIBRARY_DIRS=/usr/lib/x86_64-linux-gnu/hdf5/serial/lib -DHDF5_INCLUDE_DIRS=/usr/lib/x86_64-linux-gnu/hdf5/serial/include -DENABLE_SPATIAL_SOLVERS=ON -DPYTHON_EXECUTABLE=/home/ooblack/anaconda3/envs/pyne-env/bin/python
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
 
                                  /   \        
                          )      ((   ))     (                           
(@)                      /|\      ))_((     /|\                           
|-|                     / | \    (/\|/\)   / | \                      (@)  
| | -------------------/--|-voV---\`|'/--Vov-|--\---------------------|-|
|-|                         '^`   (o o)  '^`                          | |
| |                               `\Y/'                               |-|
|-|                                                                   | |
| |        /\             ___           __  __             /\         |-|
|-|       /^~\           / _ \_   _  /\ \ \/__\           /^~\        | |   
| |       /^~\          / /_)/ | | |/  \/ /_\             /^~\        |-|
|-|       /^~\         / ___/| |_| / /\  //__             /^~\        | |  
| |       ^||`         \/     \__, \_\ \/\__/             ^||`        |-|   
|-|        ||                |____/                        ||         | |  
| |       ====                                            ====        |-|
|-|                                                                   | |
| |                                                                   |-|
|-|___________________________________________________________________| |
(@)              l   /\ /         ( (       \ /\   l                `\|-|
                 l /   V           \ \       V   \ l                  (@)
                 l/                _) )_          \I                    
                                   `\ /'
                                     `   
 
 
-- Pyne platform defined as: __LINUX__
-- Checking whether to build spatial solvers
-- -- Checking CMAKE_CXX_COMPILER_ID: GNU
-- -- -- Checking CMAKE_CXX_COMPILER_VERSION: 10.3.0
-- -- -- Checking if APPLE:  
-- Build spatial solvers: true
-- Build type: Release
-- PyNE Fast Compile: TRUE
-- CMAKE_INSTALL_RPATH: /home/ooblack/projects/pyne/app/lib:/usr/lib
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- CMake Install Prefix: /home/ooblack/projects/pyne/app
-- Dependency Root Dir (DEPS_ROOT_DIR): /usr
-- Dependency Hints (DEPS_HINTS): HINTS;/usr
-- Dependency Binary Hints (DEPS_BIN_HINTS): HINTS;/usr;/usr/bin
-- Dependency Library Hints (DEPS_LIB_HINTS): HINTS;/usr;/usr/lib
-- Dependency Include Hints (DEPS_INCLUDE_HINTS): HINTS;/usr/include
-- HDF5 Root: /usr/lib/x86_64-linux-gnu/hdf5/serial
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so (found version "1.10.6")   
--    HDF5 Include directory: /usr/lib/x86_64-linux-gnu/hdf5/serial/include
--    HDF5 Library directories: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib
--    HDF5 Libraries: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so
--    HDF5 library version: 1.10.6
-- Found PythonInterp: /home/ooblack/anaconda3/envs/pyne-env/bin/python (found version "3.7.10")  
-- Found PythonLibs: /home/ooblack/anaconda3/envs/pyne-env/lib/libpython3.7m.so (found version "3.7.10")  
-- PYTHON_EXECUTABLE: /home/ooblack/anaconda3/envs/pyne-env/bin/python
-- PYTHON_SITE_PACKAGES: /home/ooblack/projects/pyne/app/lib/python3.7/site-packages
-- NUMPY_VERSION_STRING = 1.21.2
-- Found Numpy: 1.21.2   
-- The Fortran compiler identification is GNU 10.3.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 - yes
-- CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES: /usr/lib/gcc/x86_64-linux-gnu/10;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib
-- CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES: gfortran;m;gcc_s;gcc;quadmath;m;gcc_s;gcc;c;gcc_s;gcc
-- NUMPY_VERSION_STRING = 1.21.2
-- Found F2py: /home/ooblack/anaconda3/envs/pyne-env/bin/f2py   
-- F2PY Executable: /home/ooblack/anaconda3/envs/pyne-env/bin/f2py
-- F2PY Version: 1.21.2
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE   
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Found BLAS: /usr/lib/x86_64-linux-gnu/libblas.so   
-- Looking for Fortran cheev
-- Looking for Fortran cheev - not found
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found LAPACK Linker Flags:  
-- Found LAPACK Libraries: /usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so
-- Found BLAS Libraries: /usr/lib/x86_64-linux-gnu/libblas.so
-- Found Cython: /home/ooblack/anaconda3/envs/pyne-env/bin/cython   
-- LIBS: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/home/ooblack/anaconda3/envs/pyne-env/lib/libpython3.7m.so
-- Extracting decay.tar.gz
x decay.h
x decay.cpp
-- Extracting decay-linux-gnu.tar.gz
x decay-linux-gnu.s
-- Extracting cram.tar.gz
x cram.c
x cram.h
-- Extracting cram-linux-gnu.tar.gz
x cram-linux-gnu.s
-- Compiling decay.cpp fast from assembly decay-linux-gnu.s
-- Compiling cram.c fast from assembly cram-linux-gnu.s
-- Include paths for /home/ooblack/projects/pyne/src: /usr/lib/x86_64-linux-gnu/hdf5/serial/include;/home/ooblack/anaconda3/envs/pyne-env/lib/python3.7/site-packages/numpy/core/include;/home/ooblack/projects/pyne/build/pyne;/home/ooblack/projects/pyne/src
-- Include paths for /home/ooblack/projects/pyne/pyne: /usr/lib/x86_64-linux-gnu/hdf5/serial/include;/home/ooblack/anaconda3/envs/pyne-env/lib/python3.7/site-packages/numpy/core/include;/home/ooblack/projects/pyne/build/pyne;/home/ooblack/projects/pyne/src
-- Modules to Cythonize: ace;bins;data;dtypes;endf;enrichment;extra_types;jsoncpp;material;material_library;nucname;particle;pyne_config;rxname;source;stlcontainers;tally;transmuters;_utils
-- F2PY F90 FLAGS:  
-- Include paths for /home/ooblack/projects/pyne/pyne/xs: /usr/lib/x86_64-linux-gnu/hdf5/serial/include;/home/ooblack/anaconda3/envs/pyne-env/lib/python3.7/site-packages/numpy/core/include;/home/ooblack/projects/pyne/build/pyne;/home/ooblack/projects/pyne/src
-- Configuring done
```

I get the same exact error as well

```
Scanning dependencies of target alphad
[ 35%] Building Fortran object src/CMakeFiles/alphad.dir/ensdf_processing/ALPHAD/alphad.f.o
/home/ooblack/projects/pyne/src/ensdf_processing/ALPHAD/alphad.f:941:49:
 
  923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
      |                                 2                 
......
  941 |                         CALL CNVU2S(hf(l)-dhf(l),0.0,hfsav(ihf),        &
      |                                                 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ooblack/projects/pyne/src/ensdf_processing/ALPHAD/alphad.f:949:49:
 
  923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
      |                                 2                 
......
  949 |                         CALL CNVU2S(hf(l)+dhf(l),0.0,hfsav(ihf),        &
      |                                                 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ooblack/projects/pyne/src/ensdf_processing/ALPHAD/alphad.f:960:42:
 
  923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
      |                                 2          
......
  960 |                         CALL CNVU2S(hf(l),0.0,hfsav(ihf),LEN(hfsav(ihf))&
      |                                          1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
/home/ooblack/projects/pyne/src/ensdf_processing/ALPHAD/alphad.f:1063:30:
 
  923 |                CALL CNVU2S(hf(l),dhf(l),hfsav(ihf),LEN(hfsav(ihf)),     &
      |                                 2
......
 1063 |             CALL CNVU2S(hf(l),0.0,outstr(5),10,doutst(5),0)
      |                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
make[2]: *** [src/CMakeFiles/alphad.dir/build.make:82: src/CMakeFiles/alphad.dir/ensdf_processing/ALPHAD/alphad.f.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:271: src/CMakeFiles/alphad.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
 ```
I'm on Ubuntu 21.04
Best,
--Olek

Paul Wilson

unread,
Oct 3, 2021, 8:15:42 PM10/3/21
to pyne...@googlegroups.com
Hi all

It looks like many other projects are facing this and there is some debate about the correct behavior.

It appears that there is a compiler flag workaround adopted by some reputable projects: https://lists.mpich.org/pipermail/discuss/2020-January/005863.html

I’ll make an issue for this.

Paul

-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
o: 608-263-0807, c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706
Zoom Meeting Room: https://uwmadison.zoom.us/j/6082630807
Zoom Phone Access: +1-929-205-6099, Access code: 6082630807
[sent from my iPad]
Reply all
Reply to author
Forward
0 new messages