Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 617766

Summary: sys-devel/crossdev cross-avr/gcc-6.3.0 failed: fatal error: sys/mman.h: No such file or directory (fails with USE="mpx")
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: Current packagesAssignee: Gentoo Crossdev team <crossdev>
Status: RESOLVED FIXED    
Severity: normal CC: embedded, jstein, vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=827824
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 627914    

Description Conrad Kostecki gentoo-dev 2017-05-07 19:34:39 UTC
make[4]: Entering directory '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/avr/libmpx/mpxrt'
/bin/bash ../libtool  --tag=CC   --mode=compile /var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -DHAVE_CONFIG_H -I. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt -I..  -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/..  -fPIC -g -O2 -c -o libmpx_la-mpxrt.lo `test -f 'mpxrt.c' || echo '/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/'`mpxrt.c
/bin/bash ../libtool  --tag=CC   --mode=compile /var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -DHAVE_CONFIG_H -I. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt -I..  -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/..  -fPIC -g -O2 -c -o libmpx_la-mpxrt-utils.lo `test -f 'mpxrt-utils.c' || echo '/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/'`mpxrt-utils.c
libtool: compile:  /var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt -I.. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/.. -fPIC -g -O2 -c /var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt.c -o libmpx_la-mpxrt.o
libtool: compile:  /var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt -I.. -I/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/.. -fPIC -g -O2 -c /var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt-utils.c -o libmpx_la-mpxrt-utils.o
/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt.c:1:0: warning: -fPIC is not supported [-fPIC]
 /* mpxrt.c                  -*-C++-*-

/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt-utils.c:1:0: warning: -fPIC is not supported [-fPIC]
 /* mpxrt-utils.c                  -*-C++-*-

/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt.c:50:22: fatal error: sys/mman.h: No such file or directory
 #include <sys/mman.h>
                      ^
compilation terminated.
/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0/libmpx/mpxrt/mpxrt-utils.c:49:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^
compilation terminated.
make[4]: *** [Makefile:387: libmpx_la-mpxrt.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:390: libmpx_la-mpxrt-utils.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/avr/libmpx/mpxrt'
make[3]: *** [Makefile:409: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/avr/libmpx'
make[2]: *** [Makefile:300: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build/avr/libmpx'
make[1]: *** [Makefile:10211: all-target-libmpx] Error 2
make[1]: Leaving directory '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build'
make: *** [Makefile:858: all] Error 2
 * ERROR: cross-avr/gcc-6.3.0::galactica failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=cross-avr/gcc-6.3.0::galactica'`,
 * the complete build log and the output of `emerge -pqv '=cross-avr/gcc-6.3.0::galactica'`.
 * The complete build log is located at '/var/tmp/portage/cross-avr/gcc-6.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-6.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/cross-avr/gcc-6.3.0/work/build'
 * S: '/var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-6.3.0'
 *
 * Please include /var/tmp/portage/cross-avr/gcc-6.3.0/work/gcc-build-logs.tar.bz2 in your bug report.
 *
Comment 1 Conrad Kostecki gentoo-dev 2017-05-07 19:34:52 UTC
Portage 2.3.5 (python 3.5.3-final-0, default/linux/amd64/13.0, gcc-6.3.0, glibc-2.24-r1, 4.11.0-gentoo x86_64)
=================================================================
System uname: Linux-4.11.0-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C2758_@_2.40GHz-with-gentoo-2.3
KiB Swap:   36700156 total,  36700156 free
Timestamp of repository gentoo: Sun, 07 May 2017 12:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.25::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

galactica
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/lib/fhem /var/lib/pyload /var/lib/slimserver/prefs /var/lib/unifi/data/system.properties"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl alsa amd64 berkdb bzip2 cairo caps cddb cgi cjk cracklib crypt ctype curl cvs cxx dbus dga djvu encode exif ffmpeg flite fontconfig ftp gd gif git gmp gnutls gpm graphviz hddtemp iconv icu idn imlib inotify introspection ipv6 javascript jbig jit jpeg jpeg2k lcms libcaca libnotify libsamplerate lm_sensors lzma lzo maildir mbox mhash mikmod mime mmap modplug mp3 mysql mysqli ncurses nls nntp nptl offensive ogg openal opencl opengl openmp orc oss pam pcre pdf perl png policykit posix postproc postscript pulseaudio python raw readline samba seccomp session simplexml slang sndfile sockets spell sqlite ssl subversion suid svg symlink syslog tcpd theora threads tiff truetype udev unicode usb vaapi vdpau vhosts vim-syntax vorbis wavpack webp wmf x264 xattr xcb xft xml xmp xpm xvid zeroconf zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="apcups cgroups conntrack contextswitch cpu cpusleep df disk dns entropy ethstat exec filecount hddtemp interface ipc ipmi irq load lvm md memory mysql netlink nfs nginx ntpd openvpn ping processes protocols rrdcached sensors serial smart swap syslog tcpconns thermal unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="crystalfontz lcd2usb" LINGUAS="de de_DE" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi geo geoip gunzip gzip proxy realip rewrite stub_status upstream_keepalive" NGINX_MODULES_STREAM="access geo geoip realip ssl_preread" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" USERLAND="GNU" VIDEO_CARDS="ast fbdev"
USE_PYTHON="2.7 3.4 3.5 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 Conrad Kostecki gentoo-dev 2017-05-25 22:08:08 UTC
Compile success with USE="-mpx"
Comment 3 Conrad Kostecki gentoo-dev 2019-10-24 20:34:30 UTC
Closing, as this use flag doesn't exist anymore on my cross-avr/gcc.