Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721804 - app-office/gnucash-3.8b-r1 with dev-libs/boost-1.73.0 - import-export/csv-imp/assistant-csv-price-import.cpp:270:10: error: ‘replace’ is not a member of ‘std’
Summary: app-office/gnucash-3.8b-r1 with dev-libs/boost-1.73.0 - import-export/csv-imp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on: 726804
Blocks: boost-1.74
  Show dependency tree
 
Reported: 2020-05-09 08:23 UTC by Dennis Schridde
Modified: 2020-11-15 18:03 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,937.39 KB, text/x-log)
2020-05-09 08:23 UTC, Dennis Schridde
Details
Patch setting -std=gnu++17 to compile with gcc-10 (c++_std.patch,458 bytes, patch)
2020-05-09 10:22 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2020-05-09 08:23:23 UTC
Created attachment 636936 [details]
build.log

FAILED: gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o 
/usr/sbin/x86_64-pc-linux-gnu-g++ -DG_LOG_DOMAIN=\"gnc.import.csv\" -DHAVE_CONFIG_H -DHAVE_GUILE22 -D_GNU_SOURCE -Dgncmod_csv_import_EXPORTS -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/borrowed/goffice -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash
/gnome-utils -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/app-utils -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/engine -Icommon -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/common -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/borrowed/libc -Ilibgnucash/core-utils -I/tmp/portage/app-off
ice/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/core-utils -I/usr/include/guile/2.2 -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/gnc-module -I/usr/include/libxml2 -I/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/backend/xml -isystem /usr/include/gtk-3.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-s
pi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cairo -isystem /usr/include/pango-1.0 -isystem /usr/include/fribidi -isystem /usr/include/atk-1.0 -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr
/include/libpng16 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/lib64/libffi/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include  -DNDEBUG -Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11 -pipe -O2 -march
=znver1 -fPIC   -pthread -MD -MT gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o -MF gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o.d -o gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o -c /tmp/portage/app-office/gnucash
-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp
/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp: In function ‘void csv_price_imp_preview_settings_text_inserted_cb(GtkEditable*, gchar*, gint, gint*, CsvImpPriceAssist*)’:
/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:270:10: error: ‘replace’ is not a member of ‘std’
  270 |     std::replace (mod_txt.begin(), mod_txt.end(), '[', '(');
      |          ^~~~~~~
/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:271:10: error: ‘replace’ is not a member of ‘std’
  271 |     std::replace (mod_txt.begin(), mod_txt.end(), ']', ')');
      |          ^~~~~~~
/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp: In member function ‘void CsvImpPriceAssist::preview_reparse_col_type(GncPricePropType)’:
/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:1196:41: error: no matching function for call to ‘find(std::vector<GncPricePropType>::iterator, std::vector<GncPricePropType>::iterator, GncPricePropType&)’
 1196 |                 column_types.end(), type);
      |                                         ^
[...]


Portage 2.3.99 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.1.0, glibc-2.31-r2, 5.6.11 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.11-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.7
KiB Mem:    14128204 total,   3494984 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 09 May 2020 06:15:02 +0000
Head commit of repository gentoo: 2f7008749d94310074719b0712f36d1aa5f575c0
Head commit of repository flatpak-overlay: 2bcc4b030ff8288683533a84f15777680c8c883e

Head commit of repository local: 81f7cbe5fd1e848eebc861f574951e536e273ddf

sh bash 5.0_p17
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
ccache version 3.7.9 [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo, 3.9.0_alpha6::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::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::gentoo
sys-devel/gcc:            9.3.0::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

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

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bdplus berkdb blake2 bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub evdev exif faudio fax fbcon fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio pwquality python qml qrcode qt5 raw rdp readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telemetry telepathy tga theora threads thunderbolt tiff timezone tmux truetype tslib udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webp widgets wireguard wmf woff2 wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xxhash xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" 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" ENLIGHTENMENT_MODULES="*" 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="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-office/gnucash-3.8b-r1::gentoo was built with the following:
USE="aqbanking gui mysql nls ofx python quotes smartcard -debug -doc -examples -gnome-keyring -postgres -register2 -sqlite -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"
Comment 1 Bernd Feige 2020-05-09 09:46:00 UTC
Happened here as well, after upgrading to gcc-10 (same version compiled fine with gcc-9).
Comment 2 Bernd Feige 2020-05-09 10:22:39 UTC
Created attachment 637010 [details, diff]
Patch setting -std=gnu++17 to compile with gcc-10

It seems that gcc-10 is more restrictive with the C++ standards than gcc-9. gnucash uses -std=gnu++11 in CMakeLists.txt but the code uses constructs such as std::replace which were introduced in C++-17 (cf. https://en.cppreference.com/w/cpp/algorithm/replace). Bumping to current gnucash 3.10 had other issues (more tests needing to be disabled it seems) but I saw that -std=gnu++11 is also set in that version, so it probably will need this patch as well.
Upcoming version 4.0 will use -std=gnu++17 though... (cf. https://www.gnucash.org/news.phtml)
Comment 3 Adrian Bassett 2020-05-09 12:03:00 UTC
(In reply to Bernd Feige from comment #1)
> Happened here as well, after upgrading gnucash to gcc-10 (same version compiled fine
> with gcc-9).

I am seeing the same issue when trying to re-compile gnucash-3.8b-r1 as a result of boost being upgraded from 1.72.0-r1 to 1.73.0.

However, although gcc-10.1.0 is installed on my system it is neither my system default:

# gcc-config -l
 [1] x86_64-pc-linux-gnu-8.4.0
 [2] x86_64-pc-linux-gnu-9.3.0 *
 [3] x86_64-pc-linux-gnu-10.1.0

nor is it actually being used in the build:

FAILED: gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++-9.3.0 -DG_LOG_DOMAIN=\"gnc.import.csv\" -DHAVE_CONFIG_H -DHAVE_GUILE22 -D_GNU_SOURCE -Dgncmod_csv_import_EXPORTS -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/borrowed/goffice -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/gnome-utils -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/app-utils -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/engine -Icommon -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/common -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/borrowed/libc -Ilibgnucash/core-utils -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/core-utils -I/usr/include/guile/2.2 -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/gnc-module -I/usr/include/libxml2 -I/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/libgnucash/backend/xml -isystem /usr/include/gtk-3.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cairo -isystem /usr/include/pango-1.0 -isystem /usr/include/fribidi -isystem /usr/include/atk-1.0 -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/lib64/libffi/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include  -DNDEBUG -Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse -mstackrealign -fomit-frame-pointer -frecord-gcc-switches -fstack-clash-protection -fuse-ld=gold -O2 -pipe -Wno-expansion-to-defined -Wno-error=unused -z now -fuse-ld=bfd -fPIC   -pthread -MD -MT gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o -MF gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o.d -o gnucash/import-export/csv-imp/CMakeFiles/gncmod-csv-import.dir/assistant-csv-price-import.cpp.o -c /tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp
/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp: In function ‘void csv_price_imp_preview_settings_text_inserted_cb(GtkEditable*, gchar*, gint, gint*, CsvImpPriceAssist*)’:
/tmp_portage/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:270:10: error: ‘replace’ is not a member of ‘std’
  270 |     std::replace (mod_txt.begin(), mod_txt.end(), '[', '(');
      |          ^~~~~~~

So, I'm wondering if the problem is actually gcc-10 specific.  What gcc/boost combinations do others have?
Comment 4 Dennis Schridde 2020-05-09 14:40:12 UTC
=================================================================
                        Package Settings
=================================================================

dev-libs/boost-1.73.0::gentoo was built with the following:
USE="bzip2 icu lzma nls python threads zlib zstd -context -debug -doc -mpi -numpy -static-libs -tools" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8"
CXXFLAGS="-pipe -O2 -march=znver1 -std=c++14"
Comment 5 Bernd Feige 2020-05-09 15:29:36 UTC
(In reply to Adrian Bassett from comment #3)
> So, I'm wondering if the problem is actually gcc-10 specific.  What
> gcc/boost combinations do others have?

Here, gcc-10 and boost-1.73 occurred practically simultaneously.
So it's possible that it is a boost problem. This would mean that boost previously provided std::replace but doesn't do this any longer, requiring those functions to be in the standard C++ library (i.e., C++-17 compiler support). The patch fixes the problem here. Did anybody try it?
Comment 6 Adrian Bassett 2020-05-09 15:57:52 UTC
(In reply to Bernd Feige from comment #5)
> (In reply to Adrian Bassett from comment #3)
> > So, I'm wondering if the problem is actually gcc-10 specific.  What
> > gcc/boost combinations do others have?
> 
> Here, gcc-10 and boost-1.73 occurred practically simultaneously.
> So it's possible that it is a boost problem. This would mean that boost
> previously provided std::replace but doesn't do this any longer, requiring
> those functions to be in the standard C++ library (i.e., C++-17 compiler
> support). The patch fixes the problem here. Did anybody try it?

I have now.  I edited the CMakeLists.txt in my previously failing build tree as per the patch and then successfully completed the compile ('ebuild gnucash-3.8b-r1.ebuild package') which installed (emerge -K) and runs OK.  This was using gcc-9.3 and boost-1.73 as previously described.
Comment 7 Daniel Harding 2020-05-14 10:20:20 UTC
I hit similar errors after upgrading to boost-1.73.0:

/var/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-expo
rt/csv-imp/gnc-imp-settings-csv-tx.cpp: In function ‘const preset_vec_trans& get
_import_presets_trans()’:
/var/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-expo
rt/csv-imp/gnc-imp-settings-csv-tx.cpp:127:10: error: ‘sort’ is not a member of 
‘std’
  127 |     std::sort(preset_names.begin(), preset_names.end());
      |          ^~~~
/var/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-expo
rt/csv-imp/gnc-imp-settings-csv-tx.cpp: In member function ‘bool CsvTransImpSett
ings::load()’:
/var/tmp/portage/app-office/gnucash-3.8b-r1/work/gnucash-3.8/gnucash/import-expo
rt/csv-imp/gnc-imp-settings-csv-tx.cpp:182:34: error: ‘find_if’ is not a member 
of ‘std’; did you mean ‘find’?
  182 |         auto col_types_it = std::find_if (gnc_csv_col_type_strs.begin(),
      |                                  ^~~~~~~
      |                                  find

Applying the patch provided by Bernd Feige allowed the build to succeed.  Like Adrian Bassett I have gcc-10.1.0 installed on my system, but am still using gcc-9.3.0.
Comment 8 Jochen Schlick 2020-05-15 11:47:26 UTC
- I have exactly the same problem after update to boost-1.73 (but with gcc-8.3.0
- Bernd's patch fixes the problem

(maybe emerge --info should show the boost library too)

emerge --info
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/no-multilib, gcc-8.3.0, glibc-2.31-r3, 5.6.13-gentoo x86_64)
=================================================================
System uname: Linux-5.6.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-4712MQ_CPU_@_2.30GHz-with-gentoo-2.7
KiB Mem:    24453664 total,  14954540 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 14 May 2020 13:45:01 +0000
Head commit of repository gentoo: 6f06043f20e600f906005790631fc6fc85a95b68
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
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.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::mv
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.2::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.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            8.3.0-r3::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Comment 9 ad PC 2020-05-16 07:55:29 UTC
I can confirm the issue: gcc 9.3.0 and boost 1.73.0 used here. So the core of the problem is not gcc 10.1.0
Comment 10 Harris Landgarten 2020-05-21 12:42:00 UTC
note: At least on my system, the patch fixes the boost issue with gcc-9.3 but it still does not build with gcc-10.1 so I think there is still a gcc-10.1 issue. Can anyone confirm.
Comment 11 Adrian Bassett 2020-05-21 13:22:37 UTC
(In reply to Harris Landgarten from comment #10)
> note: At least on my system, the patch fixes the boost issue with gcc-9.3
> but it still does not build with gcc-10.1 so I think there is still a
> gcc-10.1 issue. Can anyone confirm.

Well, with the patch from https://bugs.gentoo.org/721804#c2 applied, gnucash-3.8b-r1 built fine for me with gcc-10.1.0.  No other changes were needed as against compiling with gcc-9.3.0.
Comment 12 Fabio Coatti 2020-05-25 07:58:22 UTC
Confirmed, patch works also here, gcc-10.1.0
Comment 13 jason 2020-05-25 21:26:38 UTC
This is an issue with Boost 1.73.0 from what I saw on gnucash

https://bugs.gnucash.org/show_bug.cgi?id=797748

https://bugs.gnucash.org/show_bug.cgi?id=797771

The patch here:

https://github.com/Gnucash/gnucash/commit/4e9990ddb5a457707f7927c4369d1cbe802ff884

Seems to fix ever file except for:

gnc-imp-settings-csv-price.cpp

Which still needs #include <algorithm>
Comment 14 Kévin Petit 2020-07-19 12:23:49 UTC
The patch worked for me as well.
Comment 15 Larry the Git Cow gentoo-dev 2020-07-21 12:09:04 UTC
The bug has been referenced in the following commit(s):

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

commit dd49805f4672f456ac5812b17e7f3590f9e4b714
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2020-07-21 12:08:38 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2020-07-21 12:08:41 +0000

    app-office/gnucash: Bump to 4.0
    
    Thanks to Jan Seeger for helping get this revision done.
    
    Bug: https://bugs.gentoo.org/721804
    Bug: https://bugs.gentoo.org/726804
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 app-office/gnucash/Manifest           |   1 +
 app-office/gnucash/gnucash-4.0.ebuild | 235 ++++++++++++++++++++++++++++++++++
 2 files changed, 236 insertions(+)