GNU bug report logs - #43448
FreeCAD fails to compile

Previous Next

Package: guix;

Reported by: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>

Date: Wed, 16 Sep 2020 11:59:01 UTC

Severity: normal

Merged with 44098

Done: John Soo <jsoo1 <at> asu.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43448 in the body.
You can then email your comments to 43448 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Wed, 16 Sep 2020 11:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 16 Sep 2020 11:59:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: FreeCAD fails to compile
Date: Wed, 16 Sep 2020 13:58:42 +0200
[Message part 1 (text/plain, inline)]
Hi,

it seems that FreeCAD fails to compile because it can't find the mpi
library even though it's in the inputs. Same is true for
python-pyside-2, python-pyside-2-tools and python-shiboken-2.

--8<---------------cut here---------------start------------->8---
====================
shiboken2 not found.
====================

==================
PySide2 not found.
==================

=======================
PySide2Tools not found.
=======================
--8<---------------cut here---------------end--------------->8---

MPI just generates a warning

--8<---------------cut here---------------start------------->8---
-- Checking for one of the modules 'ompi-cxx'
CMake Warning at CMakeLists.txt:745 (message):
  mpi.h was not found.  Check for error above.
--8<---------------cut here---------------end--------------->8---

but the build fails with no direct error message (i didn't find one),
and tried to link against mpi (that's why i'm guessing it has something
to do with it).

Full build log is attached.

[hxq9kbjxdzn4h47dx1d2cj5plm0cxc-freecad-0.18.4.drv.bz2 (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
Malte

Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Mon, 05 Oct 2020 17:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
Cc: 43448 <at> debbugs.gnu.org
Subject: Re: bug#43448: FreeCAD fails to compile
Date: Mon, 05 Oct 2020 19:22:02 +0200
Dear,

On Wed, 16 Sep 2020 at 13:58, Malte Frank Gerdes <malte.f.gerdes <at> gmail.com> wrote:

> it seems that FreeCAD fails to compile because it can't find the mpi
> library even though it's in the inputs. Same is true for
> python-pyside-2, python-pyside-2-tools and python-shiboken-2.

[...]

> MPI just generates a warning
>
> -- Checking for one of the modules 'ompi-cxx'
> CMake Warning at CMakeLists.txt:745 (message):
>   mpi.h was not found.  Check for error above.
>
> but the build fails with no direct error message (i didn't find one),
> and tried to link against mpi (that's why i'm guessing it has something
> to do with it).

Thank you for your feedback and pointing this out.

From the Guix Data Service [1], something wrong is happening to
FreeCAD.  The last substituable FreeCAD v1.8.0 is given by the commit
9bc516bada71e1437d73971584bff5e72e053dbe:

   guix time-machine –commit=9bc516bada71e1437d73971584bff5e72e053dbe \
        -- weather freecad

All the best,
simon

[1] <https://data.guix.gnu.org/repository/1/branch/master/package/freecad/output-history>




Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Tue, 20 Oct 2020 17:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
To: 43448 <at> debbugs.gnu.org
Cc: zimon.toutoune <at> gmail.com
Subject: bug#43448: FreeCAD fails to compile
Date: Tue, 20 Oct 2020 19:09:27 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> Dear,
>
> On Wed, 16 Sep 2020 at 13:58, Malte Frank Gerdes <malte.f.gerdes <at> gmail.com> wrote:
>
>> it seems that FreeCAD fails to compile because it can't find the mpi
>> library even though it's in the inputs. Same is true for
>> python-pyside-2, python-pyside-2-tools and python-shiboken-2.
>
> [...]
>
>> MPI just generates a warning
>>
>> -- Checking for one of the modules 'ompi-cxx'
>> CMake Warning at CMakeLists.txt:745 (message):
>>   mpi.h was not found.  Check for error above.
>>
>> but the build fails with no direct error message (i didn't find one),
>> and tried to link against mpi (that's why i'm guessing it has something
>> to do with it).
>
> Thank you for your feedback and pointing this out.
>
>>From the Guix Data Service [1], something wrong is happening to
> FreeCAD.  The last substituable FreeCAD v1.8.0 is given by the commit
> 9bc516bada71e1437d73971584bff5e72e053dbe:
>
>    guix time-machine –commit=9bc516bada71e1437d73971584bff5e72e053dbe \
>         -- weather freecad
>
> All the best,
> simon
>
> [1] <https://data.guix.gnu.org/repository/1/branch/master/package/freecad/output-history>

Many apologies, i completely missed your answer! :/

The same thing got reported as #44098, is it possible to merge those
issues?

I'm currently looking into the freecad source to find out what's
happening.


Malte




Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Tue, 20 Oct 2020 17:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
Cc: 43448 <at> debbugs.gnu.org
Subject: Re: bug#43448: FreeCAD fails to compile
Date: Tue, 20 Oct 2020 19:17:54 +0200
Dear,

On Tue, 20 Oct 2020 at 19:09, Malte Frank Gerdes
<malte.f.gerdes <at> gmail.com> wrote:

> Many apologies, i completely missed your answer! :/

Hum? 4 days do seem not missed. :-D


> The same thing got reported as #44098, is it possible to merge those
> issues?

Please give a look at:

    <https://debbugs.gnu.org/server-control.html>

Basically, you need to send to <control <at> debbugs.gnu.org> the message containing:

merge 43448 44098
thanks

(I never know if the order matters even if the doc says "reflexive,
transitive and symmetric". :-))

All the best,
simon




Merged 43448 44098. Request was from Malte Frank Gerdes <malte.f.gerdes <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 20 Oct 2020 17:30:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Tue, 20 Oct 2020 17:31:01 GMT) Full text and rfc822 format available.

Message #19 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
To: 43448 <at> debbugs.gnu.org
Cc: zimon.toutoune <at> gmail.com
Subject: Re: bug#43448: FreeCAD fails to compile
Date: Tue, 20 Oct 2020 19:30:26 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> Dear,
>
> On Tue, 20 Oct 2020 at 19:09, Malte Frank Gerdes
> <malte.f.gerdes <at> gmail.com> wrote:
>
>> Many apologies, i completely missed your answer! :/
>
> Hum? 4 days do seem not missed. :-D
Ehhm, you're right i haven't noticed the date. It just feels like it was
a long long itme ago :-P


>> The same thing got reported as #44098, is it possible to merge those
>> issues?
>
> Please give a look at:
>
>     <https://debbugs.gnu.org/server-control.html>
>
> Basically, you need to send to <control <at> debbugs.gnu.org> the message containing:
>
> merge 43448 44098
> thanks
>
> (I never know if the order matters even if the doc says "reflexive,
> transitive and symmetric". :-))
Then let's see if it works :-)


> All the best,
> simon


Malte




Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Tue, 20 Oct 2020 20:32:01 GMT) Full text and rfc822 format available.

Message #22 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
To: 43448 <at> debbugs.gnu.org
Subject: Re: bug#43448: FreeCAD fails to compile
Date: Tue, 20 Oct 2020 22:31:17 +0200
[Message part 1 (text/plain, inline)]
This patch defines the include paths for shiboken2, pyside2 and includes
the locations of the pyside2-tools binaries.

There's now another error:

--8<---------------cut here---------------start------------->8---
[ 69%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o
cd /tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui && /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/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 -DBUILD_ADDONMGR -DCMAKE_BUILD_TYPE=\"RelWithDebInfo\" -DFreeCADGui_EXPORTS -DHAVE_CONFIG_H -DHAVE_PYSIDE2 -DHAVE_SHIBOKEN2 -DHAVE_TBB -DOCC_CONVERT_SIGNALS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DSPNAV_FOUND -D_OCC64 -I/tmp/guix-build-freecad-0.18.4.drv-0/build -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/Quarter -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/.. -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/.. -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/Language -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/propertyeditor -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/TaskView -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/Quarter -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/DAGView -I/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/include/eigen3 -I/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/include/python3.8 -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtCore -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtGui -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtWidgets -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5 -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtCore -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/lib/qt5/mkspecs/linux-g++ -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtWidgets -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtGui -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtOpenGL -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtPrintSupport -isystem /gnu/store/kvn3ip3aziw15yn2jv6ka7s1x1v2y7p4-qtsvg-5.14.2/include/qt5 -isystem /gnu/store/kvn3ip3aziw15yn2jv6ka7s1x1v2y7p4-qtsvg-5.14.2/include/qt5/QtSvg -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtNetwork -isystem /gnu/store/yqrjvsn778ydl6pc1p463alljhczxw8i-qttools-5.14.2/include/qt5 -isystem /gnu/store/yqrjvsn778ydl6pc1p463alljhczxw8i-qttools-5.14.2/include/qt5/QtUiTools -isystem /gnu/store/wajjrym3vyidi21zjcs6r8ad9xgxfj3k-qtx11extras-5.14.2/include/qt5 -isystem /gnu/store/wajjrym3vyidi21zjcs6r8ad9xgxfj3k-qtx11extras-5.14.2/include/qt5/QtX11Extras -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtXml  -Wall -Wextra -Wno-write-strings  -std=c++11 -D_OCC64 -O2 -g -DNDEBUG -fPIC   -pthread -fPIC -o CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o -c /tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/WidgetFactory.cpp
/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/WidgetFactory.cpp:79:11: fatal error: basewrapper.h: No such file or directory
 # include <basewrapper.h>
           ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/build.make:4659: src/Gui/CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o] Error 1
make -f src/Mod/Inspection/App/CMakeFiles/Inspection.dir/build.make src/Mod/Inspection/App/CMakeFiles/Inspection.dir/depend
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/tmp/guix-build-freecad-0.18.4.drv-0/build'
--8<---------------cut here---------------end--------------->8---

This is what needs to be looked into next.


Malte

[freecad-add-include-dirs.patch (text/x-patch, inline)]
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2a7dfe470f..3c1f6a98f3 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2481,7 +2481,19 @@ full programmatic control over your models.")
        (list
         "-DBUILD_QT5=ON"
         (string-append "-DCMAKE_INSTALL_LIBDIR="
-                       (assoc-ref %outputs "out") "/lib"))
+                       (assoc-ref %outputs "out") "/lib")
+        (string-append "-DPYSIDE2UICBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/uic")
+        (string-append "-DPYSIDE2RCCBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/rcc")
+        (string-append "-DPYSIDE_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-pyside-2")
+                       "/include")
+        (string-append "-DSHIBOKEN_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-shiboken-2")
+                       "/include"))
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'restore-pythonpath

Reply sent to John Soo <jsoo1 <at> asu.edu>:
You have taken responsibility. (Fri, 13 Nov 2020 16:13:01 GMT) Full text and rfc822 format available.

Notification sent to Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>:
bug acknowledged by developer. (Fri, 13 Nov 2020 16:13:01 GMT) Full text and rfc822 format available.

Message #27 received at 43448-done <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: 43448-done <at> debbugs.gnu.org
Subject: Closed by 41170
Date: Fri, 13 Nov 2020 08:12:28 -0800



Reply sent to John Soo <jsoo1 <at> asu.edu>:
You have taken responsibility. (Fri, 13 Nov 2020 16:13:02 GMT) Full text and rfc822 format available.

Notification sent to Ekaitz Zarraga <ekaitz <at> elenq.tech>:
bug acknowledged by developer. (Fri, 13 Nov 2020 16:13:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sat, 05 Dec 2020 15:19:02 GMT) Full text and rfc822 format available.

Message #35 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: "43448 <at> debbugs.gnu.org" <43448 <at> debbugs.gnu.org>,
 "guix-devel\\@gnu.org" <guix-devel <at> gnu.org>
Subject: FreeCAD fails to compile
Date: Sat, 05 Dec 2020 15:17:57 +0000
Hi,

I solved most of the compilation issue with freecad.

Now my package version compiles but install phase fails with this error:


```                                                                                                                                                                                             CMake Error at src/3rdParty/salomesmesh/cmake_install.cmake:41 (if):                                                                                                                             if given arguments:                                                                                                                                                                                                                                                                                                                                                                             "EXISTS" "/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/" "/gnu/store/injf0n8qja607qswa5cyxz1dpzqia21p-freecad-mine-0.18.5/lib\"/libSMDS.so\"" "AND" "NOT" "IS_SYMLINK" "/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/" "/gnu/store/injf0n8qja607qswa5cyxz1dpzqia21p-freecad-mine-0.18.5/lib\"/libSMDS.so\""                                                                                                                                                                                                                                                                          Unknown arguments specified                                                                                                                                                                  Call Stack (most recent call first):                                                                                                                                                             src/3rdParty/cmake_install.cmake:42 (include)                                                                                                                                                  src/cmake_install.cmake:43 (include)                                                                                                                                                           cmake_install.cmake:46 (include)
```


Did anyone see something like this before?

Right now I have no idea how to tackle this but I'll keep researching.

If anyone wants to be able to reach this point, the only changes I applied to the project are configure-flags suggested in this bug report with some extra more because the header files were not found in subdirectories. These are the configure flags I added (mostly copied from Nix package[^nix]):

```
(list
         "-DBUILD_QT5=ON"
         (string-append "-DCMAKE_INSTALL_LIBDIR=\"" (assoc-ref %outputs "out") "/lib\"")

         (string-append "-DPYSIDE2UICBINARY="
                        (assoc-ref %build-inputs "python-pyside-2-tools")
                        "/bin/uic")
         (string-append "-DPYSIDE2RCCBINARY="
                        (assoc-ref %build-inputs "python-pyside-2-tools")
                        "/bin/rcc")

         "-DPYSIDE_LIBRARY=PySide2::pyside2"
         (string-append "-DPYSIDE_INCLUDE_DIR="
                        (assoc-ref %build-inputs "python-pyside-2") "/include;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtCore;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtWidgets;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtGui;")

         "-DSHIBOKEN_LIBRARY=Shiboken2::libshiboken"
         (string-append "-DSHIBOKEN_INCLUDE_DIR="
                        (assoc-ref %build-inputs "python-shiboken-2")
                        "/include/shiboken2"))
```


I hope we can have something working soon!



Cheers,
Ekaitz



[^nix]: https://github.com/NixOS/nixpkgs/blob/7caa81d8a23f0278e868adf9054ec5409cd81f93/pkgs/applications/graphics/freecad/default.nix





Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sat, 05 Dec 2020 16:51:02 GMT) Full text and rfc822 format available.

Message #38 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: "guix-devel\\@gnu.org" <guix-devel <at> gnu.org>,
 "43448 <at> debbugs.gnu.org" <43448 <at> debbugs.gnu.org>
Subject: Re: FreeCAD fails to compile
Date: Sat, 05 Dec 2020 16:50:42 +0000
Looks like this line, inherited from the previous definition, was giving some trouble:

>              (string-append "-DCMAKE_INSTALL_LIBDIR=\\"" (assoc-ref %outputs "out") "/lib\\"")


It was creating wrong variables (and wrong syntax too!):


  if(EXISTS "$ENV{DESTDIR}/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/"/gnu/store/30rcpcdv7h6ak37wf30ijlbf9x2j6jyz-freecad-mine-0.18.5/lib"/libSMDS.so" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/"/gnu/store/30rcpcdv7h6ak37wf30ijlbf9x2j6jyz-freecad-mine-0.18.5/lib"/libSMDS.so")


I think I'll manage to solve this myself.




Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sat, 05 Dec 2020 16:56:02 GMT) Full text and rfc822 format available.

Message #41 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: Ekaitz Zarraga <ekaitz <at> elenq.tech>
Cc: "guix-devel\@gnu.org" <guix-devel <at> gnu.org>,
 43448 <43448 <at> debbugs.gnu.org>
Subject: Re: FreeCAD fails to compile
Date: Sat, 5 Dec 2020 08:55:01 -0800
[Message part 1 (text/plain, inline)]
     Nice work Ekaitz! 

 
I worked hard on freecad, it is quite a difficult program to package. That was a weird issue that I asked about on the freecad forums. Perhaps it is fixed upstream now, which would be excellent. Thanks for keeping it up to date!
 

 
- John
     
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sat, 05 Dec 2020 21:40:01 GMT) Full text and rfc822 format available.

Message #44 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: John Soo <jsoo1 <at> asu.edu>
Cc: "guix-devel\\@gnu.org" <guix-devel <at> gnu.org>, 43448 <43448 <at> debbugs.gnu.org>
Subject: Re: FreeCAD fails to compile
Date: Sat, 05 Dec 2020 21:39:24 +0000
[Message part 1 (text/plain, inline)]
On Saturday, December 5, 2020 5:55 PM, John Soo <jsoo1 <at> asu.edu> wrote:

> Nice work Ekaitz!
>
> I worked hard on freecad, it is quite a difficult program to package. That was a weird issue that I asked about on the freecad forums. Perhaps it is fixed upstream now, which would be excellent. Thanks for keeping it up to date!
>
> - John

Hey!
I think I found you post.
I'm hitting against the same wall. The funny thing is the thread says [SOLVED].
I have a couple of ideas but this thing is hard to build...

I'll fight with all my soul, and keep you posted.

Thanks for the support,
Ekaitz
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sat, 05 Dec 2020 23:52:02 GMT) Full text and rfc822 format available.

Message #47 received at 43448 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>,
 43448 <43448 <at> debbugs.gnu.org>
Subject: [PATCH] gnu: freecad: Fix compilation flags
Date: Sat, 05 Dec 2020 23:51:30 +0000
Hi everyone,

I managed to solve the longstanding issue with freecad's compilation (#43448).

I'll submit a new change with the package update to 0.18.5 next.

Thanks



From d4d8a65679406b212c68d5198f239bdd71395541 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
Date: Sun, 6 Dec 2020 00:43:36 +0100
Subject: [PATCH] gnu: freecad: Fix compilation flags

    * gnu/packages/engineering.scm (freecad)[arguments]: Set correct
    search paths in compilation flags. Fixes #43448
---
 gnu/packages/engineering.scm | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 558541dd5a..5a8977c940 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2496,8 +2496,28 @@ full programmatic control over your models.")
        #:configure-flags
        (list
         "-DBUILD_QT5=ON"
-        (string-append "-DCMAKE_INSTALL_LIBDIR="
-                       (assoc-ref %outputs "out") "/lib"))
+        (string-append "-DCMAKE_INSTALL_LIBDIR=" (assoc-ref %outputs "out") "/lib")
+
+        (string-append "-DPYSIDE2UICBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/uic")
+        (string-append "-DPYSIDE2RCCBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/rcc")
+
+        "-DPYSIDE_LIBRARY=PySide2::pyside2"
+        (string-append
+         "-DPYSIDE_INCLUDE_DIR="
+         (assoc-ref %build-inputs "python-pyside-2") "/include;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtCore;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtWidgets;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtGui;")
+
+        "-DSHIBOKEN_LIBRARY=Shiboken2::libshiboken"
+        (string-append "-DSHIBOKEN_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-shiboken-2")
+                       "/include/shiboken2"))
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'restore-pythonpath
--
2.28.0






Information forwarded to bug-guix <at> gnu.org:
bug#43448; Package guix. (Sun, 06 Dec 2020 21:31:01 GMT) Full text and rfc822 format available.

Message #50 received at 43448-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <marius <at> gnu.org>
To: Ekaitz Zarraga <ekaitz <at> elenq.tech>, 45059-done <at> debbugs.gnu.org,
 43448-done <at> debbugs.gnu.org
Subject: Re: [bug#45059] [PATCH] gnu: freecad: Fix compilation flags
Date: Sun, 06 Dec 2020 22:29:51 +0100
[Message part 1 (text/plain, inline)]
Ekaitz Zarraga <ekaitz <at> elenq.tech> skriver:

> Hi everyone,
>
> I managed to solve the longstanding issue with freecad's compilation (#43448).
>
> I'll submit a new change with the package update to 0.18.5 next.

Thanks a lot for these patches Ekaitz!

I pushed them both with 383f087cd74316d26c5c0f19b73bc620312c5477.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Jan 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.