View Issue Details

IDProjectCategoryView StatusLast Update
0003686FreeCADBugpublic2018-11-13 20:02
Reportermtdew365 Assigned Towmayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Summary0003686: Version c18785fdb (github) will not compile
DescriptionFedora 29.
Trying to compile FreeCAD. The latest versions I receive errors and will not compile.

Specifically FreeCad version c18785fdb from github.
Steps To Reproduce1. Download latest....
2. cd FreeCad/build
3. cmake -DBUILD_SURFACE=OFF -DCMAKE_BUILD_TYPE=Release
4. make -j4

Results...
-- Compiler: GNU, version: 8.2.1
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- cmake: 3.12.1
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- PyCXX found:
-- Headers: /home/jbergmann/FreeCAD/src
-- Sources: /home/jbergmann/FreeCAD/src/CXX
-- Version: 6.2.8
-- -- OpenCASCADE Community Edition has been found.
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/lib64/oce-0.18/../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Checking for one of the modules 'hdf5-serial'
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Check for medfile (libmed and libmedc) ...
CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available. Run "cmake --help-policy CMP0072" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib64/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:912 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Checking for module 'Coin'
-- Found Coin, version 3.1.3
-- Using default python: -python2.7
-- libshiboken built for Release
-- Found PySide Tools: /usr/bin/pyside-uic, /usr/bin/pyside-rcc
-- -- matplotlib-2.2.3 has been found.
-- Platform is 64-bit, set -D_OCC64
-- Build type: Release
git
/home/jbergmann/FreeCAD/build/src/Build/Version.h.out written
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Could NOT find Boost
-- Could NOT find Boost
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- python
-- found Boost: 1_66
-- boost-incude dirs are: /usr/include
-- boost-python lib is: /usr/lib64/libboost_python.a
-- boost_LIBRARY_DIRS is: /usr/lib64
-- Boost_LIBRARIES is: /usr/lib64/libboost_python.a
-- area module (for Path Workbench) will be installed to: /usr/local/lib
-- Coin3D doc is not installed
=======================================
Now run 'make' to build FreeCAD
=======================================

-- Configuring done
-- Generating done
-- Build files have been written to: /home/jbergmann/FreeCAD/build
 jbergmann  ~  FreeCAD  build  make -j4
[ 0%] Built target Driver
[ 0%] Built target MEFISTO2
[ 0%] Built target Complete
[ 1%] Built target SMDS
[ 1%] Built target CompleteGui
[ 2%] Built target Test
[ 2%] Built target ImageScripts
[ 6%] Built target FreeCADBase
[ 7%] Built target MeshScripts
[ 8%] Built target PartScripts
[ 8%] Built target MaterialLib
[ 8%] Built target Material
[ 8%] Built target FluidMaterialLib
[ 8%] Built target WizardShaft
[ 9%] Built target PartDesignScripts
[ 9%] Built target RaytracingScripts
[ 9%] Built target SketcherScripts
[ 10%] Built target DrawingScripts
[ 11%] Built target RobotScripts
[ 11%] Built target ReverseEngineeringScripts
[ 12%] Built target Draft
[ 12%] Built target WebScripts
[ 12%] Built target StartScripts
[ 13%] Built target StartPage
[ 14%] Built target Idf
[ 14%] Built target ImportScripts
[ 15%] Built target ImportPy
[ 16%] Built target Arch
[ 16%] Built target FemGuiScriptsTarget
[ 20%] Built target FemScriptsTarget
[ 21%] Built target FemPythonUi
[ 22%] Built target Ship
[ 22%] Built target OpenSCAD
[ 22%] Built target Plot
[ 23%] Built target PathTests
[ 23%] Built target SpreadsheetScripts
[ 27%] Built target PathScripts
[ 27%] Built target area-native
[ 28%] Built target Show
[ 28%] Built target TDTestTarget
[ 28%] Built target TechDraw_Data
[ 28%] Built target AddonManager
[ 28%] Built target Tux
[ 29%] Built target freecad_COPY_SOURCE
[ 31%] Built target Stylesheets_data
[ 31%] Built target Example_data
[ 31%] Built target DriverDAT
[ 31%] Built target DriverSTL
[ 32%] Built target SMESHDS
[ 32%] Linking CXX shared module ../../../../lib/area.so
[ 33%] Built target DriverUNV
[ 35%] Built target FreeCADApp
[ 36%] Built target FreeCADMainCmd
[ 36%] Built target FreeCADMainPy
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libboost_python.a(list.o): relocation R_X86_64_PC32 against symbol `PyList_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/Mod/Path/libarea/CMakeFiles/area.dir/build.make:87: lib/area.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:5125: src/Mod/Path/libarea/CMakeFiles/area.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 37%] Built target Points
[ 38%] Built target SMESH
[ 52%] Built target FreeCADGui
make: *** [Makefile:130: all] Error 2
TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2018-11-13 11:21

administrator   ~0012186

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libboost_python.a(list.o): relocation R_X86_64_PC32 against symbol `PyList_Type' can not be used when making a shared object; recompile with -fPIC
You are using the static boost.python library. Install the shared version and try again.

Kunda1

2018-11-13 14:56

administrator   ~0012188

Last edited: 2018-11-13 14:58

setting status to 'feedback'
(wmayer, quick favor, in the future..do you mind setting the status to 'feedback' when replying. That way we don't lose sight of tickets that require info from their OPs. Thanks!)

mtdew365

2018-11-13 19:18

reporter   ~0012192

Installed boost-python2-devel and recompiled. Strange that I have not needed that package before.... Compiled correctly and runs.

Issue History

Date Modified Username Field Change
2018-11-13 02:09 mtdew365 New Issue
2018-11-13 11:21 wmayer Note Added: 0012186
2018-11-13 14:56 Kunda1 Status new => feedback
2018-11-13 14:56 Kunda1 Note Added: 0012188
2018-11-13 14:58 Kunda1 Note Edited: 0012188
2018-11-13 19:18 mtdew365 Note Added: 0012192
2018-11-13 19:18 mtdew365 Status feedback => new
2018-11-13 20:02 wmayer Assigned To => wmayer
2018-11-13 20:02 wmayer Status new => closed
2018-11-13 20:02 wmayer Resolution open => no change required