------------------------------------------------------------------------------- -- Phase: Environment ------------------------------------------------------------------------------- NO_DEPENDS=1 UNAME_r=5.9 UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=unknown UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 LANG=C HOME=/root USER=root TERM=dumb SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: showconfig ------------------------------------------------------------------------------- SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/emulators/libc6-shim XDG_CONFIG_HOME=/construction/emulators/libc6-shim HOME=/construction/emulators/libc6-shim TMPDIR="/tmp" PATH=/construction/emulators/libc6-shim/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ARGS ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/emulators/libc6-shim XDG_CONFIG_HOME=/construction/emulators/libc6-shim HOME=/construction/emulators/libc6-shim TMPDIR="/tmp" PATH=/construction/emulators/libc6-shim/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ARGS ------------------------------------------------------------------------------- DESTDIR=/construction/emulators/libc6-shim/stage SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: PLIST_SUB ------------------------------------------------------------------------------- RUBY_LIBDIR="lib/ruby/2.7" RUBY_ARCHLIBDIR="lib/ruby/2.7/x86_64-dragonfly5" RUBY_SITELIBDIR="lib/ruby/site_ruby/2.7" RUBY_SITEARCHLIBDIR="lib/ruby/site_ruby/2.7/x86_64-dragonfly5" RUBY_VENDORLIBDIR="lib/ruby/vendor_ruby/2.7" RUBY_VENDORARCHLIBDIR="lib/ruby/vendor_ruby/2.7/x86_64-dragonfly5" RUBY_MODDOCDIR="share/doc/ruby27/libc6-shim" RUBY_MODEXAMPLESDIR="share/examples/ruby27/libc6-shim" RUBY_DOCDIR="share/doc/ruby27" RUBY_EXAMPLESDIR="share/examples/ruby27" RUBY_RIDIR="share/ri/2.7/system" RUBY_SITERIDIR="share/ri/2.7/site" RUBY_VERSION="2.7.2" RUBY_VER="2.7" RUBY_SHLIBVER="27" RUBY_ARCH="x86_64-dragonfly5" RUBY_SUFFIX="27" RUBY_NAME="ruby27" RUBY_DEFAULT_SUFFIX="27" RUBY25="@comment " RUBY26="@comment " RUBY27="" RUBY30="@comment " OSREL=5.9 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/libc6-shim" EXAMPLESDIR="share/examples/libc6-shim" DATADIR="share/libc6-shim" WWWDIR="www/libc6-shim" ETCDIR="etc/libc6-shim" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: SUB_LIST ------------------------------------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/libc6-shim DOCSDIR=/usr/local/share/doc/libc6-shim EXAMPLESDIR=/usr/local/share/examples/libc6-shim WWWDIR=/usr/local/www/libc6-shim ETCDIR=/usr/local/etc/libc6-shim SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: /etc/make.conf ------------------------------------------------------------------------------- DPORTS_BUILDER=yes DISABLE_LICENSES=yes DEFAULT_VERSIONS=ssl=openssl FORCE_PACKAGE=yes DEVELOPER=yes USE_PACKAGE_DEPENDS_ONLY=yes PORTSDIR=/xports PORT_DBDIR=/options PKG_DBDIR=/var/db/pkg PKG_CACHEDIR=/var/cache/pkg PKG_SUFX=.txz DEVELOPER=1 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500906 OSVERSION=9999999 OSREL=5.9 _OSRELEASE=5.9-SYNTH DISTDIR=/distfiles WRKDIRPREFIX=/construction BATCH=yes PACKAGE_BUILDING=yes PKG_CREATE_VERBOSE=yes MAKE_JOBS_NUMBER=10 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/libyaml-0.2.5.txz Installing /packages/All/ncurses-6.2.20210116.txz Installing /packages/All/libedit-3.1.20191231,1.txz Installing /packages/All/libunwind-20200331_1.txz Installing /packages/All/indexinfo-0.3.1.txz Installing /packages/All/libffi-3.3_1.txz Installing /packages/All/openssl-1.1.1i,1.txz Installing /packages/All/ruby-2.7.2_1,1.txz ===== Message from ruby-2.7.2_1,1: -- Some of the standard commands are provided as separate ports for ease of upgrading: devel/ruby-gems: gem - RubyGems package manager devel/rubygem-irb: irb - Interactive Ruby devel/rubygem-rake: rake - Ruby Make devel/rubygem-rdoc: rdoc - Ruby Documentation System sysutils/rubygem-bundler: bundler - Tool that manages gem dependencies for ruby applications And some of the standard libraries are provided as separate ports since they require extra dependencies: databases/rubygem-dbm: DBM module databases/rubygem-gdbm: GDBM module Install them as occasion demands. SUCCEEDED 00:00:13 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by libc6-shim-20201024 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by libc6-shim-20201024 for building => SHA256 Checksum OK for shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by libc6-shim-20201024 for building ===> Extracting for libc6-shim-20201024 => SHA256 Checksum OK for shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz. ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found Extracted Memory Use: 0.57M SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for libc6-shim-20201024 ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found /usr/bin/env WRKSRC=/construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719 REWARNFILE=/construction/emulators/libc6-shim/reinplace_warnings.txt /xports/Mk/Scripts/sed_checked.sh -e 's|../icds|../share/libc6-shim/icds|' /construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719/bin/nv-sglrun /usr/bin/env WRKSRC=/construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719 REWARNFILE=/construction/emulators/libc6-shim/reinplace_warnings.txt /xports/Mk/Scripts/sed_checked.sh -e 's|../lib64|../lib/libc6-shim|' -e 's|../lib32|../lib32/libc6-shim|' /construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719/bin/with-glibc-shim SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> libc6-shim-20201024 depends on file: /usr/local/bin/ruby27 - found ===> Configuring for libc6-shim-20201024 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for libc6-shim-20201024 --- build/wrappers64.h --- --- build/versions64.h --- --- build/lib64/dummy-librt.so --- --- build/wrappers32.c --- --- build/wrappers32.h --- --- build/versions32.h --- --- build/lib32/dummy-librt.so --- --- lib32 --- --- lib64 --- --- build/wrappers64.c --- --- build/wrappers64.h --- mkdir -p build ./utils/wrappers_h.rb -m64 src/futexes.c src/libc/ctype.c src/libc/dirent.c src/libc/dlfcn.c src/libc/errno.c src/libc/fcntl.c src/libc/libgen.c src/libc/locale.c src/libc/malloc.c src/libc/netdb.c src/libc/sched.c src/libc/semaphore.c src/libc/setjmp.c src/libc/signal.c src/libc/stdio.c src/libc/stdlib.c src/libc/string.c src/libc/sys/epoll.c src/libc/sys/eventfd.c src/libc/sys/ioctl.c src/libc/sys/mman.c src/libc/sys/mount.c src/libc/sys/prctl.c src/libc/sys/resource.c src/libc/sys/sem.c src/libc/sys/socket.c src/libc/sys/stat.c src/libc/sys/syscall.c src/libc/sys/sysctl.c src/libc/sys/sysinfo.c src/libc/sys/utsname.c src/libc/termios.c src/libc/time.c src/libc/unistd.c src/libc/wctype.c src/libexecinfo/execinfo.c src/libm/fenv.c src/libm/math.c src/libthr/pthread.c src/main.c src/util.c > build/wrappers64.h.tmp && mv build/wrappers64.h.tmp build/wrappers64.h --- build/versions64.h --- mkdir -p build ./utils/symver.rb src/glibc-2.17-symbols.64 > build/versions64.h.tmp && mv build/versions64.h.tmp build/versions64.h --- build/lib64/dummy-librt.so --- mkdir -p build/lib64 cc -m64 -shared -fPIC -Wl,-soname,bsd-librt.so.1 -o build/lib64/dummy-librt.so --- build/wrappers32.c --- mkdir -p build ./utils/wrappers_c.rb src/glibc-2.17-symbols.32 > build/wrappers32.c.tmp && mv build/wrappers32.c.tmp build/wrappers32.c --- build/wrappers32.h --- mkdir -p build ./utils/wrappers_h.rb -m32 src/futexes.c src/libc/ctype.c src/libc/dirent.c src/libc/dlfcn.c src/libc/errno.c src/libc/fcntl.c src/libc/libgen.c src/libc/locale.c src/libc/malloc.c src/libc/netdb.c src/libc/sched.c src/libc/semaphore.c src/libc/setjmp.c src/libc/signal.c src/libc/stdio.c src/libc/stdlib.c src/libc/string.c src/libc/sys/epoll.c src/libc/sys/eventfd.c src/libc/sys/ioctl.c src/libc/sys/mman.c src/libc/sys/mount.c src/libc/sys/prctl.c src/libc/sys/resource.c src/libc/sys/sem.c src/libc/sys/socket.c src/libc/sys/stat.c src/libc/sys/syscall.c src/libc/sys/sysctl.c src/libc/sys/sysinfo.c src/libc/sys/utsname.c src/libc/termios.c src/libc/time.c src/libc/unistd.c src/libc/wctype.c src/libexecinfo/execinfo.c src/libm/fenv.c src/libm/math.c src/libthr/pthread.c src/main.c src/util.c > build/wrappers32.h.tmp && mv build/wrappers32.h.tmp build/wrappers32.h --- build/versions32.h --- mkdir -p build --- lib32 --- ln -s build/lib32 lib32 --- lib64 --- ln -s build/lib64 lib64 --- build/wrappers64.c --- mkdir -p build ./utils/wrappers_c.rb src/glibc-2.17-symbols.64 > build/wrappers64.c.tmp && mv build/wrappers64.c.tmp build/wrappers64.c --- build/lib32/dummy-librt.so --- mkdir -p build/lib32 cc -m32 -shared -fPIC -Wl,-soname,bsd-librt.so.1 -o build/lib32/dummy-librt.so --- build/versions32.h --- ./utils/symver.rb src/glibc-2.17-symbols.32 > build/versions32.h.tmp && mv build/versions32.h.tmp build/versions32.h --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_cancel ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_error ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_fsync ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_read ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_return ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_suspend ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_write ./utils/wrappers_c.rb: unknown struct sockaddr_in, skipping function bindresvport ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_aton ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_aton_r ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_hostton ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_line ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntoa ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntoa_r ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntohost ./utils/wrappers_c.rb: unknown struct statvfs, skipping function fstatvfs ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsent ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsfile ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsspec ./utils/wrappers_c.rb: unknown struct group, skipping function getgrent ./utils/wrappers_c.rb: unknown struct group, skipping function getgrent_r ./utils/wrappers_c.rb: unknown struct group, skipping function getgrgid ./utils/wrappers_c.rb: unknown struct group, skipping function getgrgid_r ./utils/wrappers_c.rb: unknown struct group, skipping function getgrnam ./utils/wrappers_c.rb: unknown struct group, skipping function getgrnam_r ./utils/wrappers_c.rb: unknown struct itimerval, skipping function getitimer ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetbyaddr ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetbyname ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetent ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotobyname ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotobynumber ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotoent ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwent ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwent_r ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwnam ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwnam_r ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwuid ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwuid_r ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcbyname ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcbynumber ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcent ./utils/wrappers_c.rb: unknown struct servent, skipping function getservbyname ./utils/wrappers_c.rb: unknown struct servent, skipping function getservbyport ./utils/wrappers_c.rb: unknown struct servent, skipping function getservent ./utils/wrappers_c.rb: unknown struct ttyent, skipping function getttyent ./utils/wrappers_c.rb: unknown struct ttyent, skipping function getttynam ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxent ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxid ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxline ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hcreate_r ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hdestroy_r ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hsearch_r ./utils/wrappers_c.rb: unknown struct aiocb, skipping function lio_listio ./utils/wrappers_c.rb: unknown struct lconv, skipping function localeconv ./utils/wrappers_c.rb: unknown struct msqid_ds, skipping function msgctl ./utils/wrappers_c.rb: unknown struct utmpx, skipping function pututxline ./utils/wrappers_c.rb: unknown struct mmsghdr, skipping function recvmmsg ./utils/wrappers_c.rb: unknown struct sockaddr_in, skipping function rtime ./utils/wrappers_c.rb: unknown struct mmsghdr, skipping function sendmmsg --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_cancel ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_error ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_fsync ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_read ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_return ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_suspend ./utils/wrappers_c.rb: unknown struct aiocb, skipping function aio_write --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct itimerval, skipping function setitimer --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct sockaddr_in, skipping function bindresvport --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct statvfs, skipping function statvfs --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_aton ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_aton_r ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_hostton ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_line ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntoa ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntoa_r ./utils/wrappers_c.rb: unknown struct ether_addr, skipping function ether_ntohost --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct tms, skipping function times ./utils/wrappers_c.rb: unknown struct utimbuf, skipping function utime --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct statvfs, skipping function fstatvfs ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsent ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsfile ./utils/wrappers_c.rb: unknown struct fstab, skipping function getfsspec ./utils/wrappers_c.rb: unknown struct group, skipping function getgrent ./utils/wrappers_c.rb: unknown struct group, skipping function getgrent_r ./utils/wrappers_c.rb: unknown struct group, skipping function getgrgid ./utils/wrappers_c.rb: unknown struct group, skipping function getgrgid_r ./utils/wrappers_c.rb: unknown struct group, skipping function getgrnam ./utils/wrappers_c.rb: unknown struct group, skipping function getgrnam_r ./utils/wrappers_c.rb: unknown struct itimerval, skipping function getitimer ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetbyaddr ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetbyname ./utils/wrappers_c.rb: unknown struct netent, skipping function getnetent ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotobyname ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotobynumber ./utils/wrappers_c.rb: unknown struct protoent, skipping function getprotoent ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwent ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwent_r ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwnam ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwnam_r ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwuid ./utils/wrappers_c.rb: unknown struct passwd, skipping function getpwuid_r ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcbyname ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcbynumber ./utils/wrappers_c.rb: unknown struct rpcent, skipping function getrpcent ./utils/wrappers_c.rb: unknown struct servent, skipping function getservbyname ./utils/wrappers_c.rb: unknown struct servent, skipping function getservbyport ./utils/wrappers_c.rb: unknown struct servent, skipping function getservent --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct accepted_reply, skipping function xdr_accepted_reply --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct ttyent, skipping function getttyent ./utils/wrappers_c.rb: unknown struct ttyent, skipping function getttynam ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxent ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxid ./utils/wrappers_c.rb: unknown struct utmpx, skipping function getutxline --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_callhdr ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_callmsg --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hcreate_r ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hdestroy_r ./utils/wrappers_c.rb: unknown struct hsearch_data, skipping function hsearch_r --- build/wrappers32.c --- ./utils/wrappers_c.rb: unknown struct opaque_auth, skipping function xdr_opaque_auth ./utils/wrappers_c.rb: unknown struct rejected_reply, skipping function xdr_rejected_reply ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_replymsg --- build/wrappers64.c --- ./utils/wrappers_c.rb: unknown struct aiocb, skipping function lio_listio ./utils/wrappers_c.rb: unknown struct lconv, skipping function localeconv ./utils/wrappers_c.rb: unknown struct msqid_ds, skipping function msgctl ./utils/wrappers_c.rb: unknown struct utmpx, skipping function pututxline ./utils/wrappers_c.rb: unknown struct mmsghdr, skipping function recvmmsg ./utils/wrappers_c.rb: unknown struct sockaddr_in, skipping function rtime ./utils/wrappers_c.rb: unknown struct mmsghdr, skipping function sendmmsg ./utils/wrappers_c.rb: unknown struct itimerval, skipping function setitimer ./utils/wrappers_c.rb: unknown struct statvfs, skipping function statvfs ./utils/wrappers_c.rb: unknown struct tms, skipping function times ./utils/wrappers_c.rb: unknown struct utimbuf, skipping function utime ./utils/wrappers_c.rb: unknown struct accepted_reply, skipping function xdr_accepted_reply ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_callhdr ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_callmsg ./utils/wrappers_c.rb: unknown struct opaque_auth, skipping function xdr_opaque_auth ./utils/wrappers_c.rb: unknown struct rejected_reply, skipping function xdr_rejected_reply ./utils/wrappers_c.rb: unknown struct rpc_msg, skipping function xdr_replymsg --- build/wrappers64.h --- src/main.c:9:10: fatal error: sys/elf.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. --- build/lib64/libc6.so --- mkdir -p build/lib64 cc -O2 -m64 -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-incompatible-pointer-types-discards-qualifiers -shared -fPIC -Wl,-soname,librt.so.1 -Wl,--version-script=src/shim.map -I/usr/local/include -o build/lib64/libc6.so src/futexes.c src/libc/ctype.c src/libc/dirent.c src/libc/dlfcn.c src/libc/errno.c src/libc/fcntl.c src/libc/libgen.c src/libc/locale.c src/libc/malloc.c src/libc/netdb.c src/libc/sched.c src/libc/semaphore.c src/libc/setjmp.c src/libc/signal.c src/libc/stdio.c src/libc/stdlib.c src/libc/string.c src/libc/sys/epoll.c src/libc/sys/eventfd.c src/libc/sys/ioctl.c src/libc/sys/mman.c src/libc/sys/mount.c src/libc/sys/prctl.c src/libc/sys/resource.c src/libc/sys/sem.c src/libc/sys/socket.c src/libc/sys/stat.c src/libc/sys/syscall.c src/libc/sys/sysctl.c src/libc/sys/sysinfo.c src/libc/sys/utsname.c src/libc/termios.c src/libc/time.c src/libc/unistd.c src/libc/wctype.c src/libexecinfo/execinfo.c src/libm/fenv.c src/libm/math.c src/libthr/pthread.c src/main.c src/util.c -include build/versions64.h -include build/wrappers64.h build/wrappers64.c build/lib64/dummy-librt.so -lm -pthread In file included from :32: src/libc/ctype.c: In function 'shim___ctype_tolower_loc': ./build/wrappers64.h:25:3: warning: initialization of 'const int32_t **' {aka 'const int **'} from incompatible pointer type 'int32_t **' {aka 'int **'} [-Wincompatible-pointer-types] shim___ctype_tolower_loc_impl();\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___ctype_tolower_loc' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/ctype.c:76:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__ctype_tolower_loc); ^~~~~~~~~ src/libc/ctype.c: In function 'shim___ctype_toupper_loc': ./build/wrappers64.h:35:3: warning: initialization of 'const int32_t **' {aka 'const int **'} from incompatible pointer type 'int32_t **' {aka 'int **'} [-Wincompatible-pointer-types] shim___ctype_toupper_loc_impl();\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___ctype_toupper_loc' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/ctype.c:77:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__ctype_toupper_loc); ^~~~~~~~~ --- build/wrappers32.h --- src/main.c:9:10: fatal error: sys/elf.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. --- build/lib64/libc6.so --- src/libc/ctype.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- mkdir -p build/lib32 cc -O2 -m32 -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-incompatible-pointer-types-discards-qualifiers -shared -fPIC -Wl,-soname,librt.so.1 -Wl,--version-script=src/shim.map -I/usr/local/include -o build/lib32/libc6.so src/futexes.c src/libc/ctype.c src/libc/dirent.c src/libc/dlfcn.c src/libc/errno.c src/libc/fcntl.c src/libc/libgen.c src/libc/locale.c src/libc/malloc.c src/libc/netdb.c src/libc/sched.c src/libc/semaphore.c src/libc/setjmp.c src/libc/signal.c src/libc/stdio.c src/libc/stdlib.c src/libc/string.c src/libc/sys/epoll.c src/libc/sys/eventfd.c src/libc/sys/ioctl.c src/libc/sys/mman.c src/libc/sys/mount.c src/libc/sys/prctl.c src/libc/sys/resource.c src/libc/sys/sem.c src/libc/sys/socket.c src/libc/sys/stat.c src/libc/sys/syscall.c src/libc/sys/sysctl.c src/libc/sys/sysinfo.c src/libc/sys/utsname.c src/libc/termios.c src/libc/time.c src/libc/unistd.c src/libc/wctype.c src/libexecinfo/execinfo.c src/libm/fenv.c src/libm/math.c src/libthr/pthread.c src/main.c src/util.c -include build/versions32.h -include build/wrappers32.h build/wrappers32.c build/lib32/dummy-librt.so -lm -pthread -Wl,-z,notext --- build/lib64/libc6.so --- src/libc/dirent.c: In function 'destroy_shim_dir': src/libc/dirent.c:43:3: warning: implicit declaration of function 'SLIST_FOREACH_SAFE'; did you mean 'SLIST_FOREACH'? [-Wimplicit-function-declaration] SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~~~~~~~~~~~~~~~~~ SLIST_FOREACH src/libc/dirent.c:43:51: error: 'entries' undeclared (first use in this function) SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~~~~~~ src/libc/dirent.c:43:51: note: each undeclared identifier is reported only once for each function it appears in src/libc/dirent.c:43:65: error: expected ';' before '{' token SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~ ; src/libc/dirent.c: In function 'copy_direntry': src/libc/dirent.c:69:22: error: 'const struct dirent' has no member named 'd_off' dst->d_off = src->d_off; ^~ src/libc/dirent.c:70:24: error: 'const struct dirent' has no member named 'd_reclen'; did you mean 'd_namlen'? dst->d_reclen = src->d_reclen; ^~~~~~~~ d_namlen src/libc/dirent.c: In function 'copy_direntry64': src/libc/dirent.c:79:22: error: 'const struct dirent' has no member named 'd_off' dst->d_off = src->d_off; ^~ src/libc/dirent.c:80:24: error: 'const struct dirent' has no member named 'd_reclen'; did you mean 'd_namlen'? dst->d_reclen = src->d_reclen; ^~~~~~~~ d_namlen src/libc/dirent.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- In file included from :32: src/libc/ctype.c: In function 'shim___ctype_tolower_loc': ./build/wrappers32.h:25:3: warning: initialization of 'const int32_t **' {aka 'const int **'} from incompatible pointer type 'int32_t **' {aka 'int **'} [-Wincompatible-pointer-types] shim___ctype_tolower_loc_impl();\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___ctype_tolower_loc' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/ctype.c:76:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__ctype_tolower_loc); ^~~~~~~~~ src/libc/ctype.c: In function 'shim___ctype_toupper_loc': ./build/wrappers32.h:35:3: warning: initialization of 'const int32_t **' {aka 'const int **'} from incompatible pointer type 'int32_t **' {aka 'int **'} [-Wincompatible-pointer-types] shim___ctype_toupper_loc_impl();\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___ctype_toupper_loc' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/ctype.c:77:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__ctype_toupper_loc); ^~~~~~~~~ src/libc/ctype.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/libc/dirent.c: In function 'destroy_shim_dir': src/libc/dirent.c:43:3: warning: implicit declaration of function 'SLIST_FOREACH_SAFE'; did you mean 'SLIST_FOREACH'? [-Wimplicit-function-declaration] SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~~~~~~~~~~~~~~~~~ SLIST_FOREACH src/libc/dirent.c:43:51: error: 'entries' undeclared (first use in this function) SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~~~~~~ src/libc/dirent.c:43:51: note: each undeclared identifier is reported only once for each function it appears in src/libc/dirent.c:43:65: error: expected ';' before '{' token SLIST_FOREACH_SAFE(shim_entry, &shim_dir->head, entries, temp) { ^~ ; src/libc/dirent.c: In function 'copy_direntry': src/libc/dirent.c:69:22: error: 'const struct dirent' has no member named 'd_off' dst->d_off = src->d_off; ^~ src/libc/dirent.c:70:24: error: 'const struct dirent' has no member named 'd_reclen'; did you mean 'd_namlen'? dst->d_reclen = src->d_reclen; ^~~~~~~~ d_namlen src/libc/dirent.c: In function 'copy_direntry64': src/libc/dirent.c:79:22: error: 'const struct dirent' has no member named 'd_off' dst->d_off = src->d_off; ^~ src/libc/dirent.c:80:24: error: 'const struct dirent' has no member named 'd_reclen'; did you mean 'd_namlen'? dst->d_reclen = src->d_reclen; ^~~~~~~~ d_namlen src/libc/dirent.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- src/libc/fcntl.c: In function 'shim_open_impl': src/libc/fcntl.c:129:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char* p = redirect(path); ^~~~~~~~ src/libc/fcntl.c: In function 'shim_posix_fallocate64_impl': src/libc/fcntl.c:169:10: warning: implicit declaration of function 'posix_fallocate'; did you mean 'posix_fadvise'? [-Wimplicit-function-declaration] return posix_fallocate(fd, offset, len); ^~~~~~~~~~~~~~~ posix_fadvise --- build/lib32/libc6.so --- src/libc/fcntl.c: In function 'shim_open_impl': src/libc/fcntl.c:129:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char* p = redirect(path); ^~~~~~~~ src/libc/fcntl.c: In function 'shim_posix_fallocate64_impl': src/libc/fcntl.c:169:10: warning: implicit declaration of function 'posix_fallocate'; did you mean 'posix_fadvise'? [-Wimplicit-function-declaration] return posix_fallocate(fd, offset, len); ^~~~~~~~~~~~~~~ posix_fadvise --- build/lib64/libc6.so --- src/libc/fcntl.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/libc/libgen.c: In function 'shim___xpg_basename_impl': src/libc/libgen.c:5:19: warning: passing argument 1 of 'basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return basename(path); ^~~~ In file included from src/libc/libgen.c:1: /usr/include/libgen.h:37:7: note: expected 'char *' but argument is of type 'const char *' char *basename(char *); ^~~~~~~~ src/libc/libgen.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- src/libc/fcntl.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- src/libc/sched.c:5:14: error: conflicting types for 'cpu_set_t' typedef void cpu_set_t; ^~~~~~~~~ --- build/lib32/libc6.so --- src/libc/libgen.c: In function 'shim___xpg_basename_impl': --- build/lib64/libc6.so --- In file included from src/libc/sched.h:1, from src/libc/sched.c:3: /usr/include/sched.h:63:20: note: previous declaration of 'cpu_set_t' was here typedef cpumask_t cpu_set_t; ^~~~~~~~~ cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- src/libc/libgen.c:5:19: warning: passing argument 1 of 'basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return basename(path); ^~~~ In file included from src/libc/libgen.c:1: /usr/include/libgen.h:37:7: note: expected 'char *' but argument is of type 'const char *' char *basename(char *); ^~~~~~~~ src/libc/libgen.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/libc/sched.c:5:14: error: conflicting types for 'cpu_set_t' typedef void cpu_set_t; ^~~~~~~~~ In file included from src/libc/sched.h:1, from src/libc/sched.c:3: /usr/include/sched.h:63:20: note: previous declaration of 'cpu_set_t' was here typedef cpumask_t cpu_set_t; ^~~~~~~~~ cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- src/libc/stdio.c: In function 'shim_fopen_impl': src/libc/stdio.c:31:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char* p = redirect(path); ^~~~~~~~ src/libc/stdio.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' In file included from :32: src/libc/stdlib.c: In function 'shim___strtol_internal': ./build/wrappers64.h:767:31: warning: passing argument 1 of 'shim___strtol_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtol_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtol_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:24:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtol_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:16:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(long, strtol); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoll_internal': ./build/wrappers64.h:777:32: warning: passing argument 1 of 'shim___strtoll_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoll_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoll_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:25:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoll_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:17:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(long long, strtoll); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoul_internal': ./build/wrappers64.h:787:32: warning: passing argument 1 of 'shim___strtoul_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoul_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoul_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:26:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoul_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:18:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(unsigned long, strtoul); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoull_internal': ./build/wrappers64.h:797:33: warning: passing argument 1 of 'shim___strtoull_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoull_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoull_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:27:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoull_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:19:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(unsigned long long, strtoull); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtof_internal': ./build/wrappers64.h:807:31: warning: passing argument 1 of 'shim___strtof_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtof_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtof_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:28:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtof_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:20:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(float, strtof); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtod_internal': ./build/wrappers64.h:817:31: warning: passing argument 1 of 'shim___strtod_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtod_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtod_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:29:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtod_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:21:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(double, strtod); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtold_internal': ./build/wrappers64.h:827:32: warning: passing argument 1 of 'shim___strtold_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtold_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtold_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:30:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtold_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:22:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(long double, strtold); ^~~~~~~~~~~~~~~~~~~ src/libc/stdlib.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- src/libc/stdio.c: In function 'shim_fopen_impl': src/libc/stdio.c:31:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char* p = redirect(path); ^~~~~~~~ src/libc/stdio.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' In file included from :32: src/libc/stdlib.c: In function 'shim___strtol_internal': ./build/wrappers32.h:767:31: warning: passing argument 1 of 'shim___strtol_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtol_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtol_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:24:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtol_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:16:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(long, strtol); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoll_internal': ./build/wrappers32.h:777:32: warning: passing argument 1 of 'shim___strtoll_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoll_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoll_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:25:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoll_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:17:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(long long, strtoll); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoul_internal': ./build/wrappers32.h:787:32: warning: passing argument 1 of 'shim___strtoul_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoul_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoul_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:26:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoul_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:18:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(unsigned long, strtoul); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtoull_internal': ./build/wrappers32.h:797:33: warning: passing argument 1 of 'shim___strtoull_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtoull_internal_impl(__nptr, __endptr, __base, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtoull_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:27:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtoull_internal); ^~~~~~~~~ src/libc/stdlib.c:7:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int base, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:19:1: note: in expansion of macro 'STRTONUM_INTERNAL_I' STRTONUM_INTERNAL_I(unsigned long long, strtoull); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtof_internal': ./build/wrappers32.h:807:31: warning: passing argument 1 of 'shim___strtof_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtof_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtof_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:28:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtof_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:20:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(float, strtof); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtod_internal': ./build/wrappers32.h:817:31: warning: passing argument 1 of 'shim___strtod_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtod_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtod_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:29:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtod_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:21:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(double, strtod); ^~~~~~~~~~~~~~~~~~~ In file included from :32: src/libc/stdlib.c: In function 'shim___strtold_internal': ./build/wrappers32.h:827:32: warning: passing argument 1 of 'shim___strtold_internal_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim___strtold_internal_impl(__nptr, __endptr, __group);\ ^~~~~~ src/libc/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER___strtold_internal' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libc/stdlib.c:30:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(__strtold_internal); ^~~~~~~~~ src/libc/stdlib.c:12:56: note: expected 'char *' but argument is of type 'const char *' ret_type shim_ ## __ ## name ## _internal_impl(char* nptr, char** endptr, int group) {\ ~~~~~~^~~~ src/libc/stdlib.c:22:1: note: in expansion of macro 'STRTONUM_INTERNAL_F' STRTONUM_INTERNAL_F(long double, strtold); ^~~~~~~~~~~~~~~~~~~ src/libc/stdlib.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- src/libc/sys/mman.c: In function 'shim_mmap64_impl': src/libc/sys/mman.c:54:14: error: 'MAP_32BIT' undeclared (first use in this function) flags |= MAP_32BIT; ^~~~~~~~~ src/libc/sys/mman.c:54:14: note: each undeclared identifier is reported only once for each function it appears in src/libc/sys/mman.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/libc/sys/mount.c: In function 'copy_statfs_buf': src/libc/sys/mount.c:18:23: error: 'struct statfs' has no member named 'f_namemax' dst->f_namelen = src->f_namemax; ^~ src/libc/sys/mount.c: In function 'copy_statfs64_buf': src/libc/sys/mount.c:32:23: error: 'struct statfs' has no member named 'f_namemax' dst->f_namelen = src->f_namemax; ^~ src/libc/sys/mount.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- src/libc/sys/mount.c: In function 'copy_statfs_buf': src/libc/sys/mount.c:18:23: error: 'struct statfs' has no member named 'f_namemax' dst->f_namelen = src->f_namemax; ^~ src/libc/sys/mount.c: In function 'copy_statfs64_buf': src/libc/sys/mount.c:32:23: error: 'struct statfs' has no member named 'f_namemax' dst->f_namelen = src->f_namemax; ^~ src/libc/sys/mount.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- src/libc/sys/socket.c: In function 'linux_to_native_msg_flags': src/libc/sys/socket.c:64:54: error: 'MSG_WAITFORONE' undeclared (first use in this function); did you mean 'LINUX_MSG_WAITFORONE'? if (linux_flags & LINUX_MSG_WAITFORONE) flags |= MSG_WAITFORONE; ^~~~~~~~~~~~~~ LINUX_MSG_WAITFORONE src/libc/sys/socket.c:64:54: note: each undeclared identifier is reported only once for each function it appears in In file included from src/libc/sys/../../shim.h:3, from src/libc/sys/socket.c:10: src/libc/sys/socket.c: In function 'native_to_linux_msg_flags': src/libc/sys/socket.h:86:3: error: 'MSG_WAITFORONE' undeclared (first use in this function); did you mean 'LINUX_MSG_WAITFORONE'? MSG_WAITFORONE | \ ^~~~~~~~~~~~~~ src/libc/sys/socket.c:72:19: note: in expansion of macro 'KNOWN_NATIVE_MSG_FLAGS' assert((flags & KNOWN_NATIVE_MSG_FLAGS) == flags); ^~~~~~~~~~~~~~~~~~~~~~ src/libc/sys/socket.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- src/libc/sys/socket.c: In function 'linux_to_native_msg_flags': src/libc/sys/socket.c:64:54: error: 'MSG_WAITFORONE' undeclared (first use in this function); did you mean 'LINUX_MSG_WAITFORONE'? if (linux_flags & LINUX_MSG_WAITFORONE) flags |= MSG_WAITFORONE; ^~~~~~~~~~~~~~ LINUX_MSG_WAITFORONE src/libc/sys/socket.c:64:54: note: each undeclared identifier is reported only once for each function it appears in In file included from src/libc/sys/../../shim.h:3, from src/libc/sys/socket.c:10: src/libc/sys/socket.c: In function 'native_to_linux_msg_flags': src/libc/sys/socket.h:86:3: error: 'MSG_WAITFORONE' undeclared (first use in this function); did you mean 'LINUX_MSG_WAITFORONE'? MSG_WAITFORONE | \ ^~~~~~~~~~~~~~ src/libc/sys/socket.c:72:19: note: in expansion of macro 'KNOWN_NATIVE_MSG_FLAGS' assert((flags & KNOWN_NATIVE_MSG_FLAGS) == flags); ^~~~~~~~~~~~~~~~~~~~~~ src/libc/sys/socket.c: In function 'linux_to_native_msghdr': src/libc/sys/socket.c:222:78: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] struct cmsghdr* cmsg = (struct cmsghdr*)((uint8_t*)msg->msg_control + ((uint64_t)linux_cmsg - (uint64_t)linux_msg->msg_control)); ^ src/libc/sys/socket.c:222:101: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] struct cmsghdr* cmsg = (struct cmsghdr*)((uint8_t*)msg->msg_control + ((uint64_t)linux_cmsg - (uint64_t)linux_msg->msg_control)); ^ src/libc/sys/socket.c: In function 'native_to_linux_msghdr': src/libc/sys/socket.c:263:102: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] struct linux_cmsghdr* linux_cmsg = (struct linux_cmsghdr*)((uint8_t*)linux_msg->msg_control + ((uint64_t)cmsg - (uint64_t)msg->msg_control)); ^ src/libc/sys/socket.c:263:119: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] struct linux_cmsghdr* linux_cmsg = (struct linux_cmsghdr*)((uint8_t*)linux_msg->msg_control + ((uint64_t)cmsg - (uint64_t)msg->msg_control)); ^ src/libc/sys/socket.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib64/libc6.so --- In file included from src/libc/time.c:3: src/libc/time.c: In function 'linux_to_native_clockid': src/libc/../shim.h:37:51: warning: format '%d' expects argument of type 'int', but argument 4 has type 'linux_clockid_t' {aka 'long unsigned int'} [-Wformat=] #define UNIMPLEMENTED_ARGS(...) { fprintf(stderr, "%s(" __HEAD(__VA_ARGS__) ") is not implemented\n", __func__, __TAIL(__VA_ARGS__)); assert(0); } ^~~~~ src/libc/time.c:36:7: note: in expansion of macro 'UNIMPLEMENTED_ARGS' UNIMPLEMENTED_ARGS("%d", linux_clock_id); ^~~~~~~~~~~~~~~~~~ src/libc/time.c:36:28: note: format string is defined here UNIMPLEMENTED_ARGS("%d", linux_clock_id); ~^ %ld src/libc/time.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' --- build/lib32/libc6.so --- In file included from src/libc/time.c:3: src/libc/time.c: In function 'linux_to_native_clockid': src/libc/../shim.h:37:51: warning: format '%d' expects argument of type 'int', but argument 4 has type 'linux_clockid_t' {aka 'long unsigned int'} [-Wformat=] #define UNIMPLEMENTED_ARGS(...) { fprintf(stderr, "%s(" __HEAD(__VA_ARGS__) ") is not implemented\n", __func__, __TAIL(__VA_ARGS__)); assert(0); } ^~~~~ src/libc/time.c:36:7: note: in expansion of macro 'UNIMPLEMENTED_ARGS' UNIMPLEMENTED_ARGS("%d", linux_clock_id); ^~~~~~~~~~~~~~~~~~ src/libc/time.c:36:28: note: format string is defined here UNIMPLEMENTED_ARGS("%d", linux_clock_id); ~^ %ld src/libc/time.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' In file included from :32: src/libthr/pthread.c: In function 'shim_pthread_setaffinity_np': ./build/wrappers32.h:1565:52: warning: passing argument 3 of 'shim_pthread_setaffinity_np_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim_pthread_setaffinity_np_impl(td, cpusetsize, cpusetp);\ ^~~~~~~ src/libthr/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER_pthread_setaffinity_np' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libthr/pthread.c:122:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(pthread_setaffinity_np); ^~~~~~~~~ src/libthr/pthread.c:100:109: note: expected 'void *' but argument is of type 'const cpuset_t *' {aka 'const struct *'} int shim_pthread_setaffinity_np_impl(pthread_t thread, size_t cpusetsize, /*const cpu_set_t* cpuset*/ void* cpuset) { ~~~~~~^~~~~~ src/libthr/pthread.c: In function 'linux_to_native_mutex_kind': src/libthr/pthread.c:167:50: error: 'PTHREAD_MUTEX_ADAPTIVE_NP' undeclared (first use in this function); did you mean 'LINUX_PTHREAD_MUTEX_ADAPTIVE_NP'? case LINUX_PTHREAD_MUTEX_ADAPTIVE_NP: return PTHREAD_MUTEX_ADAPTIVE_NP; ^~~~~~~~~~~~~~~~~~~~~~~~~ LINUX_PTHREAD_MUTEX_ADAPTIVE_NP src/libthr/pthread.c:167:50: note: each undeclared identifier is reported only once for each function it appears in src/libthr/pthread.c: In function 'shim_pthread_mutex_init_impl': src/libthr/pthread.c:190:74: warning: passing argument 1 of 'find_native_mutexattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_mutex_init(NATIVE_MUTEX_T(mutex), find_native_mutexattr(attr)); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_mutexattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_mutexattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:70:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(mutex, 200); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_mutex_consistent_impl': src/libthr/pthread.c:239:10: warning: implicit declaration of function 'pthread_mutex_consistent'; did you mean 'pthread_mutex_init'? [-Wimplicit-function-declaration] return pthread_mutex_consistent(NATIVE_MUTEX_T(mutex)); ^~~~~~~~~~~~~~~~~~~~~~~~ pthread_mutex_init src/libthr/pthread.c: In function 'shim_pthread_barrierattr_getpshared_impl': src/libthr/pthread.c:324:65: warning: passing argument 1 of 'find_native_barrierattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_barrierattr_getpshared(find_native_barrierattr(attr), pshared); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_barrierattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_barrierattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:68:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(barrier, 10); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_barrier_init_impl': src/libthr/pthread.c:335:64: warning: passing argument 1 of 'find_native_barrierattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_barrier_init(barrier, find_native_barrierattr(attr), count); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_barrierattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_barrierattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:68:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(barrier, 10); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_cond_init_impl': src/libthr/pthread.c:374:55: warning: passing argument 1 of 'find_native_condattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_cond_init(cond, find_native_condattr(attr)); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_condattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_condattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:69:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(cond, 30); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/main.c:9:10: fatal error: sys/elf.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. --- build/lib64/libc6.so --- In file included from :32: src/libthr/pthread.c: In function 'shim_pthread_setaffinity_np': ./build/wrappers64.h:1525:52: warning: passing argument 3 of 'shim_pthread_setaffinity_np_impl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] shim_pthread_setaffinity_np_impl(td, cpusetsize, cpusetp);\ ^~~~~~~ src/libthr/../shim.h:44:29: note: in expansion of macro 'SHIM_WRAPPER_pthread_setaffinity_np' #define SHIM_WRAP(fun, ...) SHIM_WRAPPER_ ##fun ^~~~~~~~~~~~~ src/libthr/pthread.c:122:1: note: in expansion of macro 'SHIM_WRAP' SHIM_WRAP(pthread_setaffinity_np); ^~~~~~~~~ src/libthr/pthread.c:100:109: note: expected 'void *' but argument is of type 'const cpuset_t *' {aka 'const struct *'} int shim_pthread_setaffinity_np_impl(pthread_t thread, size_t cpusetsize, /*const cpu_set_t* cpuset*/ void* cpuset) { ~~~~~~^~~~~~ src/libthr/pthread.c: In function 'linux_to_native_mutex_kind': src/libthr/pthread.c:167:50: error: 'PTHREAD_MUTEX_ADAPTIVE_NP' undeclared (first use in this function); did you mean 'LINUX_PTHREAD_MUTEX_ADAPTIVE_NP'? case LINUX_PTHREAD_MUTEX_ADAPTIVE_NP: return PTHREAD_MUTEX_ADAPTIVE_NP; ^~~~~~~~~~~~~~~~~~~~~~~~~ LINUX_PTHREAD_MUTEX_ADAPTIVE_NP src/libthr/pthread.c:167:50: note: each undeclared identifier is reported only once for each function it appears in src/libthr/pthread.c: In function 'shim_pthread_mutex_init_impl': src/libthr/pthread.c:190:74: warning: passing argument 1 of 'find_native_mutexattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_mutex_init(NATIVE_MUTEX_T(mutex), find_native_mutexattr(attr)); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_mutexattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_mutexattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:70:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(mutex, 200); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_mutex_consistent_impl': src/libthr/pthread.c:239:10: warning: implicit declaration of function 'pthread_mutex_consistent'; did you mean 'pthread_mutex_init'? [-Wimplicit-function-declaration] return pthread_mutex_consistent(NATIVE_MUTEX_T(mutex)); ^~~~~~~~~~~~~~~~~~~~~~~~ pthread_mutex_init src/libthr/pthread.c: In function 'shim_pthread_barrierattr_getpshared_impl': src/libthr/pthread.c:324:65: warning: passing argument 1 of 'find_native_barrierattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_barrierattr_getpshared(find_native_barrierattr(attr), pshared); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_barrierattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_barrierattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:68:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(barrier, 10); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_barrier_init_impl': src/libthr/pthread.c:335:64: warning: passing argument 1 of 'find_native_barrierattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_barrier_init(barrier, find_native_barrierattr(attr), count); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_barrierattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_barrierattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:68:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(barrier, 10); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: In function 'shim_pthread_cond_init_impl': src/libthr/pthread.c:374:55: warning: passing argument 1 of 'find_native_condattr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return pthread_cond_init(cond, find_native_condattr(attr)); ^~~~ src/libthr/pthread.c:41:101: note: expected 'linux_pthread_condattr_t *' {aka 'unsigned int *'} but argument is of type 'const linux_pthread_condattr_t *' {aka 'const unsigned int *'} static pthread_ ## name ## attr_t* find_native_ ## name ## attr(linux_pthread_ ## name ## attr_t* attr) { \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/libthr/pthread.c:69:1: note: in expansion of macro 'NATIVE_WHATEVER_ATTRS' NATIVE_WHATEVER_ATTRS(cond, 30); ^~~~~~~~~~~~~~~~~~~~~ src/libthr/pthread.c: At top level: cc1: warning: unrecognized command line option '-Wno-incompatible-pointer-types-discards-qualifiers' src/main.c:9:10: fatal error: sys/elf.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. --- build/lib32/libc6.so --- build/wrappers32.c:8200:10: fatal error: malloc_np.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated. *** [build/lib32/libc6.so] Error code 1 make[1]: stopped in /construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719 --- build/lib64/libc6.so --- build/wrappers64.c:7594:10: fatal error: malloc_np.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated. *** [build/lib64/libc6.so] Error code 1 make[1]: stopped in /construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719 2 errors make[1]: stopped in /construction/emulators/libc6-shim/libc6-shim-6b6fa76812f7cb9625e24f12af99fcb9c46a0719 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /xports/emulators/libc6-shim FAILED 00:00:10