Package Details: freecad-git 0.19.r421.gfafff351aa-1

Git Clone URL: (read-only, click to copy)
Package Base: freecad-git
Description: A general purpose 3D CAD modeler - git checkout
Upstream URL:
Licenses: LGPL
Conflicts: freecad, freecad-appimage, freecad-appimage-git
Provides: freecad
Submitter: gborzi
Maintainer: greyltc
Last Packager: greyltc
Votes: 97
Popularity: 1.26
First Submitted: 2012-03-03 13:46
Last Updated: 2021-04-08 10:34

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 ... Next › Last »

neo2001 commented on 2021-02-05 11:29

It's me again. :-) Last time it was my own fault for not completely deleting the src and pkg directories. After that everything worked fine... for a while.

But since a few days I only get this:

Ran 246 tests in 31.672s

FAILED (failures=1, errors=49)
==> ERROR: A failure occurred in check().

The build itself seems to work fine, but the tests always fail (which they didn't before).

Should I just ignore/comment them in the PKGBUILD or do I need to actually care about the result of the unit tests?

I've tried to delete everything and start fresh, I also waited a few days and tried again a few times. But it's always the same...

Example output:

ERROR: test_draft_to_sketch (drafttests.test_modification.DraftModification)
Convert a Draft object to a Sketch and back.
Traceback (most recent call last):
  File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Draft/drafttests/", line 375, in test_draft_to_sketch
    obj = Draft.make_sketch(wire, autoconstraints=True)
  File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Draft/draftmake/", line 79, in make_sketch
    from Sketcher import Constraint
  File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/", line 142, in _import
    return original_import(name, *args, **kwargs)
ImportError: /home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/lib/ undefined symbol: _ZN3App4Part15getPartOfObjectEPKNS_14DocumentObjectEb

FAIL: testExtensions (Document.DocumentBasicCases)
Traceback (most recent call last):
  File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Test/", line 248, in testExtensions
TypeError: function takes exactly 2 arguments (1 given)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Test/", line 255, in testExtensions
AssertionError: False is not true

Kunda commented on 2021-02-03 14:53

News: upstream has announced feature freeze with release for v0.19 pending next month.

greyltc commented on 2021-01-12 16:06

packages fine for me. tested with both makepkg and yay

neo2001 commented on 2021-01-12 13:40

Anyone getting this error after the build and test have finished?:

mv: cannot stat '/home/xxx/abs/aur/freecad-git/pkg/freecad-git/usr/local/freecad/share/doc': No such file or directory
==> ERROR: A failure occurred in package().

greyltc commented on 2021-01-08 20:26

I just made an update that I hope will address any outstanding issues.

malnven commented on 2021-01-08 10:43

@greyltc I suggest to remove the execution of the test suite. As it is now the PKGBUILD should be considered broken.

greyltc commented on 2020-12-30 11:56

@alhirzel, seems like you're right about that recource directory. Does anyone know how to set that at runtime?

Kunda commented on 2020-12-29 14:01

@Deewiant mentioned your observation in the FreeCAD forum:

alhirzel commented on 2020-12-26 17:49

I'm seeing a few issues in check() right now, which could be upstream. I am building on a PC where FreeCAD is not installed, and the first set of errors are like the following:

  File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/Arch/", line 34, in <module>
    with open(os.path.join(FreeCAD.getResourceDir(), "Mod", "Arch", "Presets",
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/freecad/Mod/Arch/Presets/ifc_contexts_IFC4.json'

I think it's because FreeCAD.getResourceDir() follows Application::getResourceDir which depends on RESOURCEDIR at build-time. Perhaps the tests should not use this directory or something. I'm reporting this here just in case it is due to our packaging or our invocation of the test suite. (I did not see any mention of RESOURCEDIR in the PKGBUILD.)

Second set of issues are as follows, which are filesystem-related though I struggle to see how they could be due to the PKGBULID:

ERROR: testHatchCase (TestTechDrawApp.TechDrawTestCases)
Traceback (most recent call last):
  File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/", line 53, in testHatchCase
    rc = DHatchTest()
  File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TDTest/", line 45, in DHatchTest
    hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawHatch','Hatch')
Base.FreeCADError: {'sclassname': 'N4Base15FileSystemErrorE', 'sErrMsg': 'File /tmp/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564HatchSvgHatch.svgpg7I9M does not exist.', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File /tmp/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564HatchSvgHatch.svgpg7I9M does not exist.', 'btranslatable': False, 'breported': True}

ERROR: testSectionCase (TestTechDrawApp.TechDrawTestCases)
Traceback (most recent call last):
  File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/", line 85, in testSectionCase
    rc = DVSectionTest()
  File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TDTest/", line 42, in DVSectionTest
    section = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewSection','Section')
Base.FreeCADError: {'sclassname': 'N4Base15FileSystemErrorE', 'sErrMsg': 'File /tmp/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564SectionSvgHatch.svgD7AOwM does not exist.', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File /tmp/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564SectionSvgHatch.svgD7AOwM does not exist.', 'btranslatable': False, 'breported': True}

Deewiant commented on 2020-12-23 08:22

Doesn't build with both ccache and distcc enabled. The CMakeLists.txt has some custom logic to use ccache in front of every compilation command if it's found, which combined with makepkg's logic to set up the PATH for ccache results in invocations like /usr/bin/ccache /usr/lib/ccache/bin/c++. With distcc also enabled, both the "outer" and "inner" ccache programs trigger distcc which causes it to bail out with "CRITICAL! distcc seems to have invoked itself recursively!".

This seems like FreeCAD's bug, but here's a patch:

diff --git CMakeLists.txt CMakeLists.txt
index f4dabf7657..ded1023532 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -8,11 +8,6 @@ if (POLICY CMP0072)
     cmake_policy(SET CMP0072 OLD)
 endif(POLICY CMP0072)

-find_program(CCACHE_PROGRAM ccache)  #This check should occur before project()