Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908253 - media-sound/ardour[-cpu_flags_x86_sse]: sse_functions_avx_linux.cc:337:17: error: ‘x86_sse_mix_buffers_with_gain’ was not declared in this scope; did you mean ‘x86_sse_avx_mix_buffers_with_gain’?
Summary: media-sound/ardour[-cpu_flags_x86_sse]: sse_functions_avx_linux.cc:337:17: er...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-10 18:19 UTC by Sam James
Modified: 2023-10-03 21:22 UTC (History)
1 user (show)

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


Attachments
build.log (file_908253.txt,850.08 KB, text/plain)
2023-06-10 18:19 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-10 18:19:22 UTC
Created attachment 863671 [details]
build.log

/usr/include/boost/math/tools/config.hpp:23:6: warning: #warning "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" [-Wcpp]
   23 | #    warning "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)"
      |      ^~~~~~~
../libs/ardour/sse_functions_avx_linux.cc: In function ‘void x86_sse_avx_mix_buffers_with_gain(float*, const float*, uint32_t, float)’:
../libs/ardour/sse_functions_avx_linux.cc:337:17: error: ‘x86_sse_mix_buffers_with_gain’ was not declared in this scope; did you mean ‘x86_sse_avx_mix_buffers_with_gain’?
  337 |                 x86_sse_mix_buffers_with_gain(dst, src, nframes, gain);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 x86_sse_avx_mix_buffers_with_gain
../libs/ardour/sse_functions_avx_linux.cc: In function ‘void x86_sse_avx_mix_buffers_no_gain(float*, const float*, uint32_t)’:
../libs/ardour/sse_functions_avx_linux.cc:363:17: error: ‘x86_sse_mix_buffers_no_gain’ was not declared in this scope; did you mean ‘x86_sse_avx_mix_buffers_no_gain’?
  363 |                 x86_sse_mix_buffers_no_gain(dst, src, nframes);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 x86_sse_avx_mix_buffers_no_gain

---

# emerge --info
Portage 3.0.44 (python 3.11.4-final-0, default/linux/x86/17.0/systemd, gcc-12, glibc-2.36-r7, 6.1.33-sam_box i686)
=================================================================
System uname: Linux-6.1.33-sam_box-i686-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.36
KiB Mem:    65757432 total,  26466464 free
KiB Swap:   16662520 total,  16589560 free
Timestamp of repository gentoo: Sat, 10 Jun 2023 18:02:02 +0000
sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.8.17::gentoo, 3.9.17::gentoo, 3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/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=i686 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --complete-graph --usepkg=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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"
SHELL="/bin/bash"
USE="acl bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd test-rust udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30 ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Miroslav Šulc gentoo-dev 2023-09-30 20:55:25 UTC
7.5-r1 compiles fine for me, but 9999 fails with this error.

looking at the code, the function is mentioned here:
# grep x86_sse_mix_buffers_with_gain * -r
libs/ardour/ardour/mix.h:	LIBARDOUR_API void  x86_sse_mix_buffers_with_gain(float* dst, float const* src, uint32_t nframes, float gain);
libs/ardour/globals.cc:			mix_buffers_with_gain = x86_sse_mix_buffers_with_gain;
libs/ardour/mix.cc:		x86_sse_mix_buffers_with_gain(dst, src, nframes, gain);
libs/ardour/sse_functions.s:#; void x86_sse_mix_buffers_with_gain (float *dst, float *src, long nframes, float gain);
libs/ardour/sse_functions.s:.globl x86_sse_mix_buffers_with_gain
libs/ardour/sse_functions.s:	.type	x86_sse_mix_buffers_with_gain,@function
libs/ardour/sse_functions.s:x86_sse_mix_buffers_with_gain:
libs/ardour/sse_functions.s:.size	x86_sse_mix_buffers_with_gain, .-x86_sse_mix_buffers_with_gain
libs/ardour/sse_functions_64bit.s:#; void x86_sse_mix_buffers_with_gain (float *dst, float *src, unsigned int nframes, float gain);
libs/ardour/sse_functions_64bit.s:.globl x86_sse_mix_buffers_with_gain
libs/ardour/sse_functions_64bit.s:	.type	x86_sse_mix_buffers_with_gain,@function
libs/ardour/sse_functions_64bit.s:x86_sse_mix_buffers_with_gain:
libs/ardour/sse_functions_64bit.s:.size	x86_sse_mix_buffers_with_gain, .-x86_sse_mix_buffers_with_gain
libs/ardour/sse_functions_64bit_win.s:#; void x86_sse_mix_buffers_with_gain (float *dst, float *src, unsigned int nframes, float gain);
libs/ardour/sse_functions_64bit_win.s:.globl x86_sse_mix_buffers_with_gain
libs/ardour/sse_functions_64bit_win.s:	.def    x86_sse_mix_buffers_with_gain; .scl    2;      .type   32;     
libs/ardour/sse_functions_64bit_win.s:x86_sse_mix_buffers_with_gain:
libs/ardour/sse_functions_avx_linux.cc:		x86_sse_mix_buffers_with_gain(dst, src, nframes, gain);
libs/ardour/test/fpu_test.cc:	mix_buffers_with_gain = x86_sse_mix_buffers_with_gain;


file libs/ardour/sse_functions_avx_linux.cc contains #include "ardour/mix.h" so it should see the declaration of the function. here is where my knowledge ends... any help or insight would be appreciated.


here's the code where the compilation fails:
x86_sse_avx_mix_buffers_with_gain(float *dst, const float *src, uint32_t nframes, float gain)
{
        if (IS_ALIGNED_TO(dst, 32) && IS_ALIGNED_TO(src, 32)) {
                // Pointers are both aligned to 32 bit boundaries, this can be processed with AVX
                x86_sse_avx_mix_buffers_with_gain_aligned(dst, src, nframes, gain);
        } else if (IS_ALIGNED_TO(dst, 16) && IS_ALIGNED_TO(src, 16)) {
                // This can still be processed with SSE
                x86_sse_mix_buffers_with_gain(dst, src, nframes, gain); // THIS FAILS
        } else {
                // Pointers are unaligned, so process them with unaligned load/store AVX
                x86_sse_avx_mix_buffers_with_gain_unaligned(dst, src, nframes, gain);
        }
}


here's the error from 9999:
../libs/ardour/sse_functions_avx_linux.cc: In function ‘void x86_sse_avx_mix_buffers_with_gain(float*, const float*, uint32_t, float)’:
../libs/ardour/sse_functions_avx_linux.cc:337:17: error: ‘x86_sse_mix_buffers_with_gain’ was not declared in this scope; did you mean ‘x86_sse_avx_mix_buffers_with_gain’?
  337 |                 x86_sse_mix_buffers_with_gain(dst, src, nframes, gain);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 x86_sse_avx_mix_buffers_with_gain
../libs/ardour/sse_functions_avx_linux.cc: In function ‘void x86_sse_avx_mix_buffers_no_gain(float*, const float*, uint32_t)’:
../libs/ardour/sse_functions_avx_linux.cc:363:17: error: ‘x86_sse_mix_buffers_no_gain’ was not declared in this scope; did you mean ‘x86_sse_avx_mix_buffers_no_gain’?
  363 |                 x86_sse_mix_buffers_no_gain(dst, src, nframes);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 x86_sse_avx_mix_buffers_no_gain