Compiling kicad fails under FreeBSD-9 with gcc-48

Bug #1571393 reported by Foo Barmann on 2016-04-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Undecided
Unassigned

Bug Description

Hi,
while compiling kicad as of r6694 succeeds under FreeBSD-10 (which uses clang 3.4 as c++ compiler),
trying to compile kicad under FReeBSD 9.3 (which selects gcc-4.8 from ports as c++ compiler) fails with the followinf error:
...
===> Building for kicad-devel-r6694_1
/usr/local/bin/cmake -H/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 -B/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeFiles /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
/usr/bin/make -f bitmaps_png/CMakeFiles/bitmaps.dir/build.make bitmaps_png/CMakeFiles/bitmaps.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png/CMakeFiles/bitmaps.dir/DependInfo.cmake
/usr/bin/make -f bitmaps_png/CMakeFiles/bitmaps.dir/build.make bitmaps_png/CMakeFiles/bitmaps.dir/build
[ 33%] Built target bitmaps
/usr/bin/make -f common/CMakeFiles/shader_headers.dir/build.make common/CMakeFiles/shader_headers.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/shader_headers.dir/DependInfo.cmake
/usr/bin/make -f common/CMakeFiles/shader_headers.dir/build.make common/CMakeFiles/shader_headers.dir/build
[ 33%] Built target shader_headers
/usr/bin/make -f common/CMakeFiles/fp_lib_table_lexer_source_files.dir/build.make common/CMakeFiles/fp_lib_table_lexer_source_files.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/fp_lib_table_lexer_source_files.dir/DependInfo.cmake
/usr/bin/make -f common/CMakeFiles/fp_lib_table_lexer_source_files.dir/build.make common/CMakeFiles/fp_lib_table_lexer_source_files.dir/build
[ 33%] Built target fp_lib_table_lexer_source_files
/usr/bin/make -f common/CMakeFiles/version_header.dir/build.make common/CMakeFiles/version_header.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/version_header.dir/DependInfo.cmake
/usr/bin/make -f common/CMakeFiles/version_header.dir/build.make common/CMakeFiles/version_header.dir/build
[ 34%] Generating version string header
/usr/local/bin/cmake -DKICAD_BUILD_VERSION= -DOUTPUT_FILE=/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/kicad_build_version.h -DSRC_PATH=/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 -DCMAKE_MODULE_PATH=/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeModules -P /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeModules/WriteVersionHeader.cmake
-- Not updating /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/kicad_build_version.h
[ 34%] Built target version_header
/usr/bin/make -f common/CMakeFiles/specctra_lexer_source_files.dir/build.make common/CMakeFiles/specctra_lexer_source_files.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/specctra_lexer_source_files.dir/DependInfo.cmake
/usr/bin/make -f common/CMakeFiles/specctra_lexer_source_files.dir/build.make common/CMakeFiles/specctra_lexer_source_files.dir/build
[ 34%] Built target specctra_lexer_source_files
/usr/bin/make -f CMakeFiles/lib-dependencies.dir/build.make CMakeFiles/lib-dependencies.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeFiles/lib-dependencies.dir/DependInfo.cmake
/usr/bin/make -f CMakeFiles/lib-dependencies.dir/build.make CMakeFiles/lib-dependencies.dir/build
[ 34%] Built target lib-dependencies
/usr/bin/make -f common/CMakeFiles/gal.dir/build.make common/CMakeFiles/gal.dir/depend
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/gal.dir/DependInfo.cmake
/usr/bin/make -f common/CMakeFiles/gal.dir/build.make common/CMakeFiles/gal.dir/build
[ 34%] Building CXX object common/CMakeFiles/gal.dir/draw_panel_gal.cpp.o
cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common && /usr/local/bin/g++48 -DHAVE_STDINT_H -DKICAD_KEEPCASE -DUSE_OPENMP -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/. -isystem /usr/local/lib/wx/include/gtk2-unicode-3.0 -isystem /usr/local/include/wx-3.0 -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/./dialogs -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/./widgets -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/./dialog_about -I/usr/local/include/cairo -I/usr/local/include -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/../3d-viewer -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/../pcbnew -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/../polygon -I/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 -I/usr/local/include -Wall -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -Wno-unused-local-typedefs -Wno-strict-aliasing -fopenmp -pthread -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -o CMakeFiles/gal.dir/draw_panel_gal.cpp.o -c /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp
In file included from /usr/local/include/glm/detail/func_exponential.hpp:132:0,
                 from /usr/local/include/glm/detail/func_geometric.inl:33,
                 from /usr/local/include/glm/detail/func_geometric.hpp:142,
                 from /usr/local/include/glm/geometric.hpp:35,
                 from /usr/local/include/glm/gtc/matrix_transform.inl:33,
                 from /usr/local/include/glm/gtc/matrix_transform.hpp:394,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/vertex_manager.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/opengl_gal.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp:40:
/usr/local/include/glm/detail/func_exponential.inl:43:14: error: 'std::log2' has not been declared
   using std::log2;
              ^
In file included from /usr/local/include/glm/detail/func_common.hpp:455:0,
                 from /usr/local/include/glm/detail/func_geometric.inl:34,
                 from /usr/local/include/glm/detail/func_geometric.hpp:142,
                 from /usr/local/include/glm/geometric.hpp:35,
                 from /usr/local/include/glm/gtc/matrix_transform.inl:33,
                 from /usr/local/include/glm/gtc/matrix_transform.hpp:394,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/vertex_manager.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/opengl_gal.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp:40:
/usr/local/include/glm/detail/func_common.inl:229:16: error: 'std::trunc' has not been declared
   using ::std::trunc;
                ^
/usr/local/include/glm/detail/func_common.inl:248:16: error: 'std::round' has not been declared
   using ::std::round;
                ^
/usr/local/include/glm/detail/func_common.inl: In instantiation of 'vecType<T, P> glm::round(const vecType<T, P>&) [with T = float; glm::precision P = (glm::precision)0u; vecType = glm::tvec2]':
/usr/local/include/glm/detail/func_packing.inl:47:55: required from here
/usr/local/include/glm/detail/func_common.inl:262:59: error: no matching function for call to 'glm::detail::functor1<float, float, (glm::precision)0u, glm::tvec2>::call(<unresolved overloaded function type>, const glm::tvec2<float, (glm::precision)0u>&)'
   return detail::functor1<T, T, P, vecType>::call(round, x);
                                                           ^
/usr/local/include/glm/detail/func_common.inl:262:59: note: candidate is:
In file included from /usr/local/include/glm/detail/func_exponential.inl:34:0,
                 from /usr/local/include/glm/detail/func_exponential.hpp:132,
                 from /usr/local/include/glm/detail/func_geometric.inl:33,
                 from /usr/local/include/glm/detail/func_geometric.hpp:142,
                 from /usr/local/include/glm/geometric.hpp:35,
                 from /usr/local/include/glm/gtc/matrix_transform.inl:33,
                 from /usr/local/include/glm/gtc/matrix_transform.hpp:394,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/vertex_manager.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/opengl_gal.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp:40:
/usr/local/include/glm/detail/_vectorize.hpp:58:41: note: static glm::tvec2<R, P> glm::detail::functor1<R, T, P, glm::tvec2>::call(R (*)(T), const glm::tvec2<T, P>&) [with R = float; T = float; glm::precision P = (glm::precision)0u]
   GLM_FUNC_QUALIFIER static tvec2<R, P> call(R (*Func) (T x), tvec2<T, P> const & v)
                                         ^
/usr/local/include/glm/detail/_vectorize.hpp:58:41: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float (*)(float)'
In file included from /usr/local/include/glm/detail/func_common.hpp:455:0,
                 from /usr/local/include/glm/detail/func_geometric.inl:34,
                 from /usr/local/include/glm/detail/func_geometric.hpp:142,
                 from /usr/local/include/glm/geometric.hpp:35,
                 from /usr/local/include/glm/gtc/matrix_transform.inl:33,
                 from /usr/local/include/glm/gtc/matrix_transform.hpp:394,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/vertex_manager.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/opengl_gal.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp:40:
/usr/local/include/glm/detail/func_common.inl: In instantiation of 'vecType<T, P> glm::round(const vecType<T, P>&) [with T = float; glm::precision P = (glm::precision)0u; vecType = glm::tvec4]':
/usr/local/include/glm/detail/func_packing.inl:105:52: required from here
/usr/local/include/glm/detail/func_common.inl:262:59: error: no matching function for call to 'glm::detail::functor1<float, float, (glm::precision)0u, glm::tvec4>::call(<unresolved overloaded function type>, const glm::tvec4<float, (glm::precision)0u>&)'
   return detail::functor1<T, T, P, vecType>::call(round, x);
                                                           ^
/usr/local/include/glm/detail/func_common.inl:262:59: note: candidate is:
In file included from /usr/local/include/glm/detail/func_exponential.inl:34:0,
                 from /usr/local/include/glm/detail/func_exponential.hpp:132,
                 from /usr/local/include/glm/detail/func_geometric.inl:33,
                 from /usr/local/include/glm/detail/func_geometric.hpp:142,
                 from /usr/local/include/glm/geometric.hpp:35,
                 from /usr/local/include/glm/gtc/matrix_transform.inl:33,
                 from /usr/local/include/glm/gtc/matrix_transform.hpp:394,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/vertex_manager.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/include/gal/opengl/opengl_gal.h:35,
                 from /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/draw_panel_gal.cpp:40:
/usr/local/include/glm/detail/_vectorize.hpp:76:41: note: static glm::tvec4<R, P> glm::detail::functor1<R, T, P, glm::tvec4>::call(R (*)(T), const glm::tvec4<U, P>&) [with R = float; T = float; glm::precision P = (glm::precision)0u]
   GLM_FUNC_QUALIFIER static tvec4<R, P> call(R (*Func) (T x), tvec4<T, P> const & v)
                                         ^
/usr/local/include/glm/detail/_vectorize.hpp:76:41: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float (*)(float)'
*** [common/CMakeFiles/gal.dir/draw_panel_gal.cpp.o] Error code 1

Stop in /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694.
*** [common/CMakeFiles/gal.dir/all] Error code 1

Stop in /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694.
*** [all] Error code 1

Stop in /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694.
*** [do-build] Error code 1
...

Any clues how to fix this?

Thanks in advance
---
Mike

tags: added: cern gal pcbnew
removed: compile
xzcvczx (xzcvczx) wrote :

What version of GLM is it?

xzcvczx (xzcvczx) wrote :

what standard c++ libraries and version is being used as it appears its a libstdc++ issue.

Download full text (22.3 KiB)

Hi,
the version of GLM is glm-0.9.7.3

Am 17. April 2016 21:52:14 MESZ, schrieb Simon Wells <email address hidden>:
>What version of GLM is it?
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https://bugs.launchpad.net/bugs/1571393
>
>Title:
> Compiling kicad fails under FreeBSD-9 with gcc-48
>
>Status in KiCad:
> New
>
>Bug description:
> Hi,
>while compiling kicad as of r6694 succeeds under FreeBSD-10 (which uses
>clang 3.4 as c++ compiler),
>trying to compile kicad under FReeBSD 9.3 (which selects gcc-4.8 from
>ports as c++ compiler) fails with the followinf error:
> ...
> ===> Building for kicad-devel-r6694_1
>/usr/local/bin/cmake
>-H/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>-B/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>--check-build-system CMakeFiles/Makefile.cmake 0
>/usr/local/bin/cmake -E cmake_progress_start
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeFiles
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/CMakeFiles/progress.marks
> /usr/bin/make -f CMakeFiles/Makefile2 all
>/usr/bin/make -f bitmaps_png/CMakeFiles/bitmaps.dir/build.make
>bitmaps_png/CMakeFiles/bitmaps.dir/depend
>cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 &&
>/usr/local/bin/cmake -E cmake_depends "Unix Makefiles"
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/bitmaps_png/CMakeFiles/bitmaps.dir/DependInfo.cmake
>/usr/bin/make -f bitmaps_png/CMakeFiles/bitmaps.dir/build.make
>bitmaps_png/CMakeFiles/bitmaps.dir/build
> [ 33%] Built target bitmaps
>/usr/bin/make -f common/CMakeFiles/shader_headers.dir/build.make
>common/CMakeFiles/shader_headers.dir/depend
>cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 &&
>/usr/local/bin/cmake -E cmake_depends "Unix Makefiles"
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/shader_headers.dir/DependInfo.cmake
>/usr/bin/make -f common/CMakeFiles/shader_headers.dir/build.make
>common/CMakeFiles/shader_headers.dir/build
> [ 33%] Built target shader_headers
>/usr/bin/make -f
>common/CMakeFiles/fp_lib_table_lexer_source_files.dir/build.make
>common/CMakeFiles/fp_lib_table_lexer_source_files.dir/depend
>cd /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694 &&
>/usr/local/bin/cmake -E cmake_depends "Unix Makefiles"
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common
>/wrkdirs/usr/ports/cad/kicad-devel/work/kicad-r6694/common/CMakeFiles/fp_lib_table_lexer_source_files.dir/DependInfo.cmake
>/usr/bin/make -f
>common/CMakeFiles/fp_lib_table_lexer_source_files.dir/build.make
>co...

xzcvczx (xzcvczx) wrote :

and the standard c++ libs/versions?

Foo Barmann (foo-barmann) wrote :

Hi,
sorry but I'm not sure about the version of the c++libs.
Probably the one coming with clang++ 3.7

Is the a convenient way to look at the version?
A std. header or a g++ cmdline switch?

Thanks!

Greetings
---
Mike

xzcvczx (xzcvczx) wrote :

Sorry i am unsure as to how to check what std libs one has on freeBSD. The fault seems to be that its detecting c++11 support but that log2 is missing, and numerous other features. As reported this doesn't appear to be a Kicad bug, so i will close this bug, the problems are from GLM which may be better at providing support in this case.

Changed in kicad:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers