Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648512 - dev-lang/perl-5.26.1-r1 on prefix CentOS 7 - IO.xs:321:51: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
Summary: dev-lang/perl-5.26.1-r1 on prefix CentOS 7 - IO.xs:321:51: error: invalid app...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-22 13:01 UTC by Erik Zeek
Modified: 2021-01-10 19:13 UTC (History)
1 user (show)

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


Attachments
perl-5.26.1-r1-build.log (perl-5.26.1-r1-build.log,309.76 KB, text/plain)
2018-02-22 13:01 UTC, Erik Zeek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2018-02-22 13:01:28 UTC
Created attachment 520538 [details]
perl-5.26.1-r1-build.log

emerge --info '=dev-lang/perl-5.26.1-r1::gentoo' 
Portage 2.3.18-prefix (python 2.7.3-final-0, default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+, gcc-7.3.0, unavailable, 3.10.0-693.17.1.el7.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.0-693.17.1.el7.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v3_@_3.50GHz-with-centos-7.4.1708-Core
KiB Mem:    65696040 total,  57818600 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 22 Feb 2018 00:45:01 +0000
Head commit of repository gentoo: ea1e0e9284663160b2b635c81c858eb1234447e0
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p19::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/make:           4.2.1-r2::gentoo
sys-kernel/linux-headers: 4.15::gentoo
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /home/eczeek/gentoo/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64 ~amd64 ~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /home/eczeek/gentoo/etc/gentoo-release"
CXXFLAGS="-O2 -pipe -O2 -pipe"
DISTDIR="/home/eczeek/gentoo/tmp/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/home/eczeek/gentoo/tmp/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/eczeek/gentoo/tmp/"
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="/home/eczeek/gentoo/tmp/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix readline seccomp ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


x86_64-pc-linux-gnu-gcc -c   -fwrapv -fno-strict-aliasing -pipe -I/home/eczeek/gentoo/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -O2 -pipe -O2 -pipe   -DVERSION=\"1.38\" -DXS_VERSION=\"1.38\" -fPIC "-I../.."   IO.c
In file included from ../../perl.h:5646:0,
                 from IO.xs:12:
IO.xs: In function 'XS_IO__Poll__poll':
IO.xs:321:51: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
     SV *tmpsv = sv_2mortal(NEWSV(999,nfd * sizeof(struct pollfd)));
                                                   ^
../../embed.h:596:46: note: in definition of macro 'sv_2mortal'
 #define sv_2mortal(a)  Perl_sv_2mortal(aTHX_ a)
                                              ^
../../handy.h:2258:22: note: in expansion of macro 'newSV'
 #define NEWSV(x,len) newSV(len)
                      ^~~~~
IO.xs:321:28: note: in expansion of macro 'NEWSV'
     SV *tmpsv = sv_2mortal(NEWSV(999,nfd * sizeof(struct pollfd)));
                            ^~~~~
IO.xs:328:5: error: invalid use of undefined type 'struct pollfd'
  fds[j].fd = SvIV(ST(i));
     ^
IO.xs:328:5: error: dereferencing pointer to incomplete type 'struct pollfd'
IO.xs:330:5: error: invalid use of undefined type 'struct pollfd'
  fds[j].events = (short)SvIV(ST(i));
     ^
IO.xs:332:5: error: invalid use of undefined type 'struct pollfd'
  fds[j].revents = 0;
     ^
IO.xs:334:15: warning: implicit declaration of function 'poll'; did you mean 'powl'? [-Wimplicit-function-declaration]
     if((ret = poll(fds,nfd,timeout)) >= 0) {
               ^~~~
               powl
In file included from ../../perl.h:5646:0,
                 from IO.xs:12:
IO.xs:336:25: error: invalid use of undefined type 'struct pollfd'
      sv_setiv(ST(i), fds[j].fd); i++;
                         ^
../../embed.h:674:46: note: in definition of macro 'sv_setiv'
 #define sv_setiv(a,b)  Perl_sv_setiv(aTHX_ a,b)
                                              ^
IO.xs:337:25: error: invalid use of undefined type 'struct pollfd'
      sv_setiv(ST(i), fds[j].revents); i++;
                         ^
../../embed.h:674:46: note: in definition of macro 'sv_setiv'
 #define sv_setiv(a,b)  Perl_sv_setiv(aTHX_ a,b)
                                              ^
make[1]: *** [Makefile:344: IO.o] Error 1
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2018-02-23 21:35:43 UTC
does perl-5.25.1 work?
Comment 2 Erik Zeek 2018-02-26 05:28:49 UTC
(In reply to Andreas K. Hüttel from comment #1)
> does perl-5.25.1 work?

Sorry, I'm a bit of a noob when it comes to prefixes.

Stage3 hasn't completed yet, and every time I tried to emerge other versions I got errors about circular dependencies. So how would I emerge another version of perl?
Comment 3 Benda Xu gentoo-dev 2018-02-26 06:54:49 UTC
(In reply to Erik Zeek from comment #2)
> (In reply to Andreas K. Hüttel from comment #1)
> > does perl-5.25.1 work?
> 
> Sorry, I'm a bit of a noob when it comes to prefixes.
> 
> Stage3 hasn't completed yet, and every time I tried to emerge other versions
> I got errors about circular dependencies. So how would I emerge another
> version of perl?

If you man emerge, there is an ignore dependency option:

> --nodeps, -O
> Merges specified packages without merging any dependencies.  Note that the build may fail if the dependencies aren't satisfied.
Comment 4 Benda Xu gentoo-dev 2018-02-26 06:58:15 UTC
Hi Erik, could you inform me how you called the bootstrap script?

Your profile default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+ is prefix the glibc.  But your repository sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix is prefix-rpath.

This combination is a conflict.
Comment 5 Erik Zeek 2018-02-27 12:23:13 UTC
(In reply to Benda Xu from comment #4)
> Hi Erik, could you inform me how you called the bootstrap script?
> 
> Your profile default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+ is
> prefix the glibc.  But your repository sync-uri:
> rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix is prefix-rpath.
> 
> This combination is a conflict.

I followed the guide here:
https://wiki.gentoo.org/wiki/Project:Prefix/Bootstrap

and ran:
./bootstrap-prefix.sh


(In reply to Benda Xu from comment #3)
> (In reply to Erik Zeek from comment #2)
> 
> If you man emerge, there is an ignore dependency option:
> 
> > --nodeps, -O

Right. I forgot about that one. I'll give it a try later today.

Thanks!
Comment 6 Erik Zeek 2018-02-27 14:04:16 UTC
(In reply to Andreas K. Hüttel from comment #1)
> does perl-5.25.1 work?

That version is no longer available.

# ll gentoo/usr/portage/dev-lang/perl
total 152K
drwxr-xr-x. 2 eczeek eczeek   35 Feb 26 17:38 files
-rw-r--r--. 1 eczeek eczeek 5.8K Feb 22 17:08 Manifest
-rw-r--r--. 1 eczeek eczeek  430 Apr 29  2017 metadata.xml
-rw-r--r--. 1 eczeek eczeek  17K Jan 11 21:40 perl-5.24.3.ebuild
-rw-r--r--. 1 eczeek eczeek  17K Feb 22 17:08 perl-5.24.3-r1.ebuild
-rw-r--r--. 1 eczeek eczeek  19K Dec  3 15:39 perl-5.26.1.ebuild
-rw-r--r--. 1 eczeek eczeek  19K Jan  7 03:39 perl-5.26.1-r1.ebuild
-rw-r--r--. 1 eczeek eczeek  19K Feb 22 17:08 perl-5.26.1-r2.ebuild
-rw-r--r--. 1 eczeek eczeek  19K Jan  7 03:39 perl-5.26.9999.ebuild
-rw-r--r--. 1 eczeek eczeek  19K Jan 20 01:08 perl-5.28.9999.ebuild


perl-5.24.3-r1 has the same problem with pollfd, though.
Comment 7 Erik Zeek 2018-02-27 14:09:06 UTC
(In reply to Benda Xu from comment #4)
> Hi Erik, could you inform me how you called the bootstrap script?
> 
> Your profile default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+ is
> prefix the glibc.  But your repository sync-uri:
> rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix is prefix-rpath.
> 
> This combination is a conflict.

As an addendum to this. I'm running Centos 7, but the system compiler has been updated to gcc-5.3.1. So it's a bit of a frankensystem.
Comment 8 Fabian Groffen gentoo-dev 2021-01-10 19:13:03 UTC
we'd have to revisit this, bootstrapping on centos8 works fine