Package Details: freecad-linkstage3-git asm3.0.11.r8054.gaa5c706ef6-2

Git Clone URL: https://aur.archlinux.org/freecad-linkstage3-git.git (read-only, click to copy)
Package Base: freecad-linkstage3-git
Description: A general purpose 3D CAD modeler - LinkStage3 dev branch, git checkout
Upstream URL: http://www.freecadweb.org/
Licenses: LGPL
Conflicts: freecad
Submitter: Salamandar
Maintainer: Salamandar
Last Packager: Salamandar
Votes: 4
Popularity: 0.038208
First Submitted: 2018-09-21 13:54 (UTC)
Last Updated: 2022-02-06 18:54 (UTC)

Latest Comments

gkatev commented on 2022-03-31 20:55 (UTC) (edited on 2022-03-31 20:56 (UTC) by gkatev)

I had trouble updating my system, apparently due to recent changes to pyside2. Replacing the "python-pyside2" and "pyside2-tools" dependencies with "pyside2" worked for me. https://github.com/archlinux/svntogit-packages/commit/d3f6a9add1595ff612c63e7d955e288e90ed7ea3

Frangi commented on 2022-01-26 18:13 (UTC)

Hello I got issue during compilation

It ended so:

ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: freecad-linkstage3-git

There is these errors too:

FAILED: src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/MED_V2_2_Wrapper.cpp.o
/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DCSFDB -DDIY_NO_THREADS -DH5_BUILT_AS_DYNAMIC_LIB -DHAVE_CONFIG_H -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_LIMITS_H -DHAVE_RAPIDJSON -DHAVE_TBB -DHAVE_VTK -DLIN -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOCC_CONVERT_SIGNALS -DOMPI_SKIP_MPICXX -DSMESH_EXPORTS -DVTK_OPENGL2_BACKEND -D_FORTIFY_SOURCE=2 -D_MPICC_H -D_OCC64 -Dkiss_fft_scalar=double -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/build -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/build/src -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMDS -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/Driver -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/DriverUNV -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/DriverDAT -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/DriverSTL -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/StdMeshers -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/inc -I/home/vincent/.cache/yay/freecad-linkstage3-git/src/build/src/3rdParty/salomesmesh -I/usr/include/opencascade -isystem /usr/include/vtk -isystem /usr/include/freetype2 -Wall -Wextra -Wno-write-strings -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-deprecated-declarations -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -Wno-pedantic -Wno-unused-result -Wno-maybe-uninitialized -Wno-missing-field-initializers -O3 -DNDEBUG -fPIC -pthread -fopenmp -MD -MT src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/MED_V2_2_Wrapper.cpp.o -MF src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/MED_V2_2_Wrapper.cpp.o.d -o src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/MED_V2_2_Wrapper.cpp.o -c /home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMESH/MED_V2_2_Wrapper.cpp
/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMESH/MED_V2_2_Wrapper.cpp: In function ‘void MED::GetVersionRelease(MED::TInt&, MED::TInt&, MED::TInt&) [with MED::EVersion <anonymous> = MED::eV2_2; MED::TInt = int]’:
/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMESH/MED_V2_2_Wrapper.cpp:80:12: error: ‘MED_MAJOR_NUM’ was not declared in this scope
   80 |     majeur=MED_MAJOR_NUM;
      |            ^~~~~~~~~~~~~
/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMESH/MED_V2_2_Wrapper.cpp:81:12: error: ‘MED_MINOR_NUM’ was not declared in this scope
   81 |     mineur=MED_MINOR_NUM;
      |            ^~~~~~~~~~~~~
/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/src/3rdParty/salomesmesh/src/SMESH/MED_V2_2_Wrapper.cpp:82:13: error: ‘MED_RELEASE_NUM’ was not declared in this scope
   82 |     release=MED_RELEASE_NUM;
      |             ^~~~~~~~~~~~~~~

Does anyone has an idea ? Thanks

Salamandar commented on 2022-01-09 11:49 (UTC)

hmmm weird it should be installed by "recursive dependency". Anyways, I'm adding it to the dependencies once and for all :)

Bonnee commented on 2022-01-08 16:33 (UTC)

I can reproduce the CMAKE error that @jurriaan has. Installing openmpi fixes the issue

Salamandar commented on 2021-12-16 09:49 (UTC)

@s218 I think this is an upstream issue and not a packaging issue. You should report this on the github repository.

Salamandar commented on 2021-12-16 09:30 (UTC) (edited on 2021-12-16 09:30 (UTC) by Salamandar)

gkatev Weird:

  • I don't have liblas, adios2, and cgns. Yet it builds.

  • Indeed utf8cpp seems missing from the dependencies and cmake searches for it.

  • ospray, openvr aren't searched by CMake but i have them already installed. I'll look into those.

s218 commented on 2021-12-16 09:21 (UTC)

Colleagues. With outward signs of "assembly and installation = OK" there is a problem. When trying to create a new job in the Path workbench, we get an abort. Probably the reason is that Arch is already on python3.10. At any rate, the error is -

FreeCAD 0.20, Libs: 0.20R30682 (Git) © Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021 FreeCAD is free and open-source software licensed under the terms of LGPL2+ license. FreeCAD wouldn't be possible without FreeCAD community. ##### #### ### ####
# # # # # # # ## #### #### # # # # # #### # # # # # # # ##### # # # # #### #### # # # # # # # # # # # # # # ## ## ## # # #### #### ### # # #### ## ## ##

connect failed: Нет такого файла или каталога Traceback (most recent call last): File "/usr/lib/freecad/Mod/Path/PathScripts/PathJobGui.py", line 133, in attach self.axs = coin.SoType.fromName("SoAxisCrossKit").createInstance() File "/usr/lib/python3.10/site-packages/pivy/coin.py", line 491, in createInstance return _coin.SoType_createInstance(self) <class 'SystemError'>: <built-in function SoType_createInstance> returned a result with an exception set Traceback (most recent call last): File "/usr/lib/freecad/Mod/Path/PathScripts/PathJobGui.py", line 133, in attach self.axs = coin.SoType.fromName("SoAxisCrossKit").createInstance() File "/usr/lib/python3.10/site-packages/pivy/coin.py", line 491, in createInstance return _coin.SoType_createInstance(self) <class 'SystemError'>: <built-in function SoType_createInstance> returned a result with an exception set Traceback (most recent call last): File "/usr/lib/freecad/Mod/Path/PathScripts/PathJobGui.py", line 133, in attach self.axs = coin.SoType.fromName("SoAxisCrossKit").createInstance() File "/usr/lib/python3.10/site-packages/pivy/coin.py", line 491, in createInstance return _coin.SoType_createInstance(self) <class 'SystemError'>: <built-in function SoType_createInstance> returned a result with an exception set ================================== What are your opinions?

gkatev commented on 2021-12-14 19:38 (UTC)

Should these be listed as dependencies: ospray, openvr, liblas, adios2, cgns, utf8cpp? Not that I got the package to build, but adding them at least got me beyond the configuration process...

OJFord commented on 2021-11-23 17:03 (UTC)

I can replicate @s218's success with the addition of openmpi dependency:

diff --git a/PKGBUILD b/PKGBUILD
index eda43ff..c5d97d2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Salamandar <felix@piedallu.me>

 pkgname=freecad-linkstage3-git
-pkgver=asm3.0.11.r4461.ge6c5ae83e2
+pkgver=asm3.0.11.r7885.g4b40f07a7b
 pkgrel=1
 pkgdesc='A general purpose 3D CAD modeler - LinkStage3 dev branch, git checkout'
 arch=('x86_64')
@@ -14,6 +14,8 @@ depends=(
     'shared-mime-info' 'hicolor-icon-theme' 'jsoncpp' 'qt5-base' 'qt5-declarative'
     'qt5-svg' 'qt5-tools' 'qt5-x11extras' 'qt5-xmlpatterns' 'qt5-webkit' 'med' 'python-pivy'
     'python-pyside2' 'python-matplotlib' 'pyside2-tools' 'shiboken2'     
+    #
+    'openmpi'
     # 'netgen-git'
     # 'pybind11'
     # 'calculix'
@@ -38,12 +40,10 @@ optdepends=(
 )
 _gitname='FreeCAD'
 source=(
-    "git+https://github.com/realthunder/FreeCAD.git#branch=LinkStage3"
-    'patch_std_gnupp14.patch'
+    "git+https://github.com/realthunder/FreeCAD.git#branch=LinkDaily"
 )
 sha256sums=(
     'SKIP'
-    'd2a3a4c157741089c5ffbdd7c502be04414b8256081cd01208c94f2b0ed06ce3'
 )


@@ -52,11 +52,6 @@ pkgver() {
     git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/_//'
 }

-prepare() {
-    cd "${srcdir}/${_gitname}"
-    git apply < "$srcdir/patch_std_gnupp14.patch"
-}
-
 build() {
     cd "${srcdir}/${_gitname}"

Salamandar commented on 2021-11-20 09:50 (UTC) (edited on 2021-11-20 09:51 (UTC) by Salamandar)

@s218 where did he say that ? ^^ (I'm in the process of fixing the build.)

s218 commented on 2021-11-20 08:18 (UTC) (edited on 2021-11-20 11:52 (UTC) by s218)

Today Realthunder (in private email correspondence) writes - "I just updated LinkDaily, which is now merged with version 0.20. Please try again."

And then my experience is - The conclusions from here are.

  1. on line 41, replace the build branch - "git+https://github.com/realthunder/FreeCAD.git#branch=LinkDaily"

  2. on line 57, close the patch application line - #git apply < "$srcdir/patch_std_gnupp14.patch"

and the build will go fine with the updated VTK

s218 commented on 2021-11-19 21:07 (UTC)

Текущая проблема решается откатом версии vtk - The current problem is solved by rolling back the version of vtk - downgrade vtk vtk-8.2.0-21

jurriaan commented on 2021-11-12 14:50 (UTC)

To easily reproduce the vtk / missing dependency issues using docker (found this handy container: https://hub.docker.com/r/testcab/yay) you can run the following command to simulate a build on a fresh install:

$ docker run --rm -it testcab/yay bash -c 'sudo pacman -Syu -q --noconfirm && git clone https://aur.archlinux.org/freecad-linkstage3-git.git && cd freecad-linkstage3-git && makepkg -s --noconfirm && makepkg'

This gave me the following error:

CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.21/Modules/FindMPI.cmake:1748 (find_package_handle_standard_args)
  /usr/lib/cmake/vtk/vtkm/cmake/VTKmWrappers.cmake:18 (find_package)
  /usr/lib64/cmake/vtk/vtkm/VTKmConfig.cmake:173 (include)
  /usr/lib64/cmake/vtk/vtk-config.cmake:129 (find_package)
  cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:29 (find_package)
  CMakeLists.txt:59 (SetupSalomeSMESH)

This shows that at least some dependencies are missing to build successfully on a fresh install. This specific error is also related to vtk but a different subdependency, probably since I already have this MPI dependency locally installed already.

jurriaan commented on 2021-11-12 14:16 (UTC)

I've got VTK 9.1.0-2.

Just tried building the latest version of this AUR package and got this error:

CMake Error at /usr/lib64/cmake/vtk/VTK-vtk-module-find-packages.cmake:603 (find_package):
  By not providing "FindOpenVDB.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenVDB", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenVDB" with any
  of the following names:

    OpenVDBConfig.cmake
    openvdb-config.cmake

  Add the installation prefix of "OpenVDB" to CMAKE_PREFIX_PATH or set
  "OpenVDB_DIR" to a directory containing one of the above files.  If
  "OpenVDB" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  /usr/lib64/cmake/vtk/vtk-config.cmake:150 (include)
  cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:45 (find_package)
  CMakeLists.txt:59 (SetupSalomeSMESH)

While I also have installed openvdb (9.0.0-1)

Salamandar commented on 2021-11-12 14:03 (UTC)

jurriaan what's the version of the vtk package for you ?

jurriaan commented on 2021-11-12 12:59 (UTC)

I still got this issue on my up to date Arch install unfortunately

Salamandar commented on 2021-11-12 11:30 (UTC)

Frangi jurriaan is it already fixed ? I have no issue on my end…

jurriaan commented on 2021-11-12 10:30 (UTC)

Frangi's issue is probably related to the issue described in the comments here: https://bugs.archlinux.org/task/72570

Frangi commented on 2021-11-10 17:54 (UTC)

Hello, I'm getting this issue during the build:

-- Could NOT find utf8cpp (missing: utf8cpp_INCLUDE_DIR)
-- VTK components: not found or used
CMake Error at /usr/lib64/cmake/vtk/VTK-vtk-module-find-packages.cmake:209 (find_package):
  By not providing "Findospray.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ospray", but
  CMake did not find one.

  Could not find a package configuration file provided by "ospray" (requested
  version 2.1) with any of the following names:

    osprayConfig.cmake
    ospray-config.cmake

  Add the installation prefix of "ospray" to CMAKE_PREFIX_PATH or set
  "ospray_DIR" to a directory containing one of the above files.  If "ospray"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /usr/lib64/cmake/vtk/vtk-config.cmake:150 (include)
  cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:45 (find_package)
  CMakeLists.txt:59 (SetupSalomeSMESH)


-- Configuring incomplete, errors occurred!
See also "/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/build/CMakeFiles/CMakeOutput.log".
See also "/home/vincent/.cache/yay/freecad-linkstage3-git/src/FreeCAD/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: freecad-linkstage3-git

Does someone have an idea ?

loki1725 commented on 2021-05-01 18:06 (UTC)

I'm getting a linking error in xerces-c. I've updated everything a few times just to make sure. The relevant bits of the build log are below.

[1788/4113] Linking CXX executable bin/FreeCADCmd FAILED: bin/FreeCADCmd : && /usr/bin/c++ -Wall -Wextra -Wno-write-strings -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-deprecated-declarations -O3 -DNDEBUG -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now src/Main/CMakeFiles/FreeCADMainCmd.dir/MainCmd.cpp.o -o bin/FreeCADCmd -L/usr/lib/openmpi -Wl,-rpath,/usr/lib/openmpi:/home/loki/Downloads/AUR/freecad-linkstage3-git/src/FreeCAD/build/lib:/home/loki/Downloads/home/loki/workspace/anaconda3/lib: -lmpi_cxx -lmpi lib/libFreeCADApp.so /home/loki/Downloads/home/loki/workspace/anaconda3/lib/libQt5Xml.so.5.9.7 lib/libFreeCADBase.so -lmpi_cxx -lmpi /home/loki/Downloads/home/loki/workspace/anaconda3/lib/libQt5Core.so.5.9.7 /usr/lib/libxerces-c.so /usr/lib/libz.so /usr/lib/libpython3.9.so -lutil -ldl /usr/lib/libboost_filesystem.so.1.75.0 /usr/lib/libboost_program_options.so.1.75.0 /usr/lib/libboost_regex.so.1.75.0 -licudata -licui18n -licuuc /usr/lib/libboost_system.so.1.75.0 /usr/lib/libboost_thread.so.1.75.0 -lpthread -lpthread && : /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_global_cleanup@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_easy_getinfo@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_multi_cleanup@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_multi_perform@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_global_init@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_easy_init@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_multi_add_handle@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_multi_remove_handle@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_multi_info_read@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_slist_free_all@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_easy_setopt@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_multi_fdset@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_slist_append@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_easy_cleanup@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference to curl_multi_init@CURL_OPENSSL_4' /usr/bin/ld: /usr/lib/libxerces-c.so: undefined reference tocurl_multi_timeout@CURL_OPENSSL_4' collect2: error: ld returned 1 exit status

r00tr4t commented on 2021-04-01 00:36 (UTC)

@salamandar Yea, freecad-linkstage3-stable-git should replace this package, and freecad-linkstage3-daily-git could be a new package for newer builds. Thanks!

Salamandar commented on 2021-03-29 12:28 (UTC) (edited on 2021-03-29 12:29 (UTC) by Salamandar)

Thanks for the heads up @s218. I think we need 2 packages :

  • freecad-linkstage3-stable-git
  • freecad-linkstage3-daily-git, replacing this package.

Do you agree with this change ?

EDIT: I think it's a better idea that stable replaces this current package, to switch the users of the current package on a more stable branch..

s218 commented on 2021-03-29 09:05 (UTC)

realthunder has made a new Daily branch - https://github.com/realthunder/FreeCAD_assembly3/releases/tag/0.11 it makes sense to make a package for it.

r00tr4t commented on 2021-02-09 11:34 (UTC)

@salamandar. Gloriously. It works. Thanks again.

Salamandar commented on 2021-02-08 11:22 (UTC)

Things should be fixed !

r00tr4t commented on 2021-02-06 21:51 (UTC)

@salamandar. Thank you for your hard work. =)

Salamandar commented on 2021-02-04 11:15 (UTC)

I got a build issue without this patch, I reported it upstream : https://github.com/realthunder/FreeCAD/issues/99

Salamandar commented on 2021-02-04 08:13 (UTC)

I'm trying to build Freecad without that local patch. Maybe this patch is not necessary anymore.

r00tr4t commented on 2021-01-24 23:40 (UTC)

@DarwinSurvivor I got the same error as you did. CommandPrimitive.cpp: patch does not apply

DarwinSurvivor commented on 2021-01-23 21:27 (UTC)

==> Starting prepare()...
error: patch failed: src/Mod/PartDesign/Gui/Command.cpp:377
error: src/Mod/PartDesign/Gui/Command.cpp: patch does not apply
error: patch failed: src/Mod/PartDesign/Gui/CommandPrimitive.cpp:85
error: src/Mod/PartDesign/Gui/CommandPrimitive.cpp: patch does not apply

The patches have been applied upstream and their inclusion now breaks the build.

Unfortunately the build still fails later in the compile with pages of compile errors too long to include here.

r00tr4t commented on 2021-01-13 19:38 (UTC)

@arvx. Yes, I run Arch. :P

arvx commented on 2021-01-13 16:55 (UTC)

@r00tr4t, not sure why there is no CMakeError.log. The CMakeOutput.log file doesn't show any hints at finding errors or warnings either.

You are using Arch, right?

r00tr4t commented on 2021-01-09 21:58 (UTC) (edited on 2021-01-10 10:15 (UTC) by r00tr4t)

Confirmed I added the -pthread to the CFLAGS and it passed the test but then if failed. I got the same results as @arvx

-- Configuring incomplete, errors occurred!
See also "FreeCAD/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

Why is there no CMakeError.log file?

Complete log: http://ix.io/2LtC

Edit: Forgot to add the -DTHREADS_PREFER_PTHREAD_FLAG=ON but it seemed work without that parameter.

arvx commented on 2021-01-05 19:02 (UTC)

@Salamandar, in the PKGBUILD I added -pthread to the flags

    export CFLAGS="$CFLAGS -Wno-deprecated-declarations -pthread"
    export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations -pthread"

And added -DTHREADS_PREFER_PTHREAD_FLAG=ON to cmake parameters.

Now the check on pthread passes (checking in CMakeOutput.log)

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD succeeded with the following output:

However, makepkg still fails with cmake but it doesn't generate a CMakeError.log:

-- Configuring incomplete, errors occurred!
See also "/tmp/makepkg/freecad-linkstage3-git/src/FreeCAD/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

Any idea where I could look for errors at this point if I don't have a CMakeError.log file?

arvx commented on 2021-01-05 16:45 (UTC)

Thanks for double checking. Must be an edge case on my system and that of r00tr4t as well. I'll try to figure it out and report back with my findings.

Salamandar commented on 2021-01-05 16:39 (UTC)

Still no issue on a clean archlinux docker image with only the freecad dependencies installed… I really don't know where your issues come from :(

Salamandar commented on 2021-01-05 16:02 (UTC)

OK, well… I'm popping an archlinux container (i'm on manjaro atm), it's building for now… 2300/4062, no error yet

arvx commented on 2021-01-05 14:39 (UTC)

@Salamandar, just tested and I still see the pthreads errors. I'll try to debug later and see if I can find the root cause. Didn't get any issue with boost libraries on my end.

Salamandar commented on 2021-01-05 12:55 (UTC)

@arvx @r00tr4t can you test ?

Salamandar commented on 2021-01-04 15:51 (UTC)

I pushed 2 patches for the last boost update, it should be fixed upstream "someday".

I don't have the pthread issue here, I don't know where that could come from.

Salamandar commented on 2021-01-04 12:27 (UTC)

For now I get errors with the new Boost version (1.75) requiring c++14, where Freecad builds with -std=gnu++11.

Salamandar commented on 2021-01-04 11:03 (UTC)

I'm testing this. I don't really know where that could come from.

arvx commented on 2021-01-03 07:27 (UTC)

On Majaro, I'm getting the same error as r00tr4t. CMake is failing:

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /tmp/makepkg/freecad-linkstage3-git/src/FreeCAD/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/ninja cmTC_f733f && [1/2] Building C object CMakeFiles/cmTC_f733f.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_f733f
FAILED: cmTC_f733f 
: && /bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create  CMakeFiles/cmTC_f733f.dir/CheckFunctionExists.c.o -o cmTC_f733f  -lpthreads && :
/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Somehow ld is looking for pthreads instead of pthread. Created a simple CMakeLists.txt with

cmake_minimum_required(VERSION 2.8.7)
find_package(Threads)

and the output is

-- 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
-- Configuring done
-- Generating done

r00tr4t commented on 2020-12-30 19:06 (UTC)

I got some errors while trying to install this package. https://forum.freecadweb.org/viewtopic.php?f=4&t=53768&p=462370#p462370

Salamandar commented on 2020-12-15 09:18 (UTC) (edited on 2020-12-15 10:04 (UTC) by Salamandar)

This package now works correctly (at least on my Manjaro). Sorry for the delay.

Freecad still doesn't install desktop file and pixmaps at the right place, but that's under discussion upstream : https://forum.freecadweb.org/viewtopic.php?f=10&t=47159&sid=c5703be3aace9897b2e652af1fcccd7a&start=10

s218 commented on 2020-12-12 08:21 (UTC) (edited on 2020-12-12 08:28 (UTC) by s218)

There was a major Python update this month, and the developer is not using Arch. I informed him about the bug, but so far there is no solution. Please take a look for yourself https://github.com/realthunder/FreeCAD/commits/LinkStage3

I noticed the Python update and didn't update it. So far everything compiles fine, last build was on 2020-12-11. And I got tired of fixing the downloadable PKGBUILD manually, so I saved myself a local version and build with the locally stored PKGBUILD.

r00tr4t commented on 2020-12-12 02:16 (UTC) (edited on 2020-12-12 02:17 (UTC) by r00tr4t)

Tried to build it but got: Run Build Command(s):/bin/ninja cmTC_092f8 && [1/2] Building C object CMakeFiles/cmTC_092f8.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_092f8 FAILED: cmTC_092f8 : && /bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now CMakeFiles/cmTC_092f8.dir/CheckFunctionExists.c.o -o cmTC_092f8 -lpthreads && : /bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Will try to fix that to morrow, now I need sleep.

s218 commented on 2020-11-26 13:29 (UTC)

Yes, if you delete the last lines, the package works.

see. 2020-10-15 15:56

Kunda commented on 2020-11-26 13:20 (UTC)

Does this package still work?

doragasu commented on 2020-11-23 16:00 (UTC)

This is missing the dependency with qt5-xmlpatterns.

s218 commented on 2020-10-15 15:56 (UTC)

Уже более года компиляция и установка прерываются на финишной стадии - при копировании файлов desktop. Для решения проблемы необходимо перед сборкой отредактировать PKGBUILD, удалив из него строки -

For over a year now, the compilation and installation has been interrupted at the finish line, when copying the desktop files. To solve the problem, you need to edit the PKGBUILD before building by deleting the lines from it -

# Install pixmaps and desktop shortcut desktop-file-install \ --dir="${pkgdir}/usr/share/applications" \ "${srcdir}/${pkgname}.desktop" for i in 16 32 48 64; do install -Dm644 "src/Gui/Icons/freecad-icon-${i}.png" \ "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/freecad.png" done install -Dm644 "src/Gui/Icons/freecad.svg" \ "${pkgdir}/usr/share/icons/hicolor/scalable/apps/freecad.svg"

# Mime info install -D -m644 "${srcdir}/freecad.xml" "${pkgdir}/usr/share/mime/packages/freecad.xml"

hugo.hornquist commented on 2020-05-15 16:20 (UTC)

Patch which fixes installation problems.

From 2a207d925bae5adba72a7b97c2494b500f5944b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Fri, 15 May 2020 18:19:25 +0200
Subject: [PATCH] Fix icon source, add missing auxiliary files.

---
 .gitignore                         |  3 +++
 PKGBUILD                           |  6 +++---
 src/freecad-linkstage3-git.desktop | 14 ++++++++++++++
 src/freecad.xml                    |  9 +++++++++
 4 files changed, 29 insertions(+), 3 deletions(-)
 create mode 100644 src/freecad-linkstage3-git.desktop
 create mode 100644 src/freecad.xml

diff --git a/.gitignore b/.gitignore
index 61c4a9b..77aef83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,6 @@
 !PKGBUILD
 !.SRCINFO
 !temporary_fixes.patch
+!src
+!src/*
+src/FreeCAD
diff --git a/PKGBUILD b/PKGBUILD
index ddfcf94..5647cc9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Salamandar <felix@piedallu.me>

 pkgname=freecad-linkstage3-git
-pkgver=asm3.0.9.1.r44.gf670d46f2
+pkgver=asm3.0.11.r445.gebd99b956
 pkgrel=1
 pkgdesc='A general purpose 3D CAD modeler - LinkStage3 dev branch, git checkout'
 arch=('x86_64')
@@ -103,10 +103,10 @@ package() {
       --dir="${pkgdir}/usr/share/applications" \
       "${srcdir}/${pkgname}.desktop"
   for i in 16 32 48 64; do
-      install -Dm644 "src/Gui/Icons/freecad-icon-${i}.png" \
+      install -Dm644 "${srcdir}/${_gitname}/src/Gui/Icons/freecad-icon-${i}.png" \
           "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/freecad.png"
   done
-  install -Dm644 "src/Gui/Icons/freecad.svg" \
+  install -Dm644 "${srcdir}/${_gitname}/src/Gui/Icons/freecad.svg" \
       "${pkgdir}/usr/share/icons/hicolor/scalable/apps/freecad.svg"

   # Mime info
diff --git a/src/freecad-linkstage3-git.desktop b/src/freecad-linkstage3-git.desktop
new file mode 100644
index 0000000..af8376d
--- /dev/null
+++ b/src/freecad-linkstage3-git.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Comment=A general purpose 3D CAD modeler
+GenericName=CAD Application
+Exec=/usr/bin/freecad %F
+Path=/usr/share/freecad
+Terminal=false
+Type=Application
+Icon=freecad
+Categories=Application;Science;Math;Education;
+StartupNotify=true
+MimeType=application/x-extension-fcstd;
diff --git a/src/freecad.xml b/src/freecad.xml
new file mode 100644
index 0000000..f163c28
--- /dev/null
+++ b/src/freecad.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+   <mime-type type="application/x-extension-fcstd">
+       <sub-class-of type="application/zip"/>
+       <comment>FreeCAD document</comment>
+       <glob pattern="*.fcstd"/>
+       <icon name="freecad"/>
+   </mime-type>
+</mime-info>
-- 
2.26.2

s218 commented on 2019-11-23 16:32 (UTC)

He's not going to. Whatever you try. The process is interrupted at the stage of compilation. ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp: In the "void SMESH_MeshEditor::InsertNodesIntoLink(const SMDS_MeshElement, const SMDS_MeshNode, const SMDS_MeshNode, std::__cxxx11::list<const SMDS_MeshNode*>&, bool)" member function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:9039:5: Warning: "iBestQuad" may be used without initialization in this function [-Wmaybe-uninitialized] == sync, corrected by elderman == for | == sync, corrected by elderman == for | == for | == for | == for | == for | == for | | ^~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp: In the "SMESH_MeshEditor::Sew_Error SMESH_MeshEditor::SewFreeBorder(const SMDS_MeshNode, const SMDS_MeshNode, const SMDS_MeshNode, const SMDS_MeshNode, const SMDS_MeshNode, const SMDS_MeshNode, const SMDS_MeshNode, bool, bool, bool)" function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:8436:13: Warning: "iPrevNode" may be used without initialization in this function [-Wmaybe-uninitialized] 8436 | int iPrevNode, iNode = 0, nbNodes = elem->NbNodes(); | ^~~~~~~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp: In the "void SMESH_MeshEditor::DoubleElements(const TIDSortedElemSet&)" member function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:10619:23: Warning: "type" may be used without initialization in this function [-Wmaybe-uninitialized] == sync, corrected by elderman == sync, corrected by elderman == for | == for | == sync, corrected by elderman == for | == for | == for | == for | == for | == for | == for | == for | == for | == for | == for | == for |== for | == for== for== for== for== for== sync, == for== for== sync, == for== for== sync, == for== for== for== sync, == for== for== for== sync, == for== for== sync, == for== for== sync, == for== for== for== sync, == for== for== sync, == for== for== sync, == for== for== == for== sync, == for== for== | ^~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH/SMESH_MeshEditor.cpp: In the "bool SMESH_MeshEditor::TriToQuad(TIDSortedElemSet&, SMESH::Controls::NumericalFunctorPtr, double)" function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:3331:21: Warning: "link13" may be used without initialization in this function [-Wmaybe-uninitialized] 3331 | linkNode2 = link13->second; | ~~~~~~~~~~^~~~~~~~~~~~~~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:3325:21: warning: "link12" may be used without initialization in this function [-Wmaybe-uninitialized] 3325 | linkNode2 = link12->second; | ~~~~~~~~~~^~~~~~~~~~~~~~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp: In the "void SMESH_MeshEditor::QuadTo4Tri(TIDSortedElemSet&)" member function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:1604:35: warning: "subMeshDS" may be used without initialization in this function [-Wmaybe-uninitialized] 1604 | GetMeshDS()->RemoveFreeElement( quad, subMeshDS, /fromGroups=/false ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp: In the "void SMESH_MeshEditor::Smooth(TIDSortedElemSet&, std::set<const SMDS_MeshNode*>&, SMESH_MeshEditor::SmoothMethod, int, double, bool)" function: ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:4161:25: warning: "v" may be used without initialization in this function [-Wmaybe-uninitialized] 4161 | newUV.SetY( ElCLib::InPeriod( newUV.Y(), v1, v2 )); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp:4159:25: warning: "u" may be used without initialization in this function [-Wmaybe-uninitialized] 4159 | newUV.SetX( ElCLib::InPeriod( newUV.X(), u1, u2 )); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. ==> Error: There has been a failure in build(). Interruption... ==> Error: Makepkg failed to build freecad-linkstage3-git.

remspoor commented on 2019-05-18 16:56 (UTC) (edited on 2019-05-18 17:31 (UTC) by remspoor)

I get this error.

Error on file "/tmp/yay/freecad-linkstage3-git/src/freecad-linkstage3-git.desktop": No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
Error making: freecad-linkstage3-git

But even after copying 'freecad.desktop' and 'freecad.xml' from the original package, i get this:

install: cannot stat 'src/Gui/Icons/freecad-icon-16.png': No such file or directory

Which can be resolved by adding this '${srcdir}/${_gitname}/' at the 2 install lines

Salamandar commented on 2018-10-17 09:23 (UTC)

I'm on it today, expect a new revision.

kristaba commented on 2018-10-16 15:46 (UTC)

There is another issue with this package, related to the location of .so files. It causes all native modules (the starting GUI, Part workbench...) to fail, with an import error visible in the console.

I am not sure of the quality of my fix, but succeeded to have it to work by changing the following in PKGBUILD (build function):

    -DBUILD_QT5=ON \
    -DCMAKE_INSTALL_PREFIX='/usr/lib/freecad' \
-   -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+   -DCMAKE_INSTALL_LIBDIR='/usr/lib/freecad/lib' \
    -DCMAKE_INSTALL_DOCDIR='/usr/share/freecad/doc' \
    -DCMAKE_INSTALL_DATADIR='/usr/share/freecad' \

kristaba commented on 2018-10-16 15:40 (UTC) (edited on 2018-10-16 15:41 (UTC) by kristaba)

@vollassitoni69 I ran into this issue today, it is caused by one of the provided patches in the AUR being already fixed upstream. A temporary fix would be either to remove the part concerning the CMakeLists.txt in the file temporary_fixes.patch.

Another possible (dirty) fix is to edit the PKGBUILD, by replacing (currently at line 85):

    patch -Np1 -i "${srcdir}/temporary_fixes.patch"

by something like

    patch -Np1 -i "${srcdir}/temporary_fixes.patch" || echo patch failure ignored

vollassitoni69 commented on 2018-10-15 22:10 (UTC)

Hi, I'm having some trouble building this when installing freecad-assembly3-git:

==> Starting prepare()...
patching file CMakeLists.txt
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CMakeLists.txt.rej
patching file src/Gui/View3DInventorViewer.cpp
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: freecad-linkstage3-git

The contents of ~/.cache/yay/freecad_linkstage3_git/src/FreeCad/CMakeLists.txt.rej are

--- CMakeLists.txt
+++ CMakeLists.txt
@@ -734,7 +734,7 @@ endif()
                 add_compile_options(${OPENMPI_CFLAGS})
                 link_directories(${OPENMPI_LIBRARY_DIRS})
                 link_libraries(${OPENMPI_LIBRARIES})
-                find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} NO_DEFAULT_PATH)
+                find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS})
                 if(NOT MpidotH)
                     message( WARNING "mpi.h was not found. Check for error above.")
                 endif()

Sorry if this is not very helpful, I'm pretty new to the Linux world :) Thanks!

Salamandar commented on 2018-09-21 14:46 (UTC)

This package is still a WIP ;) It shouldn't ask for phonon-qt4, or maybe through dependencies…

Kunda commented on 2018-09-21 14:28 (UTC)

I'm trying to track down why the install is asking for phonon-qt4 and not phonon-qt5 ?