[SOLVED] multilib system: error adding symbols: file in wrong format

Having trouble installing or compiling FreeCAD? Get help here.
fordfrog
Posts: 4
Joined: Fri Jul 05, 2019 7:17 am

[SOLVED] multilib system: error adding symbols: file in wrong format

Postby fordfrog » Fri Jul 05, 2019 8:00 am

i am building freecad on gentoo linux from my ebuild at https://gitweb.gentoo.org/dev/fordfrog. ... fx/freecad. it used to compile fine for quite a long time, but gentoo has recently moved to new profile and all libs on amd64 systems are now in /usr/lib64. that works for most libraries used by freecad but some are picked from /usr/lib instead where those are 32-bit versions of the libraries and so the compilation interrupts with error like this:

Code: Select all

cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/cmake -E cmake_link_script CMakeFiles/Driver.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -fPIC  -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libDriver.so -o ../../../lib/libDriver.so CMakeFiles/Driver.dir/src/Driver/Driver_Document.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_SMDS_Mesh.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_SMESHDS_Mesh.cpp.o  -L/usr/lib64/opencascade-7.3.0/lib64 -Wl,-rpath,/usr/lib64/opencascade-7.3.0/lib64: -lmpi_cxx -lmpi /usr/lib64/libTKSTL.so.11.0.0 /usr/lib64/libTKBin.so.11.0.0 /usr/lib64/libTKFeat.so.11.0.0 /usr/lib64/libTKXDESTEP.so.11.0.0 /usr/lib64/libTKXDEIGES.so.11.0.0 /usr/lib64/libTKMeshVS.so.11.0.0 /usr/lib64/libTKBinL.so.11.0.0 /usr/lib64/libTKSTEP.so.11.0.0 /usr/lib64/libTKSTEP209.so.11.0.0 /usr/lib64/libTKSTEPAttr.so.11.0.0 /usr/lib64/libTKSTEPBase.so.11.0.0 /usr/lib64/libTKIGES.so.11.0.0 /usr/lib64/libTKOffset.so.11.0.0 /usr/lib64/libTKFillet.so.11.0.0 /usr/lib64/libTKBool.so.11.0.0 /usr/lib64/libTKXSBase.so.11.0.0 /usr/lib64/libTKXCAF.so.11.0.0 /usr/lib64/libTKCAF.so.11.0.0 /usr/lib64/libTKBO.so.11.0.0 /usr/lib64/libTKPrim.so.11.0.0 /usr/lib64/libTKLCAF.so.11.0.0 /usr/lib64/libTKCDF.so.11.0.0 /usr/lib64/libTKV3d.so.11.0.0 /usr/lib64/libTKMesh.so.11.0.0 /usr/lib64/libTKHLR.so.11.0.0 /usr/lib64/libTKService.so.11.0.0 /usr/lib64/libTKShHealing.so.11.0.0 /usr/lib64/libTKTopAlgo.so.11.0.0 /usr/lib64/libTKGeomAlgo.so.11.0.0 /usr/lib64/libTKBRep.so.11.0.0 /usr/lib64/libTKGeomBase.so.11.0.0 /usr/lib64/libTKG3d.so.11.0.0 /usr/lib64/libTKG2d.so.11.0.0 /usr/lib64/libTKMath.so.11.0.0 /usr/lib64/libTKernel.so.11.0.0 -lpthread -ldl -lm /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libX11.so /usr/lib/libXext.so /usr/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libfreetype.so 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libSM.so: error adding symbols: file in wrong format
i am not very familiar with cmake build system so i was not able to find out where the wrong /usr/lib path comes from, but what i can see is that the build directory contains references to seven libraries from /usr/lib instead of /usr/lib64. these are the libraries:

Code: Select all

/usr/lib/libSM.so
/usr/lib/libICE.so
/usr/lib/libX11.so
/usr/lib/libXext.so
/usr/lib/libGL.so
/usr/lib/libGLU.so
/usr/lib/libfreetype.so
i don't know whether the problem is in the freecad build system or it is a gentoo issue with just some libraries, but rebuilding the mentioned libraries in gentoo made no difference. checking the installed files of those libraries (mainly the pc files) did not reveal anything suspicious to me.

here are the files of libSM library, just to show what is installed:

Code: Select all

# equery files libSM
 * Searching for libSM ...
 * Contents of x11-libs/libSM-1.2.3:
/usr
/usr/include
/usr/include/X11
/usr/include/X11/SM
/usr/include/X11/SM/SM.h
/usr/include/X11/SM/SMlib.h
/usr/include/X11/SM/SMproto.h
/usr/lib
/usr/lib/libSM.so -> libSM.so.6.0.1
/usr/lib/libSM.so.6 -> libSM.so.6.0.1
/usr/lib/libSM.so.6.0.1
/usr/lib/pkgconfig
/usr/lib/pkgconfig/sm.pc
/usr/lib64
/usr/lib64/libSM.so -> libSM.so.6.0.1
/usr/lib64/libSM.so.6 -> libSM.so.6.0.1
/usr/lib64/libSM.so.6.0.1
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/sm.pc
/usr/share
/usr/share/doc
/usr/share/doc/libSM-1.2.3
/usr/share/doc/libSM-1.2.3/AUTHORS.bz2
/usr/share/doc/libSM-1.2.3/ChangeLog.bz2
/usr/share/doc/libSM-1.2.3/README.bz2
here is complete build.log of the configuration and compilation (it's not that long so i'm inlining it here):

Code: Select all

 * Package:    media-gfx/freecad-9999
 * Repository: fordfrog
 * Maintainer: fordfrog@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc freecad_modules_addonmgr freecad_modules_arch freecad_modules_complete freecad_modules_draft freecad_modules_drawing freecad_modules_fem freecad_modules_idf freecad_modules_image freecad_modules_import freecad_modules_inspection freecad_modules_material freecad_modules_mesh freecad_modules_mesh_part freecad_modules_openscad freecad_modules_part freecad_modules_part_design freecad_modules_path freecad_modules_plot freecad_modules_points freecad_modules_raytracing freecad_modules_reverseengineering freecad_modules_robot freecad_modules_ship freecad_modules_show freecad_modules_sketcher freecad_modules_spreadsheet freecad_modules_start freecad_modules_surface freecad_modules_techdraw freecad_modules_test freecad_modules_tux freecad_modules_web freetype kernel_linux python_targets_python3_6 qt5 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using following Fortran compiler:
 *   F77: x86_64-pc-linux-gnu-gfortran
 *   FC:  x86_64-pc-linux-gnu-gfortran
>>> Unpacking source...
 * Repository id: FreeCAD_FreeCAD.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_FREECAD_FREECAD
 *   EGIT_OVERRIDE_BRANCH_FREECAD_FREECAD
 *   EGIT_OVERRIDE_COMMIT_FREECAD_FREECAD
 *   EGIT_OVERRIDE_COMMIT_DATE_FREECAD_FREECAD
 * 
 * Fetching https://github.com/FreeCAD/FreeCAD.git ...
git fetch https://github.com/FreeCAD/FreeCAD.git +HEAD:refs/git-r3/HEAD
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
git symbolic-ref refs/git-r3/media-gfx/freecad/0/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/FreeCAD/FreeCAD.git to /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/FreeCAD/FreeCAD.git
   at the commit:            be1cc9ca9f27750166241310a41693601cbb862d
>>> Source unpacked in /var/tmp/portage/media-gfx/freecad-9999/work
>>> Preparing source in /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ...
 * Applying freecad-9999-install-paths.patch ...                                                                                                                                                                                                                                                                                                                    [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *      set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "Installa
 *      set(CMAKE_INSTALL_PREFIX "/usr/lib${LIB_SUFFIX}/freecad" CACHE PATH "Inst
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build"
cmake -C /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DOCC_INCLUDE_DIR=/usr/lib64/opencascade-7.3.0/inc -DOCC_LIBRARY_DIR=/usr/lib64/opencascade-7.3.0/lib64 -DCMAKE_INSTALL_DATADIR=/usr/share/freecad-9999 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/freecad-9999 -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/freecad-9999 -DCMAKE_INSTALL_PREFIX=/usr/lib64/freecad -DFREECAD_USE_EXTERNAL_KDL=ON -DBUILD_QT5=yes -DBUILD_GUI=yes -DBUILD_FREETYPE=yes -DOPENMPI_INCLUDE_DIRS=/usr/include/ -DBUILD_ADDONMGR=ON -DBUILD_ARCH=ON -DBUILD_ASSEMBLY=OFF -DBUILD_COMPLETE=ON -DBUILD_DRAFT=ON -DBUILD_DRAWING=ON -DBUILD_FEM=ON -DBUILD_IDF=ON -DBUILD_IMAGE=ON -DBUILD_IMPORT=ON -DBUILD_INSPECTION=ON -DBUILD_JTREADER=OFF -DBUILD_MATERIAL=ON -DBUILD_MESH=ON -DBUILD_MESH_PART=ON -DBUILD_OPENSCAD=ON -DBUILD_PART=ON -DBUILD_PART_DESIGN=ON -DBUILD_PATH=ON -DBUILD_PLOT=ON -DBUILD_POINTS=ON -DBUILD_RAYTRACING=ON -DBUILD_REVERSEENGINEERING=ON -DBUILD_ROBOT=ON -DBUILD_SANDBOX=OFF -DBUILD_SHIP=ON -DBUILD_SHOW=ON -DBUILD_SKETCHER=ON -DBUILD_SMESH=OFF -DBUILD_SPREADSHEET=ON -DBUILD_START=ON -DBUILD_SURFACE=ON -DBUILD_TECHDRAW=ON -DBUILD_TEMPLATE=OFF -DBUILD_TEST=ON -DBUILD_TUX=ON -DBUILD_WEB=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_toolchain.cmake  /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999
loading initial cache file /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is GNU 9.1.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiler: GNU, version: 9.1.0
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include fstream
-- Looking for C++ include fstream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for C++ include ios
-- Looking for C++ include ios - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Looking for C++ include iomanip
-- Looking for C++ include iomanip - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- prefix: /usr/lib64/freecad
-- datadir: /usr/share/freecad-9999
-- docdir: /usr/share/doc/freecad-9999
-- includedir: /usr/include/freecad-9999
-- libdir: /usr/lib64/freecad/lib64
-- cmake: 3.14.5
-- Found PythonInterp: /var/tmp/portage/media-gfx/freecad-9999/temp/python3.6/bin/python (found version "3.6.8") 
-- Found PythonLibs: /usr/lib64/libpython3.6m.so (found suitable exact version "3.6.8") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.70.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   regex
--   system
--   thread
--   chrono
--   date_time
--   atomic
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- PyCXX found:
--   Headers:  /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src
--   Sources:  /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/CXX
--   Version:  6.2.8
-- -- OpenCASCADE Community Edition has been found.
-- Found OCC: /usr/lib64/oce-0.18/../../include/oce (found version "6.9.1") 
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/lib64/oce-0.18/../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64/opencascade-7.3.0/lib64
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- Found MEDFile: /usr/include  
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") 
-- We guess that libmed was built using hdf5-serial version
-- Checking for one of the modules 'hdf5-serial'
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.10.5")  
-- Checking for one of the modules 'ompi-cxx'
-- Found SWIG: /usr/bin/swig (found version "4.0.0") 
-- Found Eigen3: /usr/include/eigen3 (found suitable version "3.3.7", minimum required is "2.91.0") 
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.1") 
-- Found OpenGL: /usr/lib64/libGL.so   
-- Found OpenGLU: /usr/lib64/libGLU.so
-- Checking for module 'Coin'
--   No package 'Coin' found
-- Coin3D libraries found
-- Found Spnav: /usr/lib64/libspnav.so  
-- Shiboken2Config: Using default python: .cpython-36m-x86_64-linux-gnu
-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-36m-x86_64-linux-gnu
-- libshiboken built for Release
-- -- matplotlib-2.2.4 has been found.
-- Platform is 64-bit, set -D_OCC64
-- Build type: Gentoo
git
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Build/Version.h.out written
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/BaseClassPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/BoundBoxPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/CoordinateSystemPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/PersistencePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/VectorPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/MatrixPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/RotationPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/PlacementPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/AxisPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/UnitPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Base/QuantityPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/DocumentPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/DocumentObjectPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/ExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/ExtensionContainerPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/DocumentObjectExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/GroupExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/DocumentObjectGroupPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/GeoFeaturePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/GeoFeatureGroupExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/OriginGroupExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/PartPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/ComplexGeoDataPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/PropertyContainerPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/App/MaterialPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Points/App/PointsPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Mesh/App/FacetPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Mesh/App/MeshFeaturePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Mesh/App/MeshPointPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Mesh/App/MeshPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Mesh/Gui/ViewProviderMeshPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcOfConicPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcOfCirclePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcOfParabolaPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BodyBasePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ConicPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/CirclePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcOfEllipsePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/EllipsePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/HyperbolaPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ArcOfHyperbolaPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ParabolaPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/OffsetCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/GeometryPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/GeometryCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BoundedCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TrimmedCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/GeometrySurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/LinePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/LineSegmentPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/PointPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BezierCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BSplineCurvePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/PlanePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ConePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/CylinderPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/SpherePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/ToroidPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BezierSurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BSplineSurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/OffsetSurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/PlateSurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/RectangularTrimmedSurfacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/SurfaceOfExtrusionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/SurfaceOfRevolutionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/PartFeaturePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/AttachExtensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Part2DObjectPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/AttachEnginePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeCompoundPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeCompSolidPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeEdgePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeFacePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeShellPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeSolidPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeVertexPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/TopoShapeWirePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/ArcOfCircle2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/ArcOfConic2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/ArcOfEllipse2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/ArcOfHyperbola2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/ArcOfParabola2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/BezierCurve2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/BSplineCurve2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Circle2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Conic2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Ellipse2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Geometry2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Hyperbola2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Curve2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Line2dSegmentPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Line2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/OffsetCurve2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Part/App/Geom2d/Parabola2dPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/PartDesign/App/BodyPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/PartDesign/App/FeaturePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/PartDesign/Gui/ViewProviderPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Sketcher/App/SketchObjectSFPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Sketcher/App/SketchObjectPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Sketcher/App/ConstraintPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Sketcher/App/SketchPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Robot/App/Robot6AxisPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Robot/App/TrajectoryPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Robot/App/WaypointPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Robot/App/RobotObjectPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Import/App/StepShapePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Fem/App/FemMeshPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Fem/App/FemPostPipelinePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Fem/Gui/ViewProviderFemMeshPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Spreadsheet/App/SheetPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Spreadsheet/App/PropertySheetPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/CommandPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/PathPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/ToolPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/TooltablePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/FeaturePathCompoundPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/AreaPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/App/FeatureAreaPy.cpp
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Boost version: 1.70.0
-- Found the following Boost libraries:
--   python36
-- found Boost: 1_70
-- boost-incude dirs are: /usr/include
-- boost-python lib is: 
-- boost_LIBRARY_DIRS is: /usr/lib64
-- Boost_LIBRARIES is: /usr/lib64/libboost_python36-mt.so
-- area module (for Path Workbench) will be installed to: /usr/lib64/freecad/lib64
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Path/PathSimulator/App/PathSimPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/Measure/App/MeasurementPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawPagePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewPartPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewSymbolPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawTemplatePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawParametricTemplatePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawSVGTemplatePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewClipPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewDimensionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawHatchPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawGeomHatchPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewCollectionPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawProjGroupPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawProjGroupItemPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawViewAnnotationPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawLeaderLinePy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/App/DrawRichAnnoPy.cpp
Created file /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/doc/freecad.qch
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.15") found components:  doxygen dot 
-- Coin3D doc is not installed
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/DocumentPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/PythonWorkbenchPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/ViewProviderPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/ViewProviderDocumentObjectPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/WorkbenchPy.cpp
-- /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Gui/SelectionObjectPy.cpp
-- 
==============
Summary report
==============

-- Python:              [/var/tmp/portage/media-gfx/freecad-9999/temp/python3.6/bin/python] [.cpython-36m-x86_64-linux-gnu]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               107000
-- XercesC:             [/usr/lib64/libxerces-c.so] [/usr/include]
-- ZLIB:                1.2.11
-- PyCXX:               [/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src]
-- OCC:                 6.9.1 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
-- SMESH:               build internal
--  MEDFile:            [/usr/lib64/libmedC.so] [/usr/include]
--  HDF5:               1.10.5
--  VTK:                8.1.0
-- NETGEN:              not enabled
-- SWIG:                4.0.0
-- Eigen3               3.3.7
-- Qt5Core:             5.12.3
-- Qt5Network:          5.12.3
-- Qt5Xml:              5.12.3
-- Qt5XmlPatterns:      5.12.3
-- Qt5Widgets:          5.12.3
-- Qt5PrintSupport:     5.12.3
-- Qt5OpenGL:           5.12.3
-- Qt5Svg:              5.12.3
-- Qt5UiTools:          5.12.3
-- Qt5Concurrent:       5.12.3
-- Qt5WebKitWidgets:    5.212.0
-- Shiboken2:           5.9.0 [/usr/lib64/cmake/Shiboken2-5.9.0] [/usr/include/shiboken2]
-- PySide2:             5.9.0 [/usr/include/PySide2]
-- PySide2Tools:        [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
-- Freetype:            2.10.1
-- OpenGLU:             /usr/lib64/libGLU.so [/usr/lib64/libGLU.so][/usr/include]
-- Coin3D:              [/usr/lib64/libCoin.so] [/usr/include]
-- SPNAV:               [/usr/lib64/libspnav.so] [/usr/include]
-- Matplotlib:          2.2.4
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             not found
=================================================
Now run 'cmake --build /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build' to build FreeCAD
=================================================

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr/lib64/freecad
Compiler flags:
C               -march=native -O2 -pipe
C++             -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build
 * freecad-9999 will be built against opencascade version /usr/lib64/opencascade-7.3.0
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build"
make -j1 VERBOSE=1 
/usr/bin/cmake -S/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 -B/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/CMakeFiles /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
make -f src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/build.make src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/depend
make[2]: Entering directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/DependInfo.cmake --color=
Dependee "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/DependInfo.cmake" is newer than depender "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/depend.internal".
Dependee "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/depend.internal".
Scanning dependencies of target Driver
make[2]: Leaving directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
make -f src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/build.make src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/build
make[2]: Entering directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_Document.cpp.o
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/x86_64-pc-linux-gnu-g++ -DCSFDB -DDriver_EXPORTS -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DLIN -DOCC_CONVERT_SIGNALS -D_OCC64 -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/SMDS -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverUNV -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverDAT -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverSTL -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/StdMeshers -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/inc -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh -I/usr/lib64/oce-0.18/../../include/oce -I/usr/include/vtk-8.1 -I/usr/include/freetype2   -DNDEBUG -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -fPIC   -pthread -std=gnu++11 -o CMakeFiles/Driver.dir/src/Driver/Driver_Document.cpp.o -c /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver/Driver_Document.cpp
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/x86_64-pc-linux-gnu-g++ -DCSFDB -DDriver_EXPORTS -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DLIN -DOCC_CONVERT_SIGNALS -D_OCC64 -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/SMDS -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverUNV -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverDAT -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverSTL -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/StdMeshers -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/inc -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh -I/usr/lib64/oce-0.18/../../include/oce -I/usr/include/vtk-8.1 -I/usr/include/freetype2   -DNDEBUG -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -fPIC   -pthread -std=gnu++11 -o CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o -c /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver/Driver_Mesh.cpp
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_SMDS_Mesh.cpp.o
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/x86_64-pc-linux-gnu-g++ -DCSFDB -DDriver_EXPORTS -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DLIN -DOCC_CONVERT_SIGNALS -D_OCC64 -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/SMDS -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverUNV -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverDAT -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverSTL -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/StdMeshers -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/inc -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh -I/usr/lib64/oce-0.18/../../include/oce -I/usr/include/vtk-8.1 -I/usr/include/freetype2   -DNDEBUG -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -fPIC   -pthread -std=gnu++11 -o CMakeFiles/Driver.dir/src/Driver/Driver_SMDS_Mesh.cpp.o -c /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver/Driver_SMDS_Mesh.cpp
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_SMESHDS_Mesh.cpp.o
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/x86_64-pc-linux-gnu-g++ -DCSFDB -DDriver_EXPORTS -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DLIN -DOCC_CONVERT_SIGNALS -D_OCC64 -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/SMDS -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverUNV -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverDAT -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/DriverSTL -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/StdMeshers -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/inc -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh -I/usr/lib64/oce-0.18/../../include/oce -I/usr/include/vtk-8.1 -I/usr/include/freetype2   -DNDEBUG -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -fPIC   -pthread -std=gnu++11 -o CMakeFiles/Driver.dir/src/Driver/Driver_SMESHDS_Mesh.cpp.o -c /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/3rdParty/salomesmesh/src/Driver/Driver_SMESHDS_Mesh.cpp
[  0%] Linking CXX shared library ../../../lib/libDriver.so
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/3rdParty/salomesmesh && /usr/bin/cmake -E cmake_link_script CMakeFiles/Driver.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -fPIC  -Wall -Wextra -Wno-write-strings -march=native -O2 -pipe -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter -Wno-empty-body -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libDriver.so -o ../../../lib/libDriver.so CMakeFiles/Driver.dir/src/Driver/Driver_Document.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_SMDS_Mesh.cpp.o CMakeFiles/Driver.dir/src/Driver/Driver_SMESHDS_Mesh.cpp.o  -L/usr/lib64/opencascade-7.3.0/lib64 -Wl,-rpath,/usr/lib64/opencascade-7.3.0/lib64: -lmpi_cxx -lmpi /usr/lib64/libTKSTL.so.11.0.0 /usr/lib64/libTKBin.so.11.0.0 /usr/lib64/libTKFeat.so.11.0.0 /usr/lib64/libTKXDESTEP.so.11.0.0 /usr/lib64/libTKXDEIGES.so.11.0.0 /usr/lib64/libTKMeshVS.so.11.0.0 /usr/lib64/libTKBinL.so.11.0.0 /usr/lib64/libTKSTEP.so.11.0.0 /usr/lib64/libTKSTEP209.so.11.0.0 /usr/lib64/libTKSTEPAttr.so.11.0.0 /usr/lib64/libTKSTEPBase.so.11.0.0 /usr/lib64/libTKIGES.so.11.0.0 /usr/lib64/libTKOffset.so.11.0.0 /usr/lib64/libTKFillet.so.11.0.0 /usr/lib64/libTKBool.so.11.0.0 /usr/lib64/libTKXSBase.so.11.0.0 /usr/lib64/libTKXCAF.so.11.0.0 /usr/lib64/libTKCAF.so.11.0.0 /usr/lib64/libTKBO.so.11.0.0 /usr/lib64/libTKPrim.so.11.0.0 /usr/lib64/libTKLCAF.so.11.0.0 /usr/lib64/libTKCDF.so.11.0.0 /usr/lib64/libTKV3d.so.11.0.0 /usr/lib64/libTKMesh.so.11.0.0 /usr/lib64/libTKHLR.so.11.0.0 /usr/lib64/libTKService.so.11.0.0 /usr/lib64/libTKShHealing.so.11.0.0 /usr/lib64/libTKTopAlgo.so.11.0.0 /usr/lib64/libTKGeomAlgo.so.11.0.0 /usr/lib64/libTKBRep.so.11.0.0 /usr/lib64/libTKGeomBase.so.11.0.0 /usr/lib64/libTKG3d.so.11.0.0 /usr/lib64/libTKG2d.so.11.0.0 /usr/lib64/libTKMath.so.11.0.0 /usr/lib64/libTKernel.so.11.0.0 -lpthread -ldl -lm /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libX11.so /usr/lib/libXext.so /usr/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libfreetype.so 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libSM.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/build.make:171: lib/libDriver.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
make[1]: *** [CMakeFiles/Makefile2:467: src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
make: *** [Makefile:130: all] Error 2
 * ERROR: media-gfx/freecad-9999::fordfrog failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/freecad-9999::fordfrog'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/freecad-9999::fordfrog'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/freecad-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/freecad-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
 * S: '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999'
any advice or fix is appreciated.
Last edited by fordfrog on Wed Jul 31, 2019 12:47 pm, edited 1 time in total.
clytle374
Posts: 116
Joined: Wed Nov 06, 2013 3:58 am

Re: multilib system: error adding symbols: file in wrong format

Postby clytle374 » Fri Jul 05, 2019 11:57 am

Another Gentoo user shows up! :D

I ran across nearly the exact problem when I switched to the 17.1 profile and all the libs moved around. I usually work directly from git and 'run in place' so I don't have to install. But I just started working with a overlay for freecad so I've been learning ebuilds. I'm not sure how I fixed my problem, it was slightly different and started with libexpat doing the same thing. These's a thread here about it, but I doubt it will help.

I had several of those files you listed give me issues also. I know my system seemed to intermittently ignore ldconfig and ./etc/profile. It was when I tried the overlay that my problem sorted itself out. Using cmake-gui is a big help for finding what is going wrong. I even deleted the build directory trying to correct it. But I guess that happens every time with a ebuild?

It really seems that salomesmesh configuring ignores freecads configuration.

I see this in your output. Mine did that too,

Code: Select all

-- Python:              [/var/tmp/portage/media-gfx/freecad-9999/temp/python3.6/bin/python] [.cpython-36m-x86_64-linux-gnu]
Changed it to this, as the above makes no sense to me.

Code: Select all

-- Python:              [/usr/bin/python3.6m] [.cpython-36m-x86_64-linux-gnu]
This should do it.

Code: Select all

-DPYTHON_EXECUTABLE:FILEPATH="/usr/bin/python3.6m" 

The issue with these files
  • /usr/lib/libSM.so
    /usr/lib/libICE.so
    /usr/lib/libX11.so
    /usr/lib/libXext.so
    /usr/lib/libGL.so
    /usr/lib/libGLU.so
    /usr/lib/libfreetype.so
Happened to me in in the SMDS part of salomesh, I was able to fix them in this file /freecad2/src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/build.make near the end of the file. But the driver portion failing on you doesn't list them in its build.make file. Of course it was overwritten when running cmake. Sorry but I don't understand that all.

Code: Select all

-DOPENGL_gl_LIBRARY:FILEPATH="/usr/lib64/libGL.so" 
 -DOPENGL_glu_LIBRARY:FILEPATH="/usr/lib64/libGLU.so" 
 -DFREETYPE_LIBRARY_RELEASE:FILEPATH="/usr/lib64/libfreetype.so"
Should fix the path to those.

Code: Select all

/usr/lib/libSM.so

Code: Select all

/usr/lib/libICE.so

Code: Select all

/usr/lib/libX11.so

Code: Select all

/usr/lib/libXext.so
Not sure what they configuration for these is called

Hope that helps a little, maybe someone can chime in with what those options are called. Here is the output of my cmake
Cory

Code: Select all

  cmake . 
-- Compiler: GNU, version: 8.3.0
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- cmake: 3.14.3
-- Boost version: 1.65.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/cory/sources/freecad-code/src
--   Sources:  /home/cory/sources/freecad-code/src/CXX
--   Version:  6.2.8
-- -- Found OCE/OpenCASCADE version: 7.3.0
-- -- OCE/OpenCASCADE include directory: /usr/lib64/opencascade-7.3.0/ros/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64/opencascade-7.3.0/ros/lib64
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- We guess that libmed was built using hdf5-serial version
-- Checking for one of the modules 'hdf5-serial'
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Checking for module 'Coin'
--   Found Coin, version 4.0.0
-- Coin3D libraries found
-- Shiboken2Config: Using default python: .cpython-36m-x86_64-linux-gnu
-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-36m-x86_64-linux-gnu
-- libshiboken built for Release
-- -- matplotlib-2.2.2 has been found.
-- Platform is 64-bit, set -D_OCC64
-- Build type: 
git
/home/cory/freecad2/src/Build/Version.h.out written
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Boost version: 1.65.0
-- Found the following Boost libraries:
--   python36
-- found Boost: 1_65
-- boost-incude dirs are: /usr/include
-- boost-python lib is: 
-- boost_LIBRARY_DIRS is: /usr/lib64
-- Boost_LIBRARIES is: /usr/lib64/libboost_python-3.6-mt.so
-- area module (for Path Workbench) will be installed to: /usr/local/lib
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- 
==============
Summary report
==============

-- Python:              [/usr/bin/python3.6m] [.cpython-36m-x86_64-linux-gnu]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               106500
-- XercesC:             [/usr/lib64/libxerces-c.so] [/usr/include]
-- ZLIB:                1.2.11
-- PyCXX:               [/home/cory/sources/freecad-code/src]
-- OCC:                 7.3.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
-- SMESH:               build internal
--  MEDFile:            [/usr/lib64/libmedC.so;/usr/lib64/libmed.so] [/usr/include]
--  HDF5:               1.10.5
--  VTK:                8.2.0
-- NETGEN:              not enabled
-- SWIG:                3.0.12
-- Eigen3               3.3.7
-- Qt5Core:             5.12.3
-- Qt5Network:          5.12.3
-- Qt5Xml:              5.12.3
-- Qt5XmlPatterns:      5.12.3
-- Qt5Widgets:          5.12.3
-- Qt5PrintSupport:     5.12.3
-- Qt5OpenGL:           5.12.3
-- Qt5Svg:              5.12.3
-- Qt5UiTools:          5.12.3
-- Qt5Concurrent:       5.12.3
-- Qt5WebKitWidgets:    5.212.0
-- Shiboken2:           5.9.0 [/usr/lib64/cmake/Shiboken2-5.9.0] [/usr/include/shiboken2]
-- PySide2:             5.9.0 [/usr/include/PySide2]
-- PySide2Tools:        [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
-- Freetype:            2.9.1
-- OpenGLU:             /usr/lib64/libGLU.so [/usr/lib64/libGLU.so][/usr/include]
-- Coin3D:              [Coin] []
-- SPNAV:               [/usr/lib64/libspnav.so] [/usr/include]
-- Matplotlib:          2.2.2
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             not found
=================================================
Now run 'cmake --build /home/cory/freecad2' to build FreeCAD
=================================================

-- Configuring done
-- Generating done
-- Build files have been written to: /home/cory/freecad2
  
clytle374
Posts: 116
Joined: Wed Nov 06, 2013 3:58 am

Re: multilib system: error adding symbols: file in wrong format

Postby clytle374 » Fri Jul 05, 2019 12:00 pm

One other thing that I did that might have been involved is going through eselect and reselecting things involved.
wmayer
Site Admin
Posts: 14429
Joined: Thu Feb 19, 2009 10:32 am

Re: multilib system: error adding symbols: file in wrong format

Postby wmayer » Fri Jul 05, 2019 12:45 pm

-- cmake: 3.14.3
I remember some people saying they have problems with cmake 3.14. Maybe this is the culprit and causes all the problems. So, if possible try an older version like 3.11 or so.
fordfrog
Posts: 4
Joined: Fri Jul 05, 2019 7:17 am

Re: multilib system: error adding symbols: file in wrong format

Postby fordfrog » Fri Jul 05, 2019 7:41 pm

thank you both for your answers :-)

i tried to downgrade cmake to 3.13.5 (that's the oldest we have) but that did not work. up to that, it issued some warnings about boost.

then i tried to set the following on the cmake with no success (it's not grabbed by salomesmesh obviously):

Code: Select all

-DOPENGL_gl_LIBRARY:FILEPATH="/usr/lib64/libGL.so" 
-DOPENGL_glu_LIBRARY:FILEPATH="/usr/lib64/libGLU.so" 
-DFREETYPE_LIBRARY_RELEASE:FILEPATH="/usr/lib64/libfreetype.so"
i did not touch the python path as portage creates the interpreter at the path and it works for me.

in the end i used the idea of rewriting the paths after configuration selectively. i did this in the ebuild:

Code: Select all

        # Fix paths on amd64 (temporary hack)
        if use amd64; then
                for lib in libSM.so libICE.so libX11.so libXext.so libGL.so libGLU.so libfreetype.so; do
                        count=0
                        for file in $(grep /usr/lib/${lib} ${BUILD_DIR}/* -rl); do 
                                sed -i "s%/usr/lib/${lib}%/usr/lib64/${lib}%g" $file
                                count=$((count+1))
                        done
                        einfo "Fixed /usr/lib/${lib} to /usr/lib64/${lib} in ${count} affected file(s)"
                done
        fi
which outputs this:

Code: Select all

 * Fixed /usr/lib/libSM.so to /usr/lib64/libSM.so in 80 affected file(s)
 * Fixed /usr/lib/libICE.so to /usr/lib64/libICE.so in 80 affected file(s)
 * Fixed /usr/lib/libX11.so to /usr/lib64/libX11.so in 80 affected file(s)
 * Fixed /usr/lib/libXext.so to /usr/lib64/libXext.so in 80 affected file(s)
 * Fixed /usr/lib/libGL.so to /usr/lib64/libGL.so in 80 affected file(s)
 * Fixed /usr/lib/libGLU.so to /usr/lib64/libGLU.so in 80 affected file(s)
 * Fixed /usr/lib/libfreetype.so to /usr/lib64/libfreetype.so in 80 affected file(s)
and most importantly, it works :-) though it is a hack. i'm still looking for a real fix rather than this hack, but at least i can compile and use freecad again :-)

p.s.: i like gentoo a lot, for many reasons... :-)
clytle374
Posts: 116
Joined: Wed Nov 06, 2013 3:58 am

Re: multilib system: error adding symbols: file in wrong format

Postby clytle374 » Sat Jul 06, 2019 3:12 am

Glad you got it working. Been thinking and looking around what might have changed in my system that sorted the problem out. Even after I got it to work I had issues with ${CASROOT} not returning the proper path when using waebbl overlay, then suddenly that corrected itself. I'd be curious the libGL.so libGLU.so libfreetype.so files were needed in the script to after this

Code: Select all

-DOPENGL_gl_LIBRARY:FILEPATH="/usr/lib64/libGL.so" 
-DOPENGL_glu_LIBRARY:FILEPATH="/usr/lib64/libGLU.so" 
-DFREETYPE_LIBRARY_RELEASE:FILEPATH="/usr/lib64/libfreetype.so"
I understand libSM.so libICE.so libX11.so libXext.so not being fixed since I didn't see an option to change them.

Only further input I can offer is the list of packages I emerged in the period of time when the problem went away. Some came from the waebbl overlay, but don't have a way to denote which ones came from where. I honestly don't know how to tell other than doing emerge -pv on each one.

Code: Select all

     Mon Jul  1 23:27:05 2019 >>> media-libs/simage-1.7.0-r1
     Mon Jul  1 23:27:14 2019 >>> x11-apps/xdpyinfo-1.3.2
     Mon Jul  1 23:27:21 2019 >>> app-misc/spacenavd-0.6
     Mon Jul  1 23:27:36 2019 >>> dev-libs/OpenNI2-2.2_beta2
     Mon Jul  1 23:27:42 2019 >>> dev-libs/libspnav-0.2.2
     Mon Jul  1 23:27:49 2019 >>> media-gfx/opencsg-1.4.2-r1
     Mon Jul  1 23:29:15 2019 >>> sci-libs/flann-1.9.1-r2
     Mon Jul  1 23:30:06 2019 >>> sci-libs/libmed-4.0.0-r1
     Mon Jul  1 23:30:26 2019 >>> sci-libs/orocos_kdl-1.4.0
     Mon Jul  1 23:30:33 2019 >>> dev-util/pybind11-2.3.0
     Mon Jul  1 23:30:43 2019 >>> dev-libs/libzip-1.5.1
     Mon Jul  1 23:31:08 2019 >>> sci-mathematics/cgal-4.11.3
     Mon Jul  1 23:31:42 2019 >>> x11-libs/qscintilla-2.10.8
     Mon Jul  1 23:31:57 2019 >>> media-libs/openal-1.19.1
     Mon Jul  1 23:32:44 2019 >>> media-libs/coin-4.0.0a_pre20181221
     Mon Jul  1 23:35:03 2019 >>> media-gfx/openscad-2019.05
     Mon Jul  1 23:35:23 2019 >>> media-libs/SoQt-1.6.0a_pre20181221
     Mon Jul  1 23:38:52 2019 >>> dev-python/pivy-0.6.4
     Mon Jul  1 23:56:34 2019 >>> sys-process/numactl-2.0.11
     Mon Jul  1 23:57:04 2019 >>> sys-apps/hwloc-1.11.2-r1
     Tue Jul  2 00:01:13 2019 >>> sys-cluster/openmpi-2.0.2
     Tue Jul  2 00:01:18 2019 >>> virtual/mpi-2.0-r4
     Tue Jul  2 00:01:56 2019 >>> dev-libs/xerces-c-3.2.2-r1
     Tue Jul  2 01:29:00 2019 >>> sci-libs/proj-4.9.2
     Tue Jul  2 01:36:39 2019 >>> dev-lang/spidermonkey-60.5.2_p0-r2
     Tue Jul  2 01:36:48 2019 >>> app-arch/lz4-1.8.3
     Tue Jul  2 01:36:57 2019 >>> media-libs/libharu-2.3.0-r2
     Tue Jul  2 01:44:41 2019 >>> sci-libs/vtk-8.2.0
     Tue Jul  2 01:55:01 2019 >>> sci-libs/opencascade-7.3.0
     Tue Jul  2 01:55:46 2019 >>> dev-python/shiboken-9999
     Tue Jul  2 02:06:50 2019 >>> dev-python/pyside-9999
     Tue Jul  2 02:07:08 2019 >>> dev-python/pyside-tools-9999
     Tue Jul  2 02:07:43 2019 >>> sys-auth/polkit-0.115-r4
     Tue Jul  2 02:09:47 2019 >>> kde-apps/akonadi-18.12.3-r2
     Tue Jul  2 02:43:04 2019 >>> sys-process/numactl-2.0.11
     Tue Jul  2 02:43:36 2019 >>> sys-apps/hwloc-1.11.2-r1
     Tue Jul  2 02:47:49 2019 >>> sys-cluster/openmpi-2.0.2
     Tue Jul  2 02:47:54 2019 >>> virtual/mpi-2.0-r4
     Tue Jul  2 02:52:16 2019 >>> x11-apps/xdpyinfo-1.3.2
     Tue Jul  2 02:52:22 2019 >>> app-misc/spacenavd-0.6
     Tue Jul  2 03:02:05 2019 >>> x11-apps/xdpyinfo-1.3.2
     Tue Jul  2 03:02:12 2019 >>> app-misc/spacenavd-0.6
     Tue Jul  2 03:02:17 2019 >>> dev-libs/libspnav-0.2.2
     Tue Jul  2 03:20:40 2019 >>> sci-libs/flann-1.9.1-r2
     Tue Jul  2 03:21:01 2019 >>> sci-libs/orocos_kdl-1.4.0
     Tue Jul  2 03:21:11 2019 >>> dev-libs/libzip-1.5.1
     Tue Jul  2 03:21:49 2019 >>> x11-libs/qscintilla-2.10.8
     Tue Jul  2 03:22:04 2019 >>> dev-libs/OpenNI2-2.2_beta2
     Tue Jul  2 03:22:10 2019 >>> media-gfx/opencsg-1.4.2-r1
     Tue Jul  2 03:22:37 2019 >>> sci-mathematics/cgal-4.11.3
     Tue Jul  2 03:22:58 2019 >>> media-libs/SoQt-1.6.0a_pre20181221
     Tue Jul  2 03:26:30 2019 >>> dev-python/pivy-0.6.4
     Tue Jul  2 03:28:55 2019 >>> media-gfx/openscad-2019.05
     Tue Jul  2 04:31:45 2019 >>> media-gfx/freecad-9999
Let me know if I can help you out with any other info from my system.
Thanks
Cory
User avatar
waebbl
Posts: 87
Joined: Thu Aug 16, 2018 3:12 pm

Re: multilib system: error adding symbols: file in wrong format

Postby waebbl » Mon Jul 29, 2019 6:13 am

Hi, I too had at first trouble with some libraries after upgrading to 17.1 (multilib) profile. I solved them by re-emerging the relevant packages, which I had identified by inspecting pkg-config and cmake files for wrong paths.

What I find suspicious are those lines from your config output:
fordfrog wrote:
Fri Jul 05, 2019 8:00 am

Code: Select all

-- -- OpenCASCADE Community Edition has been found.
-- Found OCC: /usr/lib64/oce-0.18/../../include/oce (found version "6.9.1") 
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/lib64/oce-0.18/../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64/opencascade-7.3.0/lib64

...

-- OCC:                 6.9.1 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
This looks like you have both sci-libs/oce and sci-libs/opencascade installed. Cmake then uses the include dir of oce but the library dirs from opencascade, while at the end it says, it's using the libraries from oce. To me this is a conflict. Have you tried rebuilding both of them, or have only one of them installed? I never tried building against oce and have always been using opencascade package, so I don't know whether oce works on gentoo. But opencascade was one of the packages, I had to rebuilt after profile upgrade.
fordfrog
Posts: 4
Joined: Fri Jul 05, 2019 7:17 am

Re: multilib system: error adding symbols: file in wrong format

Postby fordfrog » Wed Jul 31, 2019 12:46 pm

weabbl, you hit the nail at the head :-) I did not notice this conflict but that was probably the exact cause. i really have both implementations installed (oce pulled in by kicad). i noticed that oce still used the old lib path so i rebuilt it. i did not check whether this fixed the issue or not though. i more concentrated on fixing getting the right opencascade when configuring freecad. in the end i managed to fix the paths. now it seems to use correct paths for opencascade. i consider this issue to be solved :-) thanks again! :-)
clytle374
Posts: 116
Joined: Wed Nov 06, 2013 3:58 am

Re: [SOLVED] multilib system: error adding symbols: file in wrong format

Postby clytle374 » Thu Aug 01, 2019 5:15 pm

Just fyi: not sure about the kicad in portage, but kicad builds fine with the official opencascade
fordfrog
Posts: 4
Joined: Fri Jul 05, 2019 7:17 am

Re: [SOLVED] multilib system: error adding symbols: file in wrong format

Postby fordfrog » Fri Aug 02, 2019 10:42 am

i just switched kicad to opencascade, it has default dependency on oce :-)