unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#43448: FreeCAD fails to compile
@ 2020-09-16 11:58 Malte Frank Gerdes
  2020-10-05 17:22 ` zimoun
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Malte Frank Gerdes @ 2020-09-16 11:58 UTC (permalink / raw)
  To: 43448

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

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.


[-- Attachment #2: hxq9kbjxdzn4h47dx1d2cj5plm0cxc-freecad-0.18.4.drv.bz2 --]
[-- Type: application/octet-stream, Size: 62580 bytes --]

[-- Attachment #3: Type: text/plain, Size: 7 bytes --]


Malte

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: FreeCAD fails to compile
  2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
@ 2020-10-05 17:22 ` zimoun
  2020-10-20 17:09 ` Malte Frank Gerdes
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: zimoun @ 2020-10-05 17:22 UTC (permalink / raw)
  To: Malte Frank Gerdes; +Cc: 43448

Dear,

On Wed, 16 Sep 2020 at 13:58, Malte Frank Gerdes <malte.f.gerdes@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>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: FreeCAD fails to compile
  2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
  2020-10-05 17:22 ` zimoun
@ 2020-10-20 17:09 ` Malte Frank Gerdes
  2020-10-20 17:17   ` zimoun
  2020-10-20 20:31 ` Malte Frank Gerdes
  2020-11-13 16:12 ` bug#43448: Closed by 41170 John Soo
  3 siblings, 1 reply; 7+ messages in thread
From: Malte Frank Gerdes @ 2020-10-20 17:09 UTC (permalink / raw)
  To: 43448

zimoun <zimon.toutoune@gmail.com> writes:

> Dear,
>
> On Wed, 16 Sep 2020 at 13:58, Malte Frank Gerdes <malte.f.gerdes@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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: FreeCAD fails to compile
  2020-10-20 17:09 ` Malte Frank Gerdes
@ 2020-10-20 17:17   ` zimoun
  2020-10-20 17:30     ` Malte Frank Gerdes
  0 siblings, 1 reply; 7+ messages in thread
From: zimoun @ 2020-10-20 17:17 UTC (permalink / raw)
  To: Malte Frank Gerdes; +Cc: 43448

Dear,

On Tue, 20 Oct 2020 at 19:09, Malte Frank Gerdes
<malte.f.gerdes@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@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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: FreeCAD fails to compile
  2020-10-20 17:17   ` zimoun
@ 2020-10-20 17:30     ` Malte Frank Gerdes
  0 siblings, 0 replies; 7+ messages in thread
From: Malte Frank Gerdes @ 2020-10-20 17:30 UTC (permalink / raw)
  To: 43448

zimoun <zimon.toutoune@gmail.com> writes:

> Dear,
>
> On Tue, 20 Oct 2020 at 19:09, Malte Frank Gerdes
> <malte.f.gerdes@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@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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: FreeCAD fails to compile
  2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
  2020-10-05 17:22 ` zimoun
  2020-10-20 17:09 ` Malte Frank Gerdes
@ 2020-10-20 20:31 ` Malte Frank Gerdes
  2020-11-13 16:12 ` bug#43448: Closed by 41170 John Soo
  3 siblings, 0 replies; 7+ messages in thread
From: Malte Frank Gerdes @ 2020-10-20 20:31 UTC (permalink / raw)
  To: 43448

[-- Attachment #1: Type: text/plain, Size: 4409 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: freecad-add-include-dirs.patch --]
[-- Type: text/x-patch, Size: 1188 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#43448: Closed by 41170
  2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
                   ` (2 preceding siblings ...)
  2020-10-20 20:31 ` Malte Frank Gerdes
@ 2020-11-13 16:12 ` John Soo
  3 siblings, 0 replies; 7+ messages in thread
From: John Soo @ 2020-11-13 16:12 UTC (permalink / raw)
  To: 43448-done





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-13 16:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
2020-10-05 17:22 ` zimoun
2020-10-20 17:09 ` Malte Frank Gerdes
2020-10-20 17:17   ` zimoun
2020-10-20 17:30     ` Malte Frank Gerdes
2020-10-20 20:31 ` Malte Frank Gerdes
2020-11-13 16:12 ` bug#43448: Closed by 41170 John Soo

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git