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!
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Debian Buster Compilation Fails

Post by hhassey »

Hello, I am trying to compile on a Debian Buster OS. and compilation fails with not a lot of information:

Code: Select all

[ 62%] Linking CXX shared library ../../lib/libFreeCADGui.so
[ 62%] Built target FreeCADGui
make: *** [Makefile:130: all] Error 2
I compiled successfully in this computer one of the 0.19 versions. Any ideas what is going wrong?

Thanks in advance.
Last edited by hhassey on Thu Jun 03, 2021 11:52 pm, edited 1 time in total.
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

Hello! Do you compile the master (dev) or 0.19 branch?

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 »

I did a Git pull on master.

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

Re: Debian Buster Compilation Fails

Post by user1234 »

There must be more error output as this. Can you add the log from compiling?

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

Re: Debian Buster Compilation Fails

Post by user1234 »

And when possible the cmake option you use.
User avatar
hhassey
Posts: 246
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Thanks so much, I will post the answer tomorrow as they already took the computer away for the day.
drmacro
Veteran
Posts: 8806
Joined: Sun Mar 02, 2014 4:35 pm

Re: Debian Buster Compilation Fails

Post by drmacro »

Hmm...had the same issue with the Raspberry Pi OS (which is Debian Buster...I think) a few days back.

See: https://forum.freecadweb.org/viewtopic.php?f=4&t=59034

If I tried it again, it would get the same error, only at a different point in the build.

About the 3rd or 4th try it completed.

Not sure why. And, it was noted by others.

Mac goes off off to try with today's master on my pure Buster PC... :arrow:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

Hello!
drmacro wrote: Fri Jun 04, 2021 12:50 pmNot sure why. And, it was noted by others.
When i look at the error

Code: Select all

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
, then i would guess out of RAM. Then the compiler kill the thread, which ran out of RAM. The others threads ran longer, till the part is needed, which is killed. This can run longer now, because the same RAM is available for lesser treads. When you restart the compiling, then it often get further, because the first part, which is compiled is the one which was killed before. (Because ccache saves the progress). And of course when ran out of RAM, it can happen later when you restart the compiler. (it seems i like the word because)

I would test it with

Code: Select all

make -j1
to force the compiler to use only 1 thread.

Need much much longer, but saver.

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 »

For me, it always crashes on the same place.
Here is my Error output file:

How can I tell which CMake Options I am using? I ran this before compiling:

Code: Select all

#! /bin/sh
cmake -DBUILD_QT5=ON \
-D CMAKE_BUILD_TYPE=Release \
-D PYTHON_EXECUTABLE=/usr/bin/python3.7 \
-D FREECAD_USE_QWEBKIT:BOOL=ON \
..
Attachments
CMakeError.log
(16.6 KiB) Downloaded 50 times
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

That is not the building output. You posted a snipped from the building log before. It looks like this:
buildlog.txt
(49.91 KiB) Downloaded 56 times

Here are also some Debian building tips: https://forum.freecadweb.org/viewtopic.php?t=59293. Pretty fresh. I would delete all complete and run cmake from scratch. Sometimes if cmake have bad settings, you never get out of it.

Greetings
user1234
Post Reply