Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698038 - dev-libs/libuv-1.33.0 on RISCV - .../work/libuv-1.33.0/src/unix/random-sysctl.c:69:17: error: ‘SYS__sysctl’ undeclared (first use in this function); did you mean ‘SYS_keyctl’?
Summary: dev-libs/libuv-1.33.0 on RISCV - .../work/libuv-1.33.0/src/unix/random-sysctl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://github.com/libuv/libuv/issues...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-19 11:14 UTC by Marcus Comstedt
Modified: 2019-10-20 08:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Comstedt 2019-10-19 11:14:43 UTC
The file "src/unix/random-sysctl.c" tries to perform a "sysctl" syscall, but this syscall does not exist on riscv.  The result is a compilation failure:

/tmp/portage/dev-libs/libuv-1.33.0/work/libuv-1.33.0/src/unix/random-sysctl.c: In function ‘uv__random_sysctl’:
/tmp/portage/dev-libs/libuv-1.33.0/work/libuv-1.33.0/src/unix/random-sysctl.c:69:17: error: ‘SYS__sysctl’ undeclared (first use in this function); did you mean ‘SYS_keyctl’?
   69 |     if (syscall(SYS__sysctl, &args) == -1)
      |                 ^~~~~~~~~~~
      |                 SYS_keyctl
/tmp/portage/dev-libs/libuv-1.33.0/work/libuv-1.33.0/src/unix/random-sysctl.c:69:17: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:2904: src/unix/libuv_la-random-sysctl.lo] Error 1


Reproducible: Always

Steps to Reproduce:
1.Try to build dev-libs/libuv-1.33.0 on riscv
2.
3.
Actual Results:  
The build fails

Expected Results:  
The build succeeds

-9.2.0, glibc-2.29-r5, 5.3.7 riscv64)
=================================================================
System uname: Linux-5.3.7-riscv64-with-gentoo-2.6
KiB Mem:     8187020 total,   4741592 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 19 Oct 2019 08:30:01 +0000
Head commit of repository gentoo: 54129d273f9f9af52a3b7a5aa8e018c480f6d408
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          3.7.5-r1::gentoo
dev-util/cmake:           3.15.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

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

zeldin
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
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=rv64gc -mabi=lp64d"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo 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=rv64gc -mabi=lp64d"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/tmp/"
USE="acl berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pcre readline riscv split-usr ssl tcpd unicode xattr zlib" ABI_RISCV="lp64d" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="dummy fbdev 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcus Comstedt 2019-10-19 11:16:16 UTC
Sorry, the first line of emerge --info got truncated, it should say:

Portage 2.3.77 (python 3.7.5-final-0, default/linux/riscv/17.0/rv64gc/lp64d, gcc-9.2.0, glibc-2.29-r5, 5.3.7 riscv64)
Comment 2 Andreas Sturmlechner gentoo-dev 2019-10-19 16:37:58 UTC
Please submit a patch upstream.
Comment 3 Larry the Git Cow gentoo-dev 2019-10-19 21:54:02 UTC
The bug has been closed via the following commit(s):

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

commit 05db888f7a6d4ac62d03f6cb406bfb7ca16f3d66
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-10-19 21:53:37 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-10-19 21:53:59 +0000

    dev-libs/libuv: Version 1.33.1
    
    Package-Manager: Portage-2.3.77, Repoman-2.3.17
    Fixes: https://bugs.gentoo.org/show_bug.cgi?id=698038
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 dev-libs/libuv/Manifest                                     | 2 +-
 dev-libs/libuv/{libuv-1.33.0.ebuild => libuv-1.33.1.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-19 21:56:14 UTC
Should be fixed now.


 * linux: fix arm64 SYS__sysctl build breakage (Ben Noordhuis)
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-20 08:45:44 UTC
Not that one.