piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
74 stars 17 forks source link

Compiling piclas on an m1 MacBook #6

Closed degun89 closed 1 year ago

degun89 commented 2 years ago

I tried to compile piclas on my m1(arm) macbook, but I have the following error message.

[ 80%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/emission/particle_emission.f90.o [ 81%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/bgk/bgk_init.f90.o [ 81%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/dsmc/dsmc_init.f90.o [ 81%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/fp_flow/fpflow_init.f90.o [ 81%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/bgk/bgk_adaptation.f90.o [ 82%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/dsmc/dsmc_main.f90.o [ 83%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/timedisc/timedisc_TimeStepByLSERK.f90.o [ 83%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/bgk/bgk_main.f90.o [ 84%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/fp_flow/fpflow_main.f90.o [ 85%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/boundary/particle_boundary_init.f90.o [ 86%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/particle_init.f90.o [ 87%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/init/piclas_init.f90.o [ 88%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/loadbalance/loadbalance.f90.o [ 88%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/init/define_parameters_init.f90.o [ 88%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/timedisc/timedisc.f90.o [ 88%] Built target libpiclasstaticF90 [ 89%] Linking Fortran static library lib/libpiclasf90.a [ 89%] Built target libpiclasstatic Scanning dependencies of target libpiclasshared [ 89%] Building Fortran object CMakeFiles/libpiclasshared.dir/src/piclaslib.f90.o [ 89%] Linking Fortran shared library lib/libpiclas.dylib ld: warning: ignoring file bin/userblock.o, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) ld: warning: ignoring file lib/libuserblocklib.a, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) ld: warning: ignoring file lib/libstacksizelib.a, building for macOS-arm64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file lib/libpiclasf90.a, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) ld: warning: ignoring file lib/libmemusagelib.a, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) Undefined symbols for architecture arm64: "_mod_commandline_arguments_MODargs", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_commandline_arguments_MODnargs", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_commandline_arguments_MODparsecommandlinearguments", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_define_parameters_init_MOD_initdefineparameters", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_abortprog", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_collectivestop", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_doprinthelp", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_ierror", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_int2strf", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_logging", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_mpiroot", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_piclastime", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_reopenlogfile", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_MOD_starttime", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_globals_init_MODinitglobals", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_globals_vars_MODinitializationwalltime", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_globals_vars_MODparameterdsmcfile", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_globals_vars_MODparameterfile", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_interpolation_MOD_initinterpolation", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_io_hdf5_MODinitiohdf5", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_loadbalance_MOD_initloadbalance", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_mesh_MOD_swapmesh", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_mesh_vars_MODdoswapmesh", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_mpi_MOD_initmpi", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_mpi_shared_MODinitmpishared", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_output_MOD_initoutput", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_particle_vars_MODdoinitialionization", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_particleinit_MOD_initialionization", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_piclas_init_MODinitpiclas", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_readintoolsMODvtab_mod_readintools_Parameters", referenced from: _mod_piclas_MOD_initializepiclas in piclaslib.f90.o "___mod_readintools_MOD_countsetentries", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_readintools_MOD_extractparameterfile", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_readintools_MOD_printdefaultparameterfile", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_readintools_MOD_prms", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_readintools_MOD_readoptions", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_restart_MOD_restart", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_restart_vars_MODrestartfile", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o "_mod_stringtools_MOD_getfileextension", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_stringtools_MOD_stricmp", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_timediscinit_MOD_inittime", referenced from: _mod_piclas_MODinitializepiclas in piclaslib.f90.o "mod_timediscinit_MOD_inittimedisc", referenced from: ___mod_piclas_MOD_initializepiclas in piclaslib.f90.o "setstacksizeunlimited", referenced from: mod_piclas_MOD_initializepiclas in piclaslib.f90.o ld: symbol(s) not found for architecture arm64 collect2: error: ld returned 1 exit status make[2]: [lib/libpiclas.dylib] Error 1 make[1]: [CMakeFiles/libpiclasshared.dir/all] Error 2 make: *** [all] Error 2

Any suggestions?

scopplestone commented 2 years ago

Currently, we do not have macOS on our list of systems that we test regularly. Somehow the linking step is the issues. We will see if we can somehow reproduce the problem.

scopplestone commented 1 year ago

Closed until macOS will be supported