View previous topic :: View next topic |
Author |
Message |
joshn9 n00b

Joined: 15 Apr 2025 Posts: 2
|
Posted: Tue Apr 15, 2025 5:48 am Post subject: New ebuild - No install target for only root project cmake |
|
|
Hi Gentoo experts,
I am trying to create an ebuild for openEMS project https://github.com/thliebig/openEMS-Project. The manual install procedure is to simply fetch and install only the submodules for the linked project. I think I have gotten pretty far with the ebuild below, however on the last step I run into an issue (more in depth log below):
Code: |
ninja: error: unknown target 'install'
|
I am not well versed in cmake, however it seems like it is because there is nothing to install on the root project. The closest similar issue I've found on the forums is: [url]https://bugs.gentoo.org/693928[\url] where the developer seems to override the src_install function but I don't know how that may apply to my ebuild. My question is then, can I get portage to ignore the installation step for just the root project? If the issue is something else entirely please also let me know. Alternatively tonight I'll try creating separate ebuilds for the individual submodules.
Here is my ebuild:
Code: |
EAPI=8
inherit git-r3 cmake
DESCRIPTION="openEMS - a free and open electromagnetic field solver"
HOMEPAGE="https://www.openems.de/"
EGIT_SUBMODULES=('fparser' 'CSXCAD' 'openEMS')
EGIT_REPO_URI="https://github.com/thliebig/openEMS-Project.git"
EGIT_COMMIT="v${PVR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
BDEPEND="dev-libs/tinyxml
dev-build/cmake
sci-libs/hdf5
sci-libs/vtk[qt6,boost]
sci-mathematics/cgal
dev-qt/qtbase
dev-qt/qt5compat
"
RDEPEND="${DEPEND}"
src_configure() {
local mycmakeargs=(
-DBUILD_APPCSXCAD=NO
-DCMAKE_INSTALL_PREFIX="${D}"
)
cmake_src_configure
}
|
Here is a snippet of the logs towards the end.
Code: |
[22/24] cd /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-build && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-stamp/openEMS-build
[1/72] Building CXX object CMakeFiles/openEMS.dir/tools/ErrorMsg.cpp.o
[2/72] Building CXX object CMakeFiles/openEMS.dir/tools/global.cpp.o
[3/72] Building CXX object CMakeFiles/openEMS.dir/tools/array_ops.cpp.o
[4/72] Building CXX object CMakeFiles/openEMS.dir/tools/AdrOp.cpp.o
[5/72] Building CXX object CMakeFiles/openEMS.dir/tools/sar_calculation.cpp.o
[6/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine.cpp.o
[7/72] Building CXX object CMakeFiles/openEMS.dir/tools/hdf5_file_reader.cpp.o
[8/72] Building CXX object CMakeFiles/openEMS.dir/tools/useful.cpp.o
[9/72] Building CXX object CMakeFiles/openEMS.dir/tools/vtk_file_writer.cpp.o
[10/72] Building CXX object CMakeFiles/openEMS.dir/tools/hdf5_file_writer.cpp.o
[11/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_sse.cpp.o
[12/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_sse.cpp.o
[13/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_sse_compressed.cpp.o
[14/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator.cpp.o
[15/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_sse_compressed.cpp.o
[16/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/excitation.cpp.o
[17/72] Building CXX object CMakeFiles/openEMS.dir/openems.cpp.o
[18/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_cylinder.cpp.o
[19/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_fdtd.cpp.o
[20/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_cylinder.cpp.o
[21/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_sse_fdtd.cpp.o
[22/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_extension.cpp.o
[23/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_dispersive.cpp.o
[24/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_multithread.cpp.o
[25/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_dispersive.cpp.o
[26/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_lorentzmaterial.cpp.o
[27/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_conductingsheet.cpp.o
[28/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_cylindrical_fdtd.cpp.o
[29/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_cylindermultigrid.cpp.o
[30/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_multithread.cpp.o
[31/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_upml.cpp.o
[32/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_mur_abc.cpp.o
[33/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_cylindermultigrid.cpp.o
[34/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_lorentzmaterial.cpp.o
[35/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_mur_abc.cpp.o
[36/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_excitation.cpp.o
[37/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_upml.cpp.o
[38/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_excitation.cpp.o
[39/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_tfsf.cpp.o
[40/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_steadystate.cpp.o
[41/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_cylindermultigrid.cpp.o
[42/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_extension.cpp.o
[43/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_tfsf.cpp.o
[44/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_cylinder.cpp.o
[45/72] Building CXX object CMakeFiles/openEMS.dir/Common/engine_interface_base.cpp.o
[46/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_steadystate.cpp.o
[47/72] Building CXX object CMakeFiles/openEMS.dir/Common/operator_base.cpp.o
[48/72] Building CXX object CMakeFiles/openEMS.dir/Common/processfieldprobe.cpp.o
[49/72] Building CXX object CMakeFiles/openEMS.dir/Common/processfields.cpp.o
[50/72] Building CXX object CMakeFiles/openEMS.dir/Common/processcurrent.cpp.o
[51/72] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_td.cpp.o
[52/72] Building CXX object CMakeFiles/openEMS.dir/Common/processing.cpp.o
[53/72] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_fd.cpp.o
[54/72] Building CXX object CMakeFiles/openEMS.dir/Common/processintegral.cpp.o
[55/72] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_cylinder.cpp.o
[56/72] Building CXX object CMakeFiles/openEMS.dir/Common/processvoltage.cpp.o
[57/72] Building CXX object CMakeFiles/openEMS.dir/Common/processmodematch.cpp.o
[58/72] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_sar.cpp.o
[59/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/__/tools/array_ops.cpp.o
[60/72] Building CXX object CMakeFiles/openEMS_bin.dir/main.cpp.o
[61/72] Linking CXX shared library libopenEMS.so.0.0.36
[62/72] Creating library symlink libopenEMS.so.0 libopenEMS.so
[63/72] Building CXX object nf2ff/CMakeFiles/nf2ff_bin.dir/main.cpp.o
[64/72] Linking CXX executable openEMS
[65/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/__/tools/hdf5_file_reader.cpp.o
[66/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/__/tools/useful.cpp.o
[67/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/__/tools/hdf5_file_writer.cpp.o
[68/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/nf2ff_calc.cpp.o
[69/72] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/nf2ff.cpp.o
[70/72] Linking CXX shared library nf2ff/libnf2ff.so.0.1.0
[71/72] Creating library symlink nf2ff/libnf2ff.so.0 nf2ff/libnf2ff.so
[72/72] Linking CXX executable nf2ff/nf2ff
[23/24] cd /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-build && /usr/bin/cmake --build . --target install && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-stamp/openEMS-install
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0.0.36
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0.0.36" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS.sh
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/include/openEMS/openems.h
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/include/openEMS/openems_global.h
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/FFT_time2freq.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ResultsQueue.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/setup.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetGaussExcite.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetupMPI.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetCustomExcite.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddRectWaveGuidePort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/optimizer_asco_sim.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/DumpFF2VTK.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/CheckQueue.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/FindFreeSSH.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/RunOpenEMS.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Dump2VTK.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/RunOpenEMS_Parallel.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/DFT_time2freq.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddMSLPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/PlotHDF5FieldData.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetSinusExcite.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/physical_constants.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/GetField_TD2FD.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetDiracExcite.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/calcTLPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/CalcNF2FF.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/queue_delProcess.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/plotFF3D.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddPML.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/DelayFidelity.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AnalyzeNF2FF.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/InitQueue.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/GetField_Range.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/h5readatt_octave.cc
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/polarFF.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddCircWaveGuidePort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddCoaxialPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/WriteHDF5.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddCurvePort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/InitFDTD.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/CreateNF2FFBox.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/private
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/private/ReadNF2FF.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/private/invoke_openEMS.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/calcLumpedPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/WriteOpenEMS.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetStepExcite.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/FinishQueue.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/SetBoundaryCond.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/InitCylindricalFDTD.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/calcWGPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/GetField_SubSampling.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Parallel_Plate_Waveguide.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Patch_Antenna_Array.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Bent_Patch_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/CRLH_Extraction.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Conical_Horn_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/MRI_LP_Birdcage.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/MRI_Loop_Coil.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/readme
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Simple_Patch_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Horn_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/StripLine2MSL.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Circ_Waveguide.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Rect_Waveguide.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/CRLH_LeakyWaveAnt.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Helical_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/RCS_Sphere.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Patch_Antenna_Phased_Array.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/Dipole_SAR.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/CylindricalWave_CC.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/CreateCRLH.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/RadarUWBTutorial.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Tutorials/MSL_NotchFilter.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/calcPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddMRStub.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/queue_checkProcess.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/plotRefl.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ReadHDF5Mesh.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/optimize.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddCPWPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/Add2Queue.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/RunOpenEMS_MPI.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AR_estimate.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/GetField_Interpolation.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/queue_addProcess.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/optimizer
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/optimizer/optimizer_simfun.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/optimizer/optimizer_asco.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/__deprecated__
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/__deprecated__/MSL2.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Circ_Waveguide_CylinderCoords.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Coax_CylinderCoords.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Circ_Waveguide.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Rect_Waveguide.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Coax.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/waveguide/Coax_Cylindrical_MG.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/directional_coupler.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/MSL_Losses.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/Finite_Stripline.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/MSL.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/CPW_Line.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/transmission_lines/Stripline.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/PML_reflection_analysis.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/Metamaterial_PlaneWave_Drude.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/PlaneWave.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/resistance_sheet.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/Helix.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/gauss_excitation_test.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/other/LumpedElement.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas/Patch_Antenna_Array.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas/infDipol.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas/inverted_f.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas/Bi_Quad_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/examples/antennas/Patch_Antenna.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/harminv.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ConvertHDF5_VTK.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ReadHDF5FieldData.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ReadHDF5Dump.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddWaveGuidePort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/calc_ypar.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ReadUI.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/ReadHDF5Attribute.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddLumpedPort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/AddStripLinePort.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/share/openEMS/matlab/plotFFdB.m
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/nf2ff
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/nf2ff" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libnf2ff.so.0.1.0
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libnf2ff.so.0
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libnf2ff.so.0.1.0" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libnf2ff.so
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/include/openEMS/nf2ff.h
[24/24] cd /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build && /usr/bin/cmake -E make_directory /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/CMakeFiles && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/CMakeFiles/openEMS-complete && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-stamp/openEMS-done
>>> Source compiled.
Unable to configure loopback interface: Operation not permitted
>>> Test phase [not enabled]: sci-electronics/openems-0.0.36
Unable to configure loopback interface: Operation not permitted
>>> Install sci-electronics/openems-0.0.36 into /var/tmp/portage/sci-electronics/openems-0.0.36/image
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36"
* Build directory (BUILD_DIR): "/var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build"
ninja -v -j4 -l5 install
ninja: error: unknown target 'install'
* ERROR: sci-electronics/openems-0.0.36::letsbuild-overlay failed (install phase):
* ninja -v -j4 -l5 install failed
*
* Call stack:
* ebuild.sh, line 136: Called src_install
* environment, line 1896: Called cmake_src_install
* environment, line 1062: Called cmake_build 'install'
* environment, line 860: Called eninja 'install'
* environment, line 1188: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=sci-electronics/openems-0.0.36::letsbuild-overlay'`,
* the complete build log and the output of `emerge -pqv '=sci-electronics/openems-0.0.36::letsbuild-overlay'`.
* The complete build log is located at '/var/tmp/portage/sci-electronics/openems-0.0.36/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-electronics/openems-0.0.36/temp/environment'.
* Working directory: '/var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build'
* S: '/var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36'
>>> Failed to emerge sci-electronics/openems-0.0.36, Log file:
|
Thank you in advance! |
|
Back to top |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 2937
|
Posted: Tue Apr 15, 2025 7:07 am Post subject: |
|
|
joshn9 wrote: |
I am not well versed in cmake, however it seems like it is because there is nothing to install on the root project. |
That's not exactly correct:
joshn9 wrote: | Code: | ...
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0.0.36
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so.0.0.36" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/lib/libopenEMS.so
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS" to "/var/tmp/portage/sci-electronics/openems-0.0.36/image/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.a:/usr/lib64/libm.so"
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/bin/openEMS.sh
-- Installing: /var/tmp/portage/sci-electronics/openems-0.0.36/image/include/openEMS/openems.h
...
[24/24] cd /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build && /usr/bin/cmake -E make_directory /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/CMakeFiles && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/CMakeFiles/openEMS-complete && /usr/bin/cmake -E touch /var/tmp/portage/sci-electronics/openems-0.0.36/work/openems-0.0.36_build/openEMS-prefix/src/openEMS-stamp/openEMS-done
>>> Source compiled.
Unable to configure loopback interface: Operation not permitted
>>> Test phase [not enabled]: sci-electronics/openems-0.0.36
Unable to configure loopback interface: Operation not permitted
|
|
It seems it's doing an install in the compile phase which is not good. I guess this is how they work around the fact it's actually a meta build of several modules. Maybe you need to go and install them separately. That may include patching of the make file. Take a look at what the separate modules are doing. If they are running their own install you should prevent that and do it in src_install using the install functions.
Also I don't get that loopback interface configuration attempt(I run your ebuild), but if it's necessary perhaps it should be done in pkg_config
EDIT:
CMakeLists.txt wrote: | # build fparser
ExternalProject_Add( fparser
SOURCE_DIR ${PROJECT_SOURCE_DIR}/fparser
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
) |
See the bold part. You need to take over the build and install phases to properly separate them for the ebuild to work. It should not be that hard, I guess you could use the cmake eclass to see what's been run in src_compile and repeat that for all the modules, then do the same for src_install. If I have time later today I may try to play with it. It would be more manual, but that's life. Gentoo cannot take into account every shortcut people might take. Also people don't care of doing stuff properly, they just need to do their job. And what's proper is a whole other subject.
Best Regards,
Georgi |
|
Back to top |
|
 |
joshn9 n00b

Joined: 15 Apr 2025 Posts: 2
|
Posted: Tue Apr 15, 2025 8:59 pm Post subject: |
|
|
Hi Georgi,
Thank you for taking the time to look at this. I appreciate it. Indeed building the dependencies separately in their own ebuilds proved to be successful and much easier than trying to do the previous "shortcut" with the submodules.
FYI with regards to the loopback interface - I was testing in a chroot environment. I must have misconfigured something but it is not specific to this package installation. But that's a separate issue.
Anyway thank you again for your assistance.
Kind regards,
Josh |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|