From owner-freebsd-ports-bugs@freebsd.org Thu Sep 12 11:03:06 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3C9EBF28F8 for ; Thu, 12 Sep 2019 11:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46TbTk0wd6z47K8 for ; Thu, 12 Sep 2019 11:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1DC45F28F7; Thu, 12 Sep 2019 11:03:06 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1D857F28F6 for ; Thu, 12 Sep 2019 11:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46TbTj73vdz47K6 for ; Thu, 12 Sep 2019 11:03:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D66511DCD0 for ; Thu, 12 Sep 2019 11:03:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x8CB35q5096724 for ; Thu, 12 Sep 2019 11:03:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8CB354O096723 for ports-bugs@FreeBSD.org; Thu, 12 Sep 2019 11:03:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 240531] multimedia/kvazaar: fix build on powerpc64 elfv2 Date: Thu, 12 Sep 2019 11:03:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2019 11:03:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240531 Bug ID: 240531 Summary: multimedia/kvazaar: fix build on powerpc64 elfv2 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: pkubaj@FreeBSD.org Assignee: jbeich@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) Created attachment 207417 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D207417&action= =3Dedit patch Reported at: https://github.com/ultravideo/kvazaar/issues/245 I use LLVM 8.0.1 on FreeBSD/powerpc64. Currently build fails with: libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -DKVZ_DLL_EXPORTS -maltivec -pthread -Wall -Wextra -Wvla -Wno-sign-compare -Wno-unused-parameter -I./src -I./src/extras -ftree-vectorize -fvisibility=3Dhidden -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT strategies/altivec/libaltivec_la-picture-altivec.lo -MD -MP -MF strategies/altivec/.deps/libaltivec_la-picture-altivec.Tpo -c strategies/altivec/picture-altivec.c -fPIC -DPIC -o strategies/altivec/.libs/libaltivec_la-picture-altivec.o In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:69:19: error: unknown type name 'vec= tor' static __inline__ vector bool char __ATTRS_o_ai ^ /usr/lib/clang/8.0.1/include/altivec.h:69:26: error: expected identifier or= '(' static __inline__ vector bool char __ATTRS_o_ai ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:80:19: error: unknown type name 'vec= tor' static __inline__ vector bool short __ATTRS_o_ai vec_perm( ^ /usr/lib/clang/8.0.1/include/altivec.h:80:26: error: expected identifier or= '(' static __inline__ vector bool short __ATTRS_o_ai vec_perm( ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:94:19: error: unknown type name 'vec= tor' static __inline__ vector bool int __ATTRS_o_ai ^ /usr/lib/clang/8.0.1/include/altivec.h:94:26: error: expected identifier or= '(' static __inline__ vector bool int __ATTRS_o_ai ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:217:9: error: unknown type name 'vec= tor' vec_add(vector bool char __a, vector signed char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:217:16: error: expected ')' vec_add(vector bool char __a, vector signed char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ /usr/lib/clang/8.0.1/include/altivec.h:217:8: note: to match this '(' vec_add(vector bool char __a, vector signed char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:217:16: error: parameter name omitted vec_add(vector bool char __a, vector signed char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:218:30: error: use of undeclared identifier '__a' return (vector signed char)__a + __b; ^ /usr/lib/clang/8.0.1/include/altivec.h:218:36: error: use of undeclared identifier '__b' return (vector signed char)__a + __b; ^ /usr/lib/clang/8.0.1/include/altivec.h:222:33: error: unknown type name 'vector' vec_add(vector signed char __a, vector bool char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:222:40: error: expected ')' vec_add(vector signed char __a, vector bool char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ /usr/lib/clang/8.0.1/include/altivec.h:222:8: note: to match this '(' vec_add(vector signed char __a, vector bool char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:222:40: error: parameter name omitted vec_add(vector signed char __a, vector bool char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:223:36: error: use of undeclared identifier '__b' return __a + (vector signed char)__b; ^ /usr/lib/clang/8.0.1/include/altivec.h:232:9: error: unknown type name 'vec= tor' vec_add(vector bool char __a, vector unsigned char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:232:16: error: expected ')' vec_add(vector bool char __a, vector unsigned char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ /usr/lib/clang/8.0.1/include/altivec.h:232:8: note: to match this '(' vec_add(vector bool char __a, vector unsigned char __b) { ^ /usr/lib/clang/8.0.1/include/altivec.h:232:16: error: parameter name omitted vec_add(vector bool char __a, vector unsigned char __b) { ^ /usr/include/stdbool.h:39:14: note: expanded from macro 'bool' #define bool _Bool ^ In file included from strategies/altivec/picture-altivec.c:24: /usr/lib/clang/8.0.1/include/altivec.h:233:32: error: use of undeclared identifier '__a' return (vector unsigned char)__a + __b; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] If I remove include from strategies/altivec/picture-altivec.c a= nd put it above global.h in strategies/altivec/picture-altivec.h or above stdbool.h in global.h, build works. Would it be possible replace including with: typedef enum { false, true } bool;? I can confirm that it works. --=20 You are receiving this mail because: You are the assignee for the bug.=