Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2023 15:00:35 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 09af31429903 - main - cad/brlcad: fix build on powerpc64
Message-ID:  <202308291500.37TF0Zps017475@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09af31429903340a7cf58005637c9540b8e245e4

commit 09af31429903340a7cf58005637c9540b8e245e4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-29 14:25:26 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-29 14:25:26 +0000

    cad/brlcad: fix build on powerpc64
    
    /usr/bin/c++ -DBN_DLL_EXPORTS -DBRLCADBUILD -DHAVE_CONFIG_H -I/wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/include -I/wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/include/brlcad -isystem /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/other/Eigen -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11  -D_XOPEN_SOURCE=700 -pipe -fvisibility=hidden -fno-strict-aliasing -fno-common -fexceptions -ftemplate-depth-128 -m64 -g -ggdb3 -Qunused-arguments -O3 -finline-functions -flto -fno-omit-frame-pointer -pedantic
    -Wall -Wextra -Wundef -Wfloat-equal -Wshadow -Wbad-function-cast -Winline -Wno-long-long -Wno-variadic-macros -Wdocumentation -std=c++11 -fPIC -MD -MT src/libbn/CMakeFiles/libbn-obj.dir/plane.cpp.o -MF src/libbn/CMakeFiles/libbn-obj.dir/plane.cpp.o.d -o src/libbn/CMakeFiles/libbn-obj.dir/plane.cpp.o -c /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/libbn/plane.cpp
    In file included from /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/libbn/plane.cpp:36:
    In file included from /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/other/Eigen/Eigen/SVD:11:
    In file included from /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/other/Eigen/Eigen/QR:11:
    In file included from /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/other/Eigen/Eigen/Core:210:
    /wrkdirs/usr/ports/cad/brlcad/work/brlcad-7.32.6/src/other/Eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'?
      BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
                                   ^
    /usr/lib/clang/14.0.5/include/altivec.h:8501:34: note: 'vec_rsqrt' declared here
    static vector float __ATTRS_o_ai vec_rsqrt(vector float __a) {
                                     ^
---
 cad/brlcad/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile
index 4794a6dc0aed..c18000ae9c3f 100644
--- a/cad/brlcad/Makefile
+++ b/cad/brlcad/Makefile
@@ -29,6 +29,7 @@ USE_XORG=	ice sm x11 xau xcb xdamage xdmcp xext xfixes xft xi \
 
 CMAKE_OFF=	BRLCAD_ENABLE_STRICT
 CMAKE_INSTALL_PREFIX=	${PREFIX}/${PORTNAME}
+CXXFLAGS_powerpc64=	-mvsx
 
 TEST_TARGET=	check
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308291500.37TF0Zps017475>