Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923962 - net-vpn/riseup-vpn-0.21.11_p20230412: CFLAGS=-Os or -O0 throws: callbacks.cgo2.c:(.text+0x4): undefined reference to `_do_callback'
Summary: net-vpn/riseup-vpn-0.21.11_p20230412: CFLAGS=-Os or -O0 throws: callbacks.cgo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-07 00:37 UTC by CaptainBlood
Modified: 2024-02-08 21:49 UTC (History)
2 users (show)

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


Attachments
-0s build log (net-vpn:riseup-vpn-0.21.11_p20230412:20240207-002833.log.gz,73.39 KB, application/gzip)
2024-02-07 00:37 UTC, CaptainBlood
Details
-01 ebuild log (net-vpn:riseup-vpn-0.21.11_p20230412:20240207-012715.log.gz,77.11 KB, application/gzip)
2024-02-07 01:34 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2024-02-07 00:37:10 UTC
Created attachment 884433 [details]
-0s build log

-O1 & -O2 build fine here.

No idea if anything beyond an elog can be done.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-07 00:41:25 UTC
```
x86_64-pc-linux-gnu-g++ -c -pipe -O2 -g -fPIC -std=gnu++11 -D_REENTRANT -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../bitmask-vpn-ec3f27147f2f72cebedf12ae0cc40277b78e998e -I. -I/usr/include/qt5 -I/usr/include/qt5/QtQuickControls2 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtSvg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtQmlModels -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -Irelease/.moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o release/.obj/moc_qjsonmodel.o release/.moc/moc_qjsonmodel.cpp
x86_64-pc-linux-gnu-g++ -Wl,-rpath-link,/usr/lib64 -o release/bitmask release/.obj/main.o release/.obj/qjsonmodel.o release/.obj/handlers.o release/.obj/gui_main_qml.o release/.obj/gui_themes_Calyx_qml.o release/.obj/gui_themes_theme-calyx_js.o release/.obj/gui_themes_themes_js.o release/.obj/gui_themes_Riseup_qml.o release/.obj/gui_themes_ThemeObject_qml.o release/.obj/gui_themes_theme-riseup_js.o release/.obj/gui_components_BoldLabel_qml.o release/.obj/gui_components_WrappedRadioButton_qml.o release/.obj/gui_components_NavigationDrawer_qml.o release/.obj/gui_components_MaterialRadioIndicator_qml.o release/.obj/gui_components_MaterialCheckBox_qml.o release/.obj/gui_components_VerticalSpacer_qml.o release/.obj/gui_components_Locations_qml.o release/.obj/gui_components_About_qml.o release/.obj/gui_components_VPNButtonBase_qml.o release/.obj/gui_components_ErrorBox_qml.o release/.obj/gui_components_MainView_qml.o release/.obj/gui_components_StatusBox_qml.o release/.obj/gui_components_Preferences_qml.o release/.obj/gui_components_MaterialButton_qml.o release/.obj/gui_components_Header_qml.o release/.obj/gui_components_Icon_qml.o release/.obj/gui_components_Systray_qml.o release/.obj/gui_components_SignalIcon_qml.o release/.obj/gui_components_FadeBehavior_qml.o release/.obj/gui_components_VPNState_qml.o release/.obj/gui_components_LightLabel_qml.o release/.obj/gui_components_MaterialRadioButton_qml.o release/.obj/gui_components_ThemedPage_qml.o release/.obj/gui_components_Splash_qml.o release/.obj/gui_components_InitErrors_qml.o release/.obj/gui_components_Home_qml.o release/.obj/gui_components_Footer_qml.o release/.obj/gui_components_VPNMouseArea_qml.o release/.obj/gui_components_Help_qml.o release/.obj/gui_components_MotdBox_qml.o release/.obj/qmlcache_loader.o release/.obj/qrc_gui_gui_qmlcache.o release/.obj/qrc_vendor.o release/.obj/qrc_qmake_qmake_qm_files.o release/.obj/qrc_qmake_qmake_immediate.o release/.obj/moc_handlers.o release/.obj/moc_qjsonmodel.o   -L../../lib -lgoshim -lpthread /usr/lib64/libQt5QuickControls2.so /usr/lib64/libQt5Quick.so /usr/lib64/libQt5Svg.so /usr/lib64/libQt5Widgets.so /usr/lib64/libQt5Gui.so /usr/lib64/libQt5QmlModels.so /usr/lib64/libQt5Qml.so /usr/lib64/libQt5Network.so /usr/lib64/libQt5Core.so -lGL -pthread   
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ../../lib/libgoshim.a(000018.o): in function `_cgo_e9929d6f81e1_Cfunc__do_callback':
callbacks.cgo2.c:(.text+0x4): undefined reference to `_do_callback'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile.Release:398: release/bitmask] Error 1
```

It's curious that it doesn't even consistently use -Os or -O0. Did you use the same optimisation level in both CFLAGS and CXXFLAGS, or were they mismatched? It's not a reason per-se for this to fail, but it's still very unusual if so.
Comment 2 CaptainBlood 2024-02-07 01:34:56 UTC
Created attachment 884434 [details]
-01 ebuild log

snippet from emerge --info net-vpn/riseup-vpn
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y 			--alphabetical 			--ask-enter-invalid 			--autounmask y  			--autounmask-only n  			--autounmask-unrestricted-atoms y  			--autounmask-write y              --complete-graph y  			--misspell-suggestions n 			--noconfmem 			--nospinner  			--tree 			--with-bdeps 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="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     http://ftp.halifax.rwth-aachen.de/gentoo/     http://ftp.free.fr/mirrors/ftp.gentoo.org/     http://mirrors.soeasyto.com/distfiles.gentoo.org/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.leaseweb.com/gentoo/     http://www.mirrorservice.org/sites/distfiles.gentoo.org/     http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/     http://mirror.bytemark.co.uk/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=bfd "
LEX="flex"
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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"
RANLIB="gcc-ranlib"
SHELL="/bin/bash"
USE="amd64 asm custom-cflags emacs eselect-ldso fortran gentoo-vm gtk-doc minimal ocamlopt split-usr test-rust verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, 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, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================
!!! /etc/portage/package.env references non-existent file: /etc/portage/env/go.local

net-vpn/riseup-vpn-0.21.11_p20230412::gentoo was built with the following:
USE="-test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 python3_11 -python3_12"
CFLAGS="-march=core2 -mtune=native -O1 -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=core2 -mtune=native -O1 -pipe -Wa,-mbranches-within-32B-boundaries"
FEATURES="sfperms merge-sync news config-protect-if-modified usersync unmerge-orphans distlocks fixlafiles usersandbox qa-unresolved-soname-deps userfetch protect-owned sandbox split-elog unmerge-logs strict assume-digests network-sandbox ipc-sandbox parallel-fetch multilib-strict unknown-features-warn binpkg-docompress binpkg-multi-instance buildpkg-live pkgdir-index-trusted pid-sandbox preserve-libs binpkg-logs compress-build-logs ebuild-locks userpriv binpkg-dostrip"