Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671492 - media-libs/raspberrypi-userland 0_pre20160424 - .../work/raspberrypi-userland-dff5760/interface/vmcs_host/linux/vcfilesys.c:246:16: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t {aka long int}’ [-Werror=fo
Summary: media-libs/raspberrypi-userland 0_pre20160424 - .../work/raspberrypi-userland...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-11-19 06:08 UTC by Jim Carter
Modified: 2020-11-23 04:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The build log (build_pre.log,119.40 KB, text/plain)
2018-11-19 06:14 UTC, Jim Carter
Details
environment file (environment_pre.txt,105.73 KB, text/plain)
2018-11-19 06:15 UTC, Jim Carter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Carter 2018-11-19 06:08:22 UTC
I have a Raspberry Pi 3B (arm64/aarch64 CPU) and my goal is to
activate 3D GPU rendering in X-Windows.  For this I need 
/usr/lib64/dri/vc4_dri.so which is the middleware to pass OpenGL
primitives to the vc4.ko driver and from there to the code in the GPU.
Various forum postings indicate that this library is to be found in
Gentoo package media-libs/raspberrypi-userland.  

The numerically most preferred package is raspberrypi-userland-9999 and
its ebuild file has a mtime of 2017-02-18.  See Gentoo bug 671490
for what prevented it from building.  

raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild has a
mtime of  2017-07-30 (more recent datewise).  I'm not sure which 
package I should report on, so I'm reporting both.  
I tried to emerge that one.  It needed a keyword change adding '**' (done).  
It also had leftovers from dealing with raspberrypi-userland-9999 so I did
ebuild /usr/portage/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild clean .
Then I did emerge --ask '=media-libs/raspberrypi-userland-0_pre20160424' .
It got through preliminary steps, but during compilation it
hit a type mismatch, int64_t is not recognized as conformable with 
long long int.  This is in interface/vmcs_host/linux/vcfilesys.c .Search 
for int64_t in the build log; the fifth occurrence is an error, while 
four previous ones that look similar are just warnings.  

In this compilation, interface/khronos/common/khrn_int_hash_asm.s was not
attempted, occurring later; this is the subject of bug 671490.  On the other
hand, when media-libs/raspberrypi-userland-9999 was attempted, 
interface/vmcs_host/linux/vcfilesys.c compiled with no errors or warnings.

I hope I'm not barking up the wrong tree.  
media-libs/raspberrypi-userland-bin 1.20170303 does not provide 
/usr/lib64/dri/vc4_dri.so , nor is it in a substitute location if I'm
reading the installation log correctly.  Since raspberrypi-userland-9999 
has some armv6 code, I'm wondering if it has no aarch64/arm64 code, 
which would preclude use on the Raspberry Pi 3B.  

(By the way, the comments on the bug form suggest that you prefer to
have the output of emerge --info pasted inline, but the USE variable
gets spurious newlines inserted.  Would you prefer the file of output?)
Comment 1 Jim Carter 2018-11-19 06:12:56 UTC
emerge -pqv:
[ebuild  N    ] media-libs/raspberrypi-userland-0_pre20160424  USE="-examples -wayland" 

emerge --info:
Portage 2.3.49 (python 3.6.5-final-0, default/linux/arm64/17.0/desktop, gcc-7.3.0, glibc-2.26-r7, 4.14.79-v8+ aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.79-v8+-aarch64-with-gentoo-2.4.1
KiB Mem:      992040 total,    240784 free
KiB Swap:     524284 total,    514300 free
Timestamp of repository gentoo: Wed, 07 Nov 2018 00:45:01 +0000
Head commit of repository gentoo: 8c0d5f3b7c0b5d0608031b18035833b62a0af4d6
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=1 --load-average=2"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1 --load-average 2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-
times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa arm64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 \
lb216 lcdm001 \
mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jim Carter 2018-11-19 06:14:35 UTC
Created attachment 555702 [details]
The build log
Comment 3 Jim Carter 2018-11-19 06:15:23 UTC
Created attachment 555704 [details]
environment file
Comment 4 ykla 2019-11-18 14:54:21 UTC
This software needs update. It has no update more than 3 years.
Comment 5 Larry the Git Cow gentoo-dev 2020-11-23 04:52:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7fbeb6481a6ffda252f343cc3eeee03533fbad5

commit d7fbeb6481a6ffda252f343cc3eeee03533fbad5
Author:     Peter Alfredsen <crabbedhaloablution@icloud.com>
AuthorDate: 2020-11-13 13:27:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-11-23 04:42:03 +0000

    media-libs/raspberrypi-userland: Version bump 0_pre20201022
    
    * Add -0_pre20201022, also update -9999 to same standard.
    * Patches described in ebuild.
    * raspberrypi-userland produces libEGL and libbrcmEGL, libGLESv2 and
    libbrcmGLESv2 libraries. Only the libbrcm variants are actually
    needed, plus the other variants collide with libglvnd.
    Thanks to KalleBlom on IRC for reporting.
    * More closely sync with Raspbian which libs we don't install.
    The source for this package is a mess. We build all kinds of things that
    just aren't installed, and by default install many things that
    shouldn't be.
    * Many .so files are not built on arm64, but currently we install
    the .pc files anyway. Fix by including the .pc files in the ARM64
    conditional.
    
    Closes: https://bugs.gentoo.org/754249
    Closes: https://bugs.gentoo.org/718366
    Closes: https://bugs.gentoo.org/671492
    Closes: https://bugs.gentoo.org/620774
    Signed-off-by: Peter Alfredsen <crabbedhaloablution@icloud.com>
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/raspberrypi-userland/Manifest           |   1 +
 .../files/raspberrypi-userland-include.patch       |  19 ++
 .../files/raspberrypi-userland-libdir.patch        | 316 +++++++++++++++++++++
 .../files/raspberrypi-userland-libfdt-static.patch |  22 ++
 .../files/raspberrypi-userland-pkgconf-arm64.patch |  38 +++
 .../raspberrypi-userland-0_pre20201022.ebuild      |  69 +++++
 .../raspberrypi-userland-9999.ebuild               |  65 +++--
 7 files changed, 511 insertions(+), 19 deletions(-)