Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835142 - sys-cluster/glusterfs-10.2-r2: fails to compile: glusterfs/dict.h:332:2: error: #error "unknown word size"
Summary: sys-cluster/glusterfs-10.2-r2: fails to compile: glusterfs/dict.h:332:2: erro...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
: 861437 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-14 14:14 UTC by Toralf Förster
Modified: 2023-03-01 09:04 UTC (History)
0 users

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 Toralf Förster gentoo-dev 2022-03-14 14:14:31 UTC
After emergeing a patched/fiexed liburing I do run at 17-0-musl-j4-20220306-010006 into :


libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_LINUX_HOST_OS -include ../../config.h -include ../../site.h -I../../libglusterfs/src -I../../libglusterfs/src -D__USE_FILE_OFFSET64 -DXLATORDIR=\"/usr/lib/glusterfs/10.1/xlator\" -DXLATORPARENTDIR=\"/usr/lib/glusterfs/10.1\" -DXXH_NAMESPACE=GF_ -D__USE_LARGEFILE64 -I../../contrib/rbtree -I../../contrib/libexecinfo -DSBIN_DIR=\"/usr/sbin\" -I../../contrib/timer-wheel -I../../contrib/xxhash -I/usr/include/uuid -I/usr/include/tirpc -DIPV6_DEFAULT -Wformat -Werror=format-security -Werror=implicit-function-declaration -fno-omit-frame-pointer -DDATADIR=\"/var\" -pipe -march=native -fno-diagnostics-color -O2 -c xlator.c  -fPIC -DPIC -o .libs/libglusterfs_la-xlator.o
In file included from ./glusterfs/glusterfs.h:29,
                 from ./glusterfs/mem-pool.h:18,
                 from ./glusterfs/common-utils.h:48,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^~~~~~~
In file included from glusterfs/glusterfs.h:29,
                 from logging.c:41:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^~~~~~~
In file included from dict.c:27:
glusterfs/dict.h:332:2: error: #error "unknown word size"
  332 | #error "unknown word size"
      |  ^~~~~
In file included from dict.c:34:
glusterfs/byte-order.h:35: warning: "letoh16" redefined
   35 | #define letoh16 htole16
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:67: note: this is the location of the previous definition
   67 | #define letoh16(x) (uint16_t)(x)
      | 
In file included from dict.c:34:
glusterfs/byte-order.h:36: warning: "letoh32" redefined
   36 | #define letoh32 htole32
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:68: note: this is the location of the previous definition
   68 | #define letoh32(x) (uint32_t)(x)
      | 
In file included from dict.c:34:
glusterfs/byte-order.h:37: warning: "letoh64" redefined
   37 | #define letoh64 htole64
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:69: note: this is the location of the previous definition
   69 | #define letoh64(x) (uint64_t)(x)
      | 
In file included from dict.c:34:
glusterfs/byte-order.h:43: warning: "betoh16" redefined
   43 | #define betoh16 htobe16
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:64: note: this is the location of the previous definition
   64 | #define betoh16(x) __bswap16(x)
      | 
In file included from dict.c:34:
glusterfs/byte-order.h:44: warning: "betoh32" redefined
   44 | #define betoh32 htobe32
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:65: note: this is the location of the previous definition
   65 | #define betoh32(x) __bswap32(x)
      | 
In file included from dict.c:34:
glusterfs/byte-order.h:45: warning: "betoh64" redefined
   45 | #define betoh64 htobe64
      | 
In file included from /usr/include/sys/types.h:70,
                 from /usr/include/uuid/uuid.h:38,
                 from ./glusterfs/common-utils.h:28,
                 from glusterfs/dict.h:18,
                 from dict.c:27:
/usr/include/endian.h:66: note: this is the location of the previous definition
   66 | #define betoh64(x) __bswap64(x)
      | 
In file included from ./glusterfs/glusterfs.h:29,
                 from glusterfs/xlator.h:19,
                 from xlator.c:11:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^~~~~~~
In file included from ./glusterfs/xlator.h:23,
                 from glusterfs/timer.h:15,
                 from logging.c:42:
./glusterfs/dict.h:332:2: error: #error "unknown word size"
  332 | #error "unknown word size"
      |  ^~~~~
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../..  -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_LINUX_HOST_OS -include ../../config.h -include ../../site.h -I../../libglusterfs/src -I../../libglusterfs/src -D__USE_FILE_OFFSET64 -DXLATORDIR=\"/usr/lib/glusterfs/10.1/xlator\" -DXLATORPARENTDIR=\"/usr/lib/glusterfs/10.1\" -DXXH_NAMESPACE=GF_ -D__USE_LARGEFILE64 -I../../contrib/rbtree -I../../contrib/libexecinfo  -DSBIN_DIR=\"/usr/sbin\" -I../../contrib/timer-wheel -I../../contrib/xxhash  -I/usr/include/uuid  -I/usr/include/tirpc  -DIPV6_DEFAULT -Wformat -Werror=format-security -Werror=implicit-function-declaration -fno-omit-frame-pointer  -DDATADIR=\"/var\" -pipe -march=native -fno-diagnostics-color -O2 -c -o libglusterfs_la-common-utils.lo `test -f 'common-utils.c' || echo './'`common-utils.c
In file included from glusterfs/xlator.h:23,
                 from xlator.c:11:
./glusterfs/dict.h:332:2: error: #error "unknown word size"
  332 | #error "unknown word size"
      |  ^~~~~
make[4]: *** [Makefile:1082: libglusterfs_la-logging.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:1068: libglusterfs_la-dict.lo] Error 1
make[4]: *** [Makefile:1075: libglusterfs_la-xlator.lo] Error 1
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_LINUX_HOST_OS -include ../../config.h -include ../../site.h -I../../libglusterfs/src -I../../libglusterfs/src -D__USE_FILE_OFFSET64 -DXLATORDIR=\"/usr/lib/glusterfs/10.1/xlator\" -DXLATORPARENTDIR=\"/usr/lib/glusterfs/10.1\" -DXXH_NAMESPACE=GF_ -D__USE_LARGEFILE64 -I../../contrib/rbtree -I../../contrib/libexecinfo -DSBIN_DIR=\"/usr/sbin\" -I../../contrib/timer-wheel -I../../contrib/xxhash -I/usr/include/uuid -I/usr/include/tirpc -DIPV6_DEFAULT -Wformat -Werror=format-security -Werror=implicit-function-declaration -fno-omit-frame-pointer -DDATADIR=\"/var\" -pipe -march=native -fno-diagnostics-color -O2 -c common-utils.c  -fPIC -DPIC -o .libs/libglusterfs_la-common-utils.o
In file included from ./glusterfs/glusterfs.h:29,
                 from ./glusterfs/mem-pool.h:18,
                 from glusterfs/common-utils.h:48,
                 from common-utils.c:45:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^~~~~~~
In file included from ./glusterfs/xlator.h:23,
                 from glusterfs/stack.h:28,
                 from common-utils.c:48:
./glusterfs/dict.h:332:2: error: #error "unknown word size"
  332 | #error "unknown word size"
      |  ^~~~~
make[4]: *** [Makefile:1096: libglusterfs_la-common-utils.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1/libglusterfs/src'
make[3]: *** [Makefile:881: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1/libglusterfs/src'
make[2]: *** [Makefile:461: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1/libglusterfs'
make[1]: *** [Makefile:592: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1'
make: *** [Makefile:487: all] Error 2
 * ERROR: sys-cluster/glusterfs-10.1-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-cluster/glusterfs-10.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/glusterfs-10.1-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-cluster:glusterfs-10.1-r1:20220314-140831.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1'
 * S: '/var/tmp/portage/sys-cluster/glusterfs-10.1-r1/work/glusterfs-10.1'
Comment 1 Toralf Förster gentoo-dev 2022-03-14 14:15:10 UTC
17-0-musl-j4-20220306-010006 /etc/portage/patches # emerge --info --verbose=n
Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.0/musl, gcc-11.2.1, musl-1.2.2-r8, 5.16.14 x86_64)
=================================================================
System uname: Linux-5.16.14-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-libc
KiB Mem:   131900776 total,   3079892 free
KiB Swap:  268435448 total, 267555320 free
Timestamp of repository gentoo: Sat, 12 Mar 2022 07:45:05 +0000
Head commit of repository gentoo: 93ee537f9c183bd56ebd11d5854f6dc2ca4dd230

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r8::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.10_p1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.13.4-r2::gentoo, 1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/libselinux:       3.3::gentoo
sys-libs/musl:             1.2.2-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-pipe -march=native -fno-diagnostics-color -O2"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="//var/lib/redmine/config /etc /etc/grs/systems.conf /opt/zookeeper-bin/conf /usr/lib/tomoyo/conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /usr/share/qpsmtpd/plugins /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="//var/lib/redmine/config/locales //var/lib/redmine/config/settings.yml /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -march=native -fno-diagnostics-color -O2"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--deep --verbose --deep --verbose-conflicts --nospinner --quiet-build --tree --color=n --ask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-pipe -march=native -fno-diagnostics-color -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-pipe -march=native -fno-diagnostics-color -O2"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://mirror.netcologne.de/gentoo/ https://ftp.fau.de/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
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"
RUSTFLAGS=" -C target-feature=-crt-static"
SHELL="/bin/bash"
USE="acl amd64 ao bzip2 cli crypt dri fortran glut iconv ipv6 jumbo-build libglvnd libtirpc ncurses nis nls nptl odbc openmp pam pcre readline seccomp split-usr ssl unicode videos xattr zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="musl" 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" KERNEL="linux" L10N="ar br ht mk sa" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Toralf Förster gentoo-dev 2022-07-27 10:13:32 UTC
*** Bug 861437 has been marked as a duplicate of this bug. ***
Comment 4 Agostino Sarubbo gentoo-dev 2023-03-01 09:04:58 UTC
tinderbox_musl has reproduced this issue with version 10.2-r2 - Updating summary.