I'm getting the following error while compiling https://0x0.st/iCeH.txt
Search Criteria
Package Details: freecad-git 0.22.0.36999.ged77603af9-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/freecad-git.git (read-only, click to copy) |
---|---|
Package Base: | freecad-git |
Description: | A general purpose 3D CAD modeler - git checkout |
Upstream URL: | https://www.freecad.org/ |
Licenses: | LGPL |
Conflicts: | freecad, freecad-appimage, freecad-appimage-git |
Provides: | freecad |
Submitter: | gborzi |
Maintainer: | greyltc (adrianinsaval) |
Last Packager: | adrianinsaval |
Votes: | 104 |
Popularity: | 0.040540 |
First Submitted: | 2012-03-03 13:46 (UTC) |
Last Updated: | 2024-04-30 00:29 (UTC) |
Dependencies (39)
- boost-libs
- coin (coin-gitAUR)
- fmt (fmt-gitAUR)
- glew (glew-libepoxyAUR, glew-waylandAUR, glew-osmesa-gitAUR, glew-wayland-gitAUR, glew-gitAUR)
- jsoncpp (jsoncpp-cmake-gitAUR, jsoncpp-cmakeAUR, jsoncpp-gitAUR)
- medAUR (med-openmpi)
- netcdf (netcdf-openmpi)
- opencascade (opencascade-gitAUR, opencascade-rcAUR, opencascade-f3dAUR)
- openmpi (openmpi-gitAUR)
- pyside6
- pyside6-tools
- python-matplotlib (python-matplotlib-gitAUR)
- python-packaging
- python-pivy
- python-ply
- python-yaml (python-yaml-gitAUR)
- qt6-5compat
- qt6-base (qt6-base-headlessAUR, qt6-base-gitAUR)
- qt6-svg
- qt6-tools
- shared-mime-info
- verdict
- vtk (vtk-gitAUR)
- xerces-c
- yaml-cpp
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- eigen (eigen-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- nlohmann-json (nlohmann-json-gitAUR) (make)
- shiboken6 (make)
- swig (swig-gitAUR) (make)
- pugixml (pugixml-gitAUR) (check)
- calculix-ccxAUR (optional) – FEM solver backend
- graphviz (optional) – dependency graph support
- libspnav (libspnav-gitAUR) (optional) – 3D mouse support
- openscad (openscad-objects-gitAUR, openscad-gitAUR, openscad-qt6-gitAUR) (optional) – OpenSCAD support
- python-pip (optional) – support installing python dependencies for addons
Required by (4)
- freecad-a2plus-git (requires freecad)
- freecad-cadquery-git (requires freecad)
- freecad-fcgear-git (requires freecad)
- openmc-git (requires freecad)
Sources (1)
Latest Comments
« First ‹ Previous 1 .. 13 14 15 16 17 18 19 20 21 22 23 .. 57 Next › Last »
moham_96 commented on 2020-12-22 07:37 (UTC)
greyltc commented on 2020-12-20 17:24 (UTC)
@bartus Thanks very much for the tips!
- I've added the
python-ply
dep - I never knew the environment was manipulated differently between prepare() and build() with respect to how rules in the options array are handled! (this honestly feels like a build system design flaw to me) I've moved the build preparation stuff from prepare() to build() now. Seems like I've been wrong to do that kind of preparation in prepare().
- Yeah, I should put my patches in the source array and not fetch anything in prepare(), sometimes I'm just too lazy to do it correctly
- Not sure I agree with what you've done with MAKEFLAGS and ninja there. I think I won't do that.
vipqualitypost commented on 2020-12-20 08:39 (UTC) (edited on 2020-12-20 08:48 (UTC) by vipqualitypost)
I patched my PKGBUILD with the patch posted by @bartus; it helped with building (set makeflags correctly, much slower build because of this I assume) but it still was failing the self tests so I think maybe this is an issue with FreeCAD. I commented out check() and then it just skips to package() which runs fine and the program is installed. I can open it and there are no obvious issues (I checked for the features that were failing test, all related to helix patterning). Maybe we should remove the self test until it's known to pass? Otherwise it's impossible to install, unless it's just a problem with my machine. Also, during check() we should remove the directory change; it enters the correct one at the end of Ninja build anyway.
To patch the makefile you can do like this, for anyone reading before it gets pushed:
curl http://ix.io/2IKZ >> freecad.patch
patch -ruN < freecad.patch
bartus commented on 2020-12-19 19:38 (UTC) (edited on 2020-12-19 22:18 (UTC) by bartus)
@greyltc; few things:
-
missing
python-ply
dependency ## -
cmake should be called form
build()
function asprepare()
is called in sanitized environment (no flags defined in/etc/makepkg.conf
present) ## -
to recreate make behaviour with
options=(!makeflags)
using ninja you should add${MAKEFLAGS:--j1}
to ninja call ## -
since
cmake:3.12
you can usedcmake -S source_dir -B build_dir
call creplacing allmkdir build, cd build, cmake ../
## -
and as bonus, instead of calling
curl
to get patch you can add one to source list withfilename::url
syntax ## also you can combine multiple python packages using bash bracket expansions ##
# merge with:
git am -s < <(curl -s http://ix.io/2IKZ)
btw. gendesktop
is pretty neat - will try to use it in my PKGBUILDs (ღ˘⌣˘ღ)
alex.forencich commented on 2020-12-17 22:44 (UTC)
I think python-yaml needs to be a dependency of some sort
kvkoskin commented on 2020-12-17 13:20 (UTC)
From Arch freecad package: Adding -D BUILD_ENABLE_CXX_STD=C++14 to cmake changes the std as needed.
devilholk commented on 2020-12-16 05:53 (UTC)
@khumarahn, I was able to make it build by replacing all occurrences of -std=gnu++11
in build/build.ninja
with -std=gnu++14
after prepare() have been run. I could not figure out how to get CMake to spit out a correct build.ninja.
khumarahn commented on 2020-12-15 23:15 (UTC)
Installing python-netcdf4 I could start the compilation, but it fails with
[2379/3992] Building CXX object src/Mod/Path/App/CMakeFiles/Path.dir/Area.cpp.o
FAILED: src/Mod/Path/App/CMakeFiles/Path.dir/Area.cpp.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DHAVE_CONFIG_H -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_LIMITS_H -DHAVE_RAPIDJSON -DHAVE_TBB -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DPath_EXPORTS -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_XML_LIB -DVTK_OPENGL2_BACKEND -D_OCC64 -DvtkDomainsChemistry_AUTOINIT="2(vtkDomainsChemistryOpenGL2,vtkDomainsParallelChemistry)" -DvtkFiltersCore_AUTOINIT="1(vtkFiltersParallelDIY2)" -DvtkFiltersFlowPaths_AUTOINIT="1(vtkFiltersParallelFlowPaths)" -DvtkFiltersParallel_AUTOINIT="2(vtkFiltersParallelDIY2,vtkFiltersParallelGeometry)" -DvtkIOExodus_AUTOINIT="1(vtkIOParallelExodus)" -DvtkIOExport_AUTOINIT="2(vtkIOExportOpenGL2,vtkIOExportPDF)" -DvtkIOGeometry_AUTOINIT="1(vtkIOMPIParallel)" -DvtkIOImage_AUTOINIT="1(vtkIOMPIImage)" -DvtkIOParallel_AUTOINIT="1(vtkIOMPIParallel)" -DvtkIOSQL_AUTOINIT="2(vtkIOMySQL,vtkIOPostgreSQL)" -DvtkIOXdmf3_AUTOINIT="1(vtkIOParallelXdmf3)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingFreeType_AUTOINIT="2(vtkRenderingFreeTypeFontConfig,vtkRenderingMatplotlib)" -DvtkRenderingLICOpenGL2_AUTOINIT="1(vtkRenderingParallelLIC)" -DvtkRenderingOpenGL2_AUTOINIT="1(vtkRenderingGL2PSOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -I. -Isrc -I../src -Isrc/Mod/Path/App -I/usr/include/opencascade -I/usr/include/eigen3 -I/usr/include/python3.9 -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtXml -Wall -Wextra -Wno-write-strings -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -w -O3 -DNDEBUG -fPIC -fext-numeric-literals -pthread -fPIC -std=gnu++11 -MD -MT src/Mod/Path/App/CMakeFiles/Path.dir/Area.cpp.o -MF src/Mod/Path/App/CMakeFiles/Path.dir/Area.cpp.o.d -o src/Mod/Path/App/CMakeFiles/Path.dir/Area.cpp.o -c ../src/Mod/Path/App/Area.cpp
In file included from /usr/include/boost/geometry/core/tag.hpp:23,
from /usr/include/boost/geometry/core/ring_type.hpp:28,
from /usr/include/boost/geometry/core/closure.hpp:24,
from /usr/include/boost/geometry/geometry.hpp:34,
from /usr/include/boost/geometry.hpp:17,
from ../src/Mod/Path/App/Area.cpp:38:
/usr/include/boost/geometry/util/type_traits_std.hpp:54:25: error: expected template-name before ‘<’ token
54 | : std::conditional_t<Trait::value, conjunction<Traits...>, Trait>
| ^
khumarahn commented on 2020-12-15 22:38 (UTC)
It seems, the dependency python-netcdf4 is missing.
Pinned Comments
adrianinsaval commented on 2023-03-12 14:50 (UTC)
If the check fails there is little I can do about it as it most likely needs to be fixed upstream, in such cases report those upstream (maybe wait a day or two as sometimes it's quickly solved upstream) or skip the check with
makepkg --nocheck
if you don't care about the functionality that is being reported as failing in the check.