Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727930 - net-misc/iperf-3.8.1 USE=-profiling : x86_64-pc-linux-gnu-gcc: error: -pg and -fomit-frame-pointer are incompatible
Summary: net-misc/iperf-3.8.1 USE=-profiling : x86_64-pc-linux-gnu-gcc: error: -pg and...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-11 13:24 UTC by Kobboi
Modified: 2020-06-19 22:31 UTC (History)
2 users (show)

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


Attachments
configure.patch (configure.patch,429 bytes, patch)
2020-06-13 18:56 UTC, Benjamin Réveillé
Details | Diff
configure.ac.patch (configure.ac.patch,480 bytes, patch)
2020-06-13 18:56 UTC, Benjamin Réveillé
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2020-06-11 13:24:17 UTC
* Package:    net-misc/iperf-3.8.1
 * Repository: gentoo
 * Maintainer: netmon@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   compressdebug installsources network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
configure: loading site script /usr/share/config.site
checking for a BSD-compatible install... /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... /
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... (cached) yes
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking for x86_64-pc-linux-gnu-ranlib... (cached) x86_64-pc-linux-gnu-ranlib
checking whether ln -s works... yes
checking for ANSI C header files... (cached) yes
checking for library containing floor... -lm
checking for library containing socket... none required
checking for library containing inet_ntop... none required
checking for an ANSI C-conforming const... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking for x86_64-pc-linux-gnu-pkg-config... x86_64-pc-linux-gnu-pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking TCP_CONGESTION socket option... yes
checking IPv6 flowlabel support... yes
checking for cpuset_setaffinity... no
checking for sched_setaffinity... yes
checking for SetProcessAffinityMask... no
checking for daemon... yes
checking for sendfile... yes
checking for getline... yes
checking SO_MAX_PACING_RATE socket option... yes
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/version.h
config.status: creating examples/Makefile
config.status: creating iperf3.spec
config.status: creating src/iperf_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in src
(...)
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -g -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -Wall -c -o t_auth-t_auth.o `test -f 't_auth.c' || echo './'`t_auth.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -Wall -c -o iperf3_profile-main.o `test -f 'main.c' || echo './'`main.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -Wall -c -o iperf3_profile-cjson.o `test -f 'cjson.c' || echo './'`cjson.c
x86_64-pc-linux-gnu-gcc: error: -pg and -fomit-frame-pointer are incompatible
make[2]: *** [Makefile:979: iperf3_profile-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc: error: -pg and -fomit-frame-pointer are incompatible
make[2]: *** [Makefile:993: iperf3_profile-cjson.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1/src'
make[1]: *** [Makefile:710: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1/src'
make: *** [Makefile:387: all-recursive] Error 1
 * ERROR: net-misc/iperf-3.8.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/iperf-3.8.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/iperf-3.8.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/iperf-3.8.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/iperf-3.8.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1'
 * S: '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1'
 * Messages for package net-misc/iperf-3.8.1:
 * ERROR: net-misc/iperf-3.8.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/iperf-3.8.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/iperf-3.8.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/iperf-3.8.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/iperf-3.8.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1'
 * S: '/var/tmp/portage/net-misc/iperf-3.8.1/work/iperf-3.8.1'


Reproducible: Always
Comment 1 Kobboi 2020-06-11 13:26:19 UTC
Compiling as:

[ebuild     U  ] net-misc/iperf-3.8.1:3::gentoo [3.7:3::gentoo] USE="-libressl -profiling -sctp -static-libs" 609 KiB

and 

   CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"

and I don't think -fomit-frame-pointer is that atypical.

I don't understand why -gp is used even though I'm not interested in USE=profiling.
Comment 2 Kobboi 2020-06-11 13:29:08 UTC
config.log shows

  $ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/iperf-3.8.1 --htmldir=/usr/share/doc/iperf-3.8.1/html --with-sysroot=/ --libdir=/usr/lib64 --disable-profiling --disable-static --without-sctp

so at least it's correctly disabling support of the USE flag configurable items.
Comment 3 Benjamin Réveillé 2020-06-13 10:26:06 UTC
Exact same issue for me

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o t_uuid-t_uuid.o `test -f 't_uuid.c' || echo './'`t_uuid.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o t_api-t_api.o `test -f 't_api.c' || echo './'`t_api.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o t_auth-t_auth.o `test -f 't_auth.c' || echo './'`t_auth.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-main.o `test -f 'main.c' || echo './'`main.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-cjson.o `test -f 'cjson.c' || echo './'`cjson.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_api.o `test -f 'iperf_api.c' || echo './'`iperf_api.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_error.o `test -f 'iperf_error.c' || echo './'`iperf_error.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_auth.o `test -f 'iperf_auth.c' || echo './'`iperf_auth.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_client_api.o `test -f 'iperf_client_api.c' || echo './'`iperf_client_api.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_locale.o `test -f 'iperf_locale.c' || echo './'`iperf_locale.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c units.c  -fPIC -DPIC -o .libs/units.o
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_server_api.o `test -f 'iperf_server_api.c' || echo './'`iperf_server_api.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_tcp.o `test -f 'iperf_tcp.c' || echo './'`iperf_tcp.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_udp.o `test -f 'iperf_udp.c' || echo './'`iperf_udp.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_sctp.o `test -f 'iperf_sctp.c' || echo './'`iperf_sctp.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_util.o `test -f 'iperf_util.c' || echo './'`iperf_util.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-iperf_time.o `test -f 'iperf_time.c' || echo './'`iperf_time.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-dscp.o `test -f 'dscp.c' || echo './'`dscp.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-net.o `test -f 'net.c' || echo './'`net.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-tcp_info.o `test -f 'tcp_info.c' || echo './'`tcp_info.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -pg -g -O2 -march=znver2 -fomit-frame-pointer -pipe -Wall -c -o iperf3_profile-timer.o `test -f 'timer.c' || echo './'`timer.c

x86_64-pc-linux-gnu-gcc: erreur: -pg et -fomit-frame-pointer sont incompatibles

> emerge -pqv '=net-misc/iperf-3.8.1::gentoo'
[ebuild     U ] net-misc/iperf-3.8.1 [3.7] USE="-libressl -profiling -sctp -static-libs"

> emerge --info '=net-misc/iperf-3.8.1::gentoo'
Portage 2.3.100 (python 3.8.3-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.1.0, glibc-2.31-r5, 5.7.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.7.1-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.2.5
KiB Mem:    32896512 total,  16877140 free
KiB Swap:   65808380 total,  65807636 free
Timestamp of repository gentoo: Sat, 13 Jun 2020 09:15:01 +0000
Head commit of repository gentoo: 58849640d851f78dedceb37e38e5bca8438e8299
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
ccache version 3.7.9 [enabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta3::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            10.1.0::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r5::gentoo
Repositories:

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

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

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE vmware oracle-java-documentation-11 linux-fw-redistributable no-source-code grass-ipafonts NVIDIA-r2 oracle-java-documentation-8 smartgit free-noncomm dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Oracle-BCLA-JavaSE Intel-SDP skype-4.0.0.7-copyright google-chrome MPEG-4 RAR unRAR Skype-TOS BitstreamCyberbit Snes9x PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going --autounmask=n --verbose-conflicts --with-bdeps=y"
ENV_UNSET="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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR en en_US en_GB"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus accessibility acl acpi activities aim alsa amd64 amr apache2 apng ass audiofile avahi bash bash-completion bcmath berkdb bidi bluetooth bzip2 cairo calendar caps captury ccache cdaudio cdda cddb cdinstall cdio cdr cgi chroot cli cpudetection crypt css cups cvs cxx dbus declarative device-mapper dga dhcp dirac discover divx dnd doc dot dri dts dv dvb dvd dvdr dvdread egl elogind embedded emboss emoticon enca encode evdev exif experimental extras faac faad fam fame farstream fat fbcon fbcondecor fdk ffmpeg fftw firefox firefox3 flac font-server fontconfig fortran fortran2003 fpx fr freetype fts3 fuse g3dvl gcj gcl gd gdbm gegl gif gimp git gl2ps gles2 glib glibc-omitfp glitz gmail gmedia gmp gnutls goom gphoto2 gpm graphviz grub gs gsl gstreamer gtk gtk3 h323 harfbuzz highlight history hpcups htmlhandbook http2 httpd iconv icq icu ieee1394 imagemagick imap imlib inspector ithreads jabber jadetex java javafx jemalloc jpeg jpeg2k kde kerberos kipi kwallet lapack lastfm lcms libkms libnotify libtirpc libv4l libv4l2 libwww lirc live lm-sensors logitech-mouse logrotate lua lzo mad math matroska mdnsresponder-compat messages mikmod mime minizip mjpeg mng mod modplug motif mount mp3 mp3tunes mp4 mpeg mpeg2 mpi mplayer msn mtp multilib multimedia musepack musicbrainz mysql mysqli ncurses network networkmanager nforce2 nfs nfsv4 nfsv41 nis nls nptl nsplugin ntfs nvcontrol nvidia nvtv objc ogg openal opencascade opengl openmp openssl opus pam pango parport parse-clocks pcre pdf pdfimport perl phonon pic plasma plymouth png policykit posix ppds printsupport projectm pulseaudio pvr python qml qrcode qt5 quicktime rar rdesktop readline real realmedia remote romio rtc rtmp rtsp samba sasl scanner schroedinger screen screencast script sdl seccomp secure-delete semantic-desktop sensors server skins slang smbclient speex spell split-usr sql sqlite srt ssl staging startup-notification stream subtitles subversion svg swat sysfs szip tcl tcpd tetex texteffect theora threads threadsafe thunderbird tidy tiff tk transcode truetype udev udisks unicode update_drivedb upnp upower usb utils v4l v4l2 vaapi vdpau vdr videos vim vim-pager vim-syntax visualization vlm vorbis vpx wayland webkit webpresence webserver widgets win32codecs winpopup wmf wmp wxwidgets wxwindows x264 x265 xanim xattr xcb xcomposite xface xinerama xml xmlreader xmltv xosd xpm xscreensaver xulrunner xv xvfb xvid xvmc yahoo yv12 zeroconf zip zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput joystick" KERNEL="linux" L10N="fr fr-FR en en-US en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="default devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_8" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="nv v4l nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Chris Smith 2020-06-13 14:33:32 UTC
For some reason the config is not getting applied to the build.
If the $(use_enable profiling) line is removed from the ebuild it compiles fine, which possibly suggests that it's also being built with static-libs and sctp whether selected or not.
Comment 5 Chris Smith 2020-06-13 16:16:07 UTC
Looks like an actual bug in the iperf release where --disable-profiling and --enable-profiling end up enabling profiling.
Comment 6 Chris Smith 2020-06-13 16:37:19 UTC
https://github.com/esnet/iperf/pull/1018
Comment 7 Benjamin Réveillé 2020-06-13 18:56:28 UTC
Created attachment 644572 [details, diff]
configure.patch

Put this patch in /etc/portage/patches/net-misc/iperf-3.8.1
Comment 8 Benjamin Réveillé 2020-06-13 18:56:49 UTC
Created attachment 644574 [details, diff]
configure.ac.patch

Put this patch in /etc/portage/patches/net-misc/iperf-3.8.1
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-15 09:46:36 UTC
Comment on attachment 644574 [details, diff]
configure.ac.patch

Instead of making --enable-profiling a NOOP, you could simply set USE=-profiling to disable building the profiling binary.
Comment 10 Kobboi 2020-06-15 09:52:33 UTC
@jer: I reverted your change to the summary, as I am not using USE=profile (see also my comment #1)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-15 09:56:40 UTC
(In reply to Kobboi from comment #10)
> @jer: I reverted your change to the summary, as I am not using USE=profile
> (see also my comment #1)

Yes, I just fixed that typo.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-15 09:59:27 UTC
I think I'll remove the USE flag not just because of this configure bug, but also because it does not even install the iperf3_profile.
Comment 13 Larry the Git Cow gentoo-dev 2020-06-15 10:05:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e8ac086f89a57f077e9e4e49a44b5c212ac4a5d

commit 0e8ac086f89a57f077e9e4e49a44b5c212ac4a5d
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-06-15 10:03:04 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-06-15 10:05:02 +0000

    net-misc/iperf: Drop IUSE=profiling
    
    The configure flag only takes care of compiling an iperf3_profile binary
    and not installing same. Anyone interested in that could use
    EXTRA_ECONF=--enable-profiling instead.
    
    Package-Manager: Portage-2.3.101, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/727930
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-misc/iperf/iperf-3.7.ebuild           |  3 +--
 net-misc/iperf/iperf-3.8.1.ebuild         |  3 +--
 net-misc/iperf/iperf-3.99999.99999.ebuild | 18 ++++++++++--------
 net-misc/iperf/metadata.xml               |  3 ---
 4 files changed, 12 insertions(+), 15 deletions(-)
Comment 14 Benjamin Réveillé 2020-06-19 22:31:57 UTC
Well it emerge now... but the iperf3 executable is not installed in /usr/bin...

> equery f =iperf-3.8.1
 * Searching for =iperf-3.8.1 ...
 * Contents of net-misc/iperf-3.8.1:
/etc
/etc/conf.d
/etc/conf.d/iperf3
/etc/init.d
/etc/init.d/iperf3
/usr
/usr/share
/usr/share/doc
/usr/share/doc/iperf-3.8.1
/usr/share/doc/iperf-3.8.1/README.md.bz2