From owner-freebsd-ports@freebsd.org Wed Apr 20 08:28:47 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D336B15FF4 for ; Wed, 20 Apr 2016 08:28:47 +0000 (UTC) (envelope-from foo.barmann@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3870110FC for ; Wed, 20 Apr 2016 08:28:47 +0000 (UTC) (envelope-from foo.barmann@gmail.com) Received: by mail-ig0-x236.google.com with SMTP id g8so41891524igr.0 for ; Wed, 20 Apr 2016 01:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to; bh=VpNykFe7RYX6MP+4BOVIDlVefTMlCQhEBrkwdzy/RbY=; b=zANAS9sbycFA/eSXwngpjSX83p6BPN5qAhCky1MsY2CHiE/4eQLQ+xEpLrF3CXD93C OeForlHRn7QcTOKgRO53bJYAtd8M1x/HDaUk7OGtkuaA8iEeaxDdRv44Cp21pI9ypw4g PVFs2f/pQi2gvqRRauCXbM17XAO+kp5/q+yPpfffmyxzTTEkh5VZ7Gc3HPMDCU5qiYAC 82PAeVcamW7fRqBK3dWmzWAt7AWnhOxfdYSzsNoOK+qZTsAcSgmqsCXSJT+AjgZ/I3M8 fcBLtsb7/iM9xwR7lul/cm2z7CUmzSjwTN3B54DH1N1RmANosR4IaHUVZznuJB6git36 n1Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to; bh=VpNykFe7RYX6MP+4BOVIDlVefTMlCQhEBrkwdzy/RbY=; b=hTw8JnAzLqGI1kIvdHNu3Wy4zDMy2FkBGtclao5dsDQQ4qV6KURohoCJkAt1gYfUlU LwwIsb7Oi2jWNqMp21K6Ayv1vm90a+CwoWsChWG8ih832SfFzEh/D2ZMsVWnLYcNhrm1 TSNnQZXmBgtjjb9vFu34UmrSUgWmyvLAaB9UcCASC4XMWrU2Q0AN2LwokrjpwhRoHXVM OV5HZ3/JRxU30Qauy5U6L8PJnl8cXLorGERntN+OgLWTfE14lFVmtoR9yZ/kuGI5CJ4l TcFSgPdyBqkPi5B0eTDPv3NtMgHyXRF2Oz3M8RsSpotw8SlII5OIJhfG7l6TNtuEYJFV vxPA== X-Gm-Message-State: AOPr4FUtyZstuG2U2gjHk0LaoAfGrGx/G/OCr2fUmGUoebE2Ls2nRQoIWk9k09UaXgB0H7muE4HAaqwP22aeqg== MIME-Version: 1.0 X-Received: by 10.50.114.135 with SMTP id jg7mr387133igb.53.1461140926535; Wed, 20 Apr 2016 01:28:46 -0700 (PDT) Sender: foo.barmann@gmail.com Received: by 10.64.18.66 with HTTP; Wed, 20 Apr 2016 01:28:46 -0700 (PDT) Date: Wed, 20 Apr 2016 10:28:46 +0200 X-Google-Sender-Auth: qMtSEon2_pTYiONA6_iFMj-64eE Message-ID: Subject: Needing help getting cad/kicad-devel compiled under FreeBSD-9 From: mr To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 08:28:47 -0000 Hi, since the last update kicad seems to use GLM (math/glm) additionaly. Compiling under FreeBSD-10 works FreeBSD-9 not. A bugreport ( https://bugs.launchpad.net/kicad/+bug/1571393 ) for kicad got closed because of: ... 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. ... Since GLM is the same in ports on FreeBSD-9/10 the Issue is probably due to the way FreeBSD handles the compiler/settings... The difference seems to be that FreeBSD-10 chooses the base clang++ as compiler, FreeBSD-9 uses g++48 from ports as compiler. In the Makefile I have 'USES=...compiler:c++11-lib...'. Shouldn't this be sufficient to select the appropriate compiler/settings? Compiling under FreeBSD-9 gives: ... [ 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 glm::round(const vecType&) [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::call(, const glm::tvec2&)' return detail::functor1::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 glm::detail::functor1::call(R (*)(T), const glm::tvec2&) [with R = float; T = float; glm::precision P = (glm::precision)0u] GLM_FUNC_QUALIFIER static tvec2 call(R (*Func) (T x), tvec2 const & v) ^ /usr/local/include/glm/detail/_vectorize.hpp:58:41: note: no known conversion for argument 1 from '' 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 glm::round(const vecType&) [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::call(, const glm::tvec4&)' return detail::functor1::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 glm::detail::functor1::call(R (*)(T), const glm::tvec4&) [with R = float; T = float; glm::precision P = (glm::precision)0u] GLM_FUNC_QUALIFIER static tvec4 call(R (*Func) (T x), tvec4 const & v) ^ /usr/local/include/glm/detail/_vectorize.hpp:76:41: note: no known conversion for argument 1 from '' 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! Greetings --- Mike