During system update it is impossible to update network manager due to linker error. Reproducible: Always Steps to Reproduce: 1. emerge =net-misc/networkmanager-1.28.0-r1 Actual Results: libtool: link: x86_64-pc-linux-gnu-gcc-ranlib src/.libs/libNetworkManager.a libtool: link: rm -fr src/.libs/libNetworkManager.lax libtool: link: ( cd "src/.libs" && rm -f "libNetworkManager.la" && ln -s "../libNetworkManager.la" "libNetworkManager.la" ) libtool: link: x86_64-pc-linux-gnu-gcc -fno-strict-aliasing -fdata-sections -ffunction-sections -Wl,--gc-sections -march=znver2 -mtune=znver2 -O2 -s -pipe -fomit-frame-pointer -rdynamic -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--hash-style=both -Wl,--as-needed -o src/NetworkManager-all-sym src/NetworkManager_all_sym-main.o -Wl,--export-dynamic -pthread src/.libs/libNetworkManager.a -luuid -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ludev -lelogind -lndp -lpsl -lcurl -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -ldl -pthread /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/nm: ./src/NetworkManager-all-sym: no symbols make[2]: *** [Makefile:20279: src/NetworkManager.ver] Error 1 make[1]: *** [Makefile:17623: all-recursive] Error 1 make: *** [Makefile:8031: all] Error 2 Expected Results: Buil successful. [ebuild U ] net-misc/networkmanager-1.28.0-r1::gentoo [1.26.6::gentoo] USE="elogind introspection modemmanager ncurses nss policykit ppp -audit -bluetooth -connection-sharing -dhclient -dhcpcd -gnutls -iwd -ofono -ovs -resolvconf (-selinux) -systemd -teamd -test -vala -wext -wifi (-json%)" ABI_X86="32 (64) (-x32)" 0 KiB
Do you have -s in C(XX)FLAGS? If so, you shouldn't do that, please try without. Portage will take care of stripping installed files already. If not that, please provide emerge --info's output and attach full build.log.