Debian Buster Compilation Fails

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

I make make and copy the terminal output. I am not a bash expert. But yes, this works also.
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Can't get past 62% no matter what.

Here is my output. I hope you can help me get past this issue.

Thanks for the patience.

It always ends with

/usr/bin/ld: cannot find -lpthreads
Attachments
Output.txt
(23.25 KiB) Downloaded 80 times
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

My guess is:

- you use the antice OCE in combination with
- C++17

Download the latest OCCT from synaptic and get rid of the old OCE. Also then i could happen, that if fails on smesh. Then set

Code: Select all

-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/mpic++
-DFREECAD_BUILD_DEBIAN:BOOL=ON
-DFREECAD_USE_OCC_VARIANT:STRING=Official Version
Please for an answer if it works.

Greetings
user1234
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

No luck I did everything you said @user1234, and I still get the same crash.

As it turns out, the system had OCCT installed instead of OCE, but the cmake-gui was set to community, so I fixed that. didn;t work. I tried also with the C++20 Didn't work either. Tried with the mpic++ and did not work either.

My error.log still ends with

/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status


I am so frustrated.

I don't know what to do next.
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

Have you a log from compiling? This
hhassey wrote: Thu Jun 10, 2021 10:15 pm/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
is not from the log. Have you installed libboost1.74-dev?
hhassey wrote: Thu Jun 10, 2021 10:15 pm As it turns out, the system had OCCT installed instead of OCE
And took cmake the right OCCT? Have ypu deinstalled OCE? (If no, do it! Normally both on the system is not possbile because they are conflicting dependencies).

If recompiling do not to work, make always a clean build, because sometimes ccache take then the faulty builds farther.

Greetings
user1234
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

Or any liboost1.XX-dev.
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Debian repositories have libboost1.67 not 1.74, but libboost1.67-dev was already installed. I even installed libboost1.67-all-dev just in case.
OCE was never installed, all there is is OCCT

Still crashing between 62% and 65%

Any other ideas?
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

hhassey wrote: Fri Jun 11, 2021 6:58 pmOCE was never installed, all there is is OCCT
OCE was installed, that was seen on the build log before.
hhassey wrote: Fri Jun 11, 2021 6:58 pmStill crashing between 62% and 65%
The % are uninteresting, the built log is interesting.

We can do a jitsi meeting. I write a list for preparation (dependencies, sources, .....) and you give me time periods when you have time. Is that OK for you? The list is here later, i have no time at the moment.

Greetings
user1234
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Thank you so much. Any time on Monday if you can, would be great!

Thanks.
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

hhassey wrote: Fri Jun 11, 2021 9:57 pmAny time on Monday if you can, would be great!
Monday is OK. Normally the point of time does not matter since i can schedule my time for me myself. But the time duration is limited.

PM me for an appointment proposal (in UTC Coordinated Universal Time) with a roomname for Jitsi.

To do before:

- wipe OCE completely form your system, nothing should be left
- install the package git
- a new clean sourcecode; clone the source with

Code: Select all

git clone https://github.com/FreeCAD/FreeCAD.git path_of_the_sourcecodefolder_you_want
- a new clean build folder where you want to build FreeCAD
- install the packages

Code: Select all

cmake
cmake-qt-gui
ccache (recommended)

pybind11-dev
python3-pybind11
python3-pybindgen

libmed-dev
libmedc-dev
libmedc11
libopenmpi-dev
libhdf5-openmpi-dev
libhdf5-mpi-dev
h5utils

libocct-data-exchange-7.*
libocct-data-exchange-dev
libocct-draw-7.*
libocct-draw-dev
libocct-foundation-7.*
libocct-foundation-dev
libocct-modeling-algorithms-7.*
libocct-modeling-algorithms-dev
libocct-modeling-data-7.*
libocct-modeling-data-dev
libocct-ocaf-7.*
libocct-ocaf-dev
libocct-visualization-7.*
libocct-visualization-dev
occt-draw
occt-misc

for FEM:
libvtk7-dev
netgen         (recommended, optional)
libnglib-dev   (recommended, optional)
netgen-headers (recommended, optional)
python3-netgen (recommended, optional)
gmsh           (optional)
libgmsh4       (optional)
python3-gmsh   (optional)
calculix-ccx   (optional)
The most sources should be installed since you have compiled FreeCAD before. But hey are Also read this https://wiki.freecadweb.org/Compile_on_ ... and_Ubuntu and look if some source in the list above are missing.

Check if Jitsi is working. For me Jitsi itself worked out of the box, but since i have very restricted settings, it took me a while that the peripheral devices are worked (microphone).

Greetings
user1234
Post Reply