Manjaro build failure

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
babaroga
Posts: 79
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Manjaro build failure

Postby babaroga » Thu Oct 10, 2019 6:39 am

Hello,

Recently, I am unable to build FreeCAD from Master. Error message I get is

Code: Select all

/home/senja/freecad-qt5-py3/src/Build/Version.h.out written
[  8%] Generating Version.h
[  8%] Built target fc_version
[ 10%] Built target FreeCADApp
[ 10%] Built target FreeCADMainCmd
[ 10%] Linking CXX shared library ../../lib/libFreeCADGui.so
/usr/bin/ld: CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o: in function `convertWrapperToQuantity(PySide::PyObjectWrapper const&)':
WidgetFactory.cpp:(.text+0xcf): undefined reference to `PySide::PyObjectWrapper::operator _object*() const'
/usr/bin/ld: CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o: in function `QtMetaTypePrivate::QMetaTypeFunctionHelper<PySide::PyObjectWrapper, true>::Construct(void*, void const*)':
WidgetFactory.cpp:(.text._ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE9ConstructEPvPKv[_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE9ConstructEPvPKv]+0xb): undefined reference to `PySide::PyObjectWrapper::PyObjectWrapper(PySide::PyObjectWrapper const&)'
/usr/bin/ld: WidgetFactory.cpp:(.text._ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE9ConstructEPvPKv[_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE9ConstructEPvPKv]+0x19): undefined reference to `PySide::PyObjectWrapper::PyObjectWrapper()'
/usr/bin/ld: CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o: in function `QtMetaTypePrivate::QMetaTypeFunctionHelper<PySide::PyObjectWrapper, true>::Destruct(void*)':
WidgetFactory.cpp:(.text._ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE8DestructEPv[_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6PySide15PyObjectWrapperELb1EE8DestructEPv]+0x1): undefined reference to `PySide::PyObjectWrapper::~PyObjectWrapper()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/build.make:5884: lib/libFreeCADGui.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:4922: src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[senja@senja-linux freecad-qt5-py3]$ 
It seems like libraries missmatching.
I get same error on two machines running Manjaro linux. QT is 5.13, as well as Pyside2 and Shiboken2. Already tried a clean build.
Can anyone point me to dirrection how to solve it?
wmayer
Site Admin
Posts: 14999
Joined: Thu Feb 19, 2009 10:32 am

Re: Manjaro build failure

Postby wmayer » Thu Oct 10, 2019 8:29 am

You have a linking error so this means that the compilation succeeded. Now the question is whether the shared library of PySide is not passed to the linker or the wrong version or the shared library is broken (possible but less likely).

Inside your build directory go to src/Gui/CMakeFiles/FreeCADGui.dir you should check the files build.txt and/or link.txt. There you should be able to figure out what is passed to the linker.
User avatar
Kunda1
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Manjaro build failure

Postby Kunda1 » Thu Oct 10, 2019 9:25 am

babaroga wrote:
Thu Oct 10, 2019 6:39 am
Recently, I am unable to build FreeCAD from Master. Error message I get is
Can you paste the PKGBUILD you're using to build FC ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
babaroga
Posts: 79
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Manjaro build failure

Postby babaroga » Thu Oct 10, 2019 10:54 am

I am building it from source. Since last few days it is throwing this linker errors.

Like wmayer said, libpyside2 is not passed to linker and LibShiboken2 is there (in build.make and link.txt files)
Aurelius_Nero
Posts: 3
Joined: Wed Oct 16, 2019 12:57 pm

Need help Installing freecad due to conflicting files

Postby Aurelius_Nero » Wed Oct 16, 2019 1:06 pm

Hi,
I tried installing freecad on my manjaro machine, and it failed due to "conflicting Files". I had previously installed Paraview which I also need due to OPENfoam. Here is the error log below.
Specs:
https://paste.ubuntu.com/p/y9kJPsWQY2/
operating system: Manjaro
PS: I used YaY and Pamac with zero success.


ERROR LOG: https://paste.ubuntu.com/p/Gxm8kXCCGr/
User avatar
Kunda1
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Need help Installing freecad due to conflicting files

Postby Kunda1 » Wed Oct 16, 2019 1:18 pm

Aurelius_Nero wrote:
Wed Oct 16, 2019 1:06 pm
What version are you trying to install on manjaro?
are you building it manually?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Aurelius_Nero
Posts: 3
Joined: Wed Oct 16, 2019 12:57 pm

Re: Manjaro build failure

Postby Aurelius_Nero » Wed Oct 16, 2019 1:20 pm

I am trying to install version 0.18.16144-1
and I used as stated in the original post of mine, I used "Yay" and "Pamac" and no success.

Regards
Aurelius
User avatar
Kunda1
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Manjaro build failure

Postby Kunda1 » Wed Oct 16, 2019 1:24 pm

Aurelius_Nero wrote:
Wed Oct 16, 2019 1:20 pm
I am trying to install version 0.18.16144-1
and I used as stated in the original post of mine, I used "Yay" and "Pamac" and no success.
Please report this to the Arch/Manjaro package maintainer.

Edit: https://aur.archlinux.org/packages/freecad/
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Aurelius_Nero
Posts: 3
Joined: Wed Oct 16, 2019 12:57 pm

Re: Manjaro build failure

Postby Aurelius_Nero » Wed Oct 16, 2019 1:33 pm

Kunda1 wrote:
Wed Oct 16, 2019 1:24 pm
Please report this to the Arch/Manjaro package maintainer.

Edit: https://aur.archlinux.org/packages/freecad/
Thank you for your help. Made a comment on the package page.

Regards
Aurelius