Skip to content

error compiling the code with BUILD_FORTRAN_WRAPPER set ON #272

@enrico1193

Description

@enrico1193

My OS is:
Sequoia

OS Version:
15.0

Cmake Version:
cmake version 3.30.3

uname -a output

Darwin MacBook-Pro-di-Enrico.local 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:31 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6030 x86_64

env output

TERM_PROGRAM=Apple_Terminal
SHELL=/bin/zsh
TERM=xterm-256color
TMPDIR=/var/folders/76/z7cf396s5613gt56tw4dq3g00000gn/T/
TERM_PROGRAM_VERSION=454.1
TERM_SESSION_ID=AFEB0DC5-2C86-4A6D-9EC2-3F41DF8AED04
USER=enri
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.7kjgHbuJ8i/Listeners
PATH=/opt/anaconda3/condabin:/Users/enri/Desktop/PhD_MacBookPro/Codes/NEQAIR-v15.0-update:/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp/install/bin:/Users/enri/Library/Python/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin
__CFBundleIdentifier=com.apple.Terminal
PWD=/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp/install
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/enri
LOGNAME=enri
OLDPWD=/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp/install
CLICOLOR=1
LSCOLORS=GxFxCxDxBxegedabagaced
PROMPT=$
MPP_DIRECTORY=/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp
MPP_DATA_DIRECTORY=/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp/data
neqair_DB_PATH=/Users/enri/Desktop/PhD_MacBookPro/Codes/NEQAIR-v15.0-update/DATABASES
radiance_TL_PATH=/Users/enri/Desktop/PhD_MacBookPro/References/Laboratory/Lamps/Tungsten/2020/spectral_radiance_Wi_17G_73161PTB20.xlsx
BB_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Enrico/FS2024-AIR/Calibration/Intensity/03-03-2024/BB/T1500degC
BB_1400_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Enrico/FS2024-AIR/Calibration/Intensity/27-02-2024/BB/T1400degC
TL_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Enrico/FS2024-AIR/Calibration/Intensity/29-02-2024/TL
old_BB_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Andrea/calibration/SP2750/AF2022B/G150/D2/BB/TBB1500
old_TL_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Andrea/calibration/SP2750/AF2022B/G150/D2/lamp
radiance_SL_PATH=/Users/enri/Desktop/PhD_MacBookPro/References/Laboratory/Sphere/OL-455/OL45061_calibration file_2140778-k.xlsx
SL_CC_PATH=/Users/enri/Library/CloudStorage/OneDrive-vki.ac.be/Laboratory/Experiment/SP-2750/Enrico/FS2024-AIR/Calibration/Intensity/27-03-2024/SL
mpp_mixture_PATH=/Users/enri/Desktop/PhD_MacBookPro/Codes/Mutationpp/data/mixtures
save_fig_PATH=/Users/enri/Desktop
CONDA_EXE=/opt/anaconda3/bin/conda
_CE_M=
_CE_CONDA=
CONDA_PYTHON_EXE=/opt/anaconda3/bin/python
CONDA_SHLVL=0
LANG=it_IT.UTF-8
_=/usr/bin/env

Mutation++ origin

git clone https://github.com/mutationpp/Mutationpp.git

Mutation++ build steps

mkdir build
cd build
I set BUILD_FORTRAN_WRAPPER in ON in CMakeList.txt file
cmake -DCMAKE_INSTALL_PREFIX:PATH=$(realpath ../install) ..

Mutation++ cmake output

CMake Error at CMakeLists.txt:149 (get_filename_component):
  get_filename_component called with incorrect number of arguments

Mutation++ make output

Steps to reproduce

  1. First step
  2. Second step...

Comments

Compilation and installation works if BUILD_FORTRAN_WRAPPER is OFF. However, when it is ON I get the error when calling the get_filename_component function. If I try to redo the cmake command a second time then the error disappears but I am not 100% sure I am compiling the code correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions