View previous topic :: View next topic |
Author |
Message |
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Wed Apr 17, 2019 3:22 pm Post subject: cannot build media-libs/raspberry-userland in aarch64 chroot |
|
|
I want to build it for raspberry pi 3 b+.
The error is
Code: | build/inc/interface/vcos/vcos_assert.h:303:69: error: size of array ‘vcos_static_assert’ is negative
make[2]: *** [interface/khronos/CMakeFiles/EGL_static.dir/build.make:591: interface/khronos/CMakeFiles/EGL_static.dir/common/khrn_client.c.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/raspberrypi-userland-0_pre20160424/work/raspberrypi-userland-0_pre20160424_build'
make[1]: *** [CMakeFiles/Makefile2:529: interface/khronos/CMakeFiles/EGL_static.dir/all] Error 2
... (more)
|
Here is build.log |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31280 Location: here
|
|
Back to top |
|
|
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Wed Apr 17, 2019 11:06 pm Post subject: |
|
|
There is no ebuild that can build it on aarch64 properly. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31280 Location: here
|
Posted: Thu Apr 18, 2019 6:08 am Post subject: |
|
|
Try with (not tested and it fails on other archs)
raspberrypi-userland-9999: | # Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit cmake-utils flag-o-matic git-r3
DESCRIPTION="Raspberry Pi userspace tools and libraries"
HOMEPAGE="https://github.com/raspberrypi/userland"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND=""
RDEPEND=""
EGIT_REPO_URI="https://github.com/raspberrypi/userland"
pkg_setup() {
append-ldflags $(no-as-needed)
}
src_configure() {
local mycmakeargs=(
-DVMCS_INSTALL_PREFIX="/usr"
-DARM64=ON
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
insinto /lib/udev/rules.d
doins "${FILESDIR}"/92-local-vchiq-permissions.rules
dodir /usr/share/doc/${PF}
mv "${D}"/usr/src/hello_pi "${D}"/usr/share/doc/${PF}/
rmdir "${D}"/usr/src
} |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|