Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot build media-libs/raspberry-userland in aarch64 chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Wed Apr 17, 2019 3:22 pm    Post subject: cannot build media-libs/raspberry-userland in aarch64 chroot Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31284
Location: here

PostPosted: Wed Apr 17, 2019 4:45 pm    Post subject: Reply with quote

See https://github.com/raspberrypi/userland/pull/507
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Wed Apr 17, 2019 11:06 pm    Post subject: Reply with quote

fedeliallalinea wrote:
See https://github.com/raspberrypi/userland/pull/507


There is no ebuild that can build it on aarch64 properly.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31284
Location: here

PostPosted: Thu Apr 18, 2019 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum