Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951533 - sci-electronics/kicad-9.0.0: fails to build with -fuse-ld=mold
Summary: sci-electronics/kicad-9.0.0: fails to build with -fuse-ld=mold
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zoltan Puskas
URL: https://gitlab.com/kicad/code/kicad/-...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2025-03-18 08:49 UTC by eroen
Modified: 2025-03-20 12:30 UTC (History)
3 users (show)

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


Attachments
sci-electronics:kicad-9.0.0:20250317-204654.log.xz (sci-electronics:kicad-9.0.0:20250317-204654.log.xz,65.09 KB, application/x-xz)
2025-03-18 08:49 UTC, eroen
Details
sci-electronics:kicad-9.0.0:20250318-090617.log.xz (sci-electronics:kicad-9.0.0:20250318-090617.log.xz,67.38 KB, application/x-xz)
2025-03-18 14:22 UTC, eroen
Details
Revert 1c1bdb4f (bug_951533.patch,356 bytes, patch)
2025-03-20 12:30 UTC, eroen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2025-03-18 08:49:05 UTC
Created attachment 921072 [details]
sci-electronics:kicad-9.0.0:20250317-204654.log.xz

It builds fine after adding -fuse-ld=bfd to LDFLAGS.


: && /usr/lib/llvm/20/bin/clang++ -O2 -pipe -fstandalone-debug -pthread -Wall -Wsuggest-override -Winconsistent-missing-override -Werror=vla -Wimplicit-fallthrough -Werror=return-type -Wshadow -Wsign-compare -Wmissing-field-initializers -Wempty-body -Wreorder -Wmismatched-tags -Wpessimizing-move -Wredundant-move -Wno-psabi -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold utils/idftools/CMakeFiles/idf2vrml.dir/idf2vrml.cpp.o -o utils/idftools/idf2vrml  utils/idftools/libidf3.a  libs/kimath/libkimath.a  common/libcommon.a  /usr/lib64/libGL.so  /usr/lib64/libGLU.so  -L/usr/lib64  -pthread  -lwx_gtk3u_gl-3.2-gtk3  -lwx_gtk3u_aui-3.2-gtk3  -lwx_gtk3u_html-3.2-gtk3  -lwx_gtk3u_core-3.2-gtk3  -lwx_baseu_net-3.2-gtk3  -lwx_baseu-3.2-gtk3  -lwx_gtk3u_propgrid-3.2-gtk3  -lwx_baseu_xml-3.2-gtk3  -lwx_gtk3u_stc-3.2-gtk3  -lwx_gtk3u_richtext-3.2-gtk3  scripting/libscripting.a  common/libcommon.a  scripting/libscripting.a  thirdparty/libcontext/liblibcontext.a  common/gal/libkigal.so.9.0.0  /usr/lib64/libGLEW.so  /usr/lib64/libcairo.so  /usr/lib64/libpixman-1.so  /usr/lib64/libGL.so  /usr/lib64/libGLU.so  thirdparty/nanosvg/libnanosvg.a  thirdparty/dxflib_qcad/libdxflib_qcad.a  thirdparty/tinyspline_lib/libtinyspline_lib.a  thirdparty/nanodbc/libnanodbc.a  -lodbc  /usr/lib64/libboost_locale.so.1.87.0  common/libkicommon.so.9.0.0  libs/kimath/libkimath.a  thirdparty/clipper2/libclipper2.a  -lm  libs/kiplatform/libkiplatform.a  libs/core/libcore.a  -L/usr/lib64  -pthread  -lgtk-3  -lgdk-3  -lpangocairo-1.0  -lcairo-gobject  -lgdk_pixbuf-2.0  -latk-1.0  -lpango-1.0  -lcairo  -lharfbuzz  -lgio-2.0  -lgobject-2.0  -lglib-2.0  -lsecret-1  -lgio-2.0  -lgobject-2.0  -lglib-2.0  -lsecret-1  thirdparty/fmt/libfmt.a  libs/kinng/libkinng.a  /usr/lib64/libnng.so  api/libkiapi.so.9.0.0  /usr/lib64/libprotobuf.so.29.2.0  /usr/lib64/libabsl_log_internal_check_op.so.2407.0.0  /usr/lib64/libabsl_leak_check.so.2407.0.0  /usr/lib64/libabsl_die_if_null.so.2407.0.0  /usr/lib64/libabsl_log_internal_conditions.so.2407.0.0  /usr/lib64/libabsl_log_internal_message.so.2407.0.0  /usr/lib64/libabsl_log_internal_nullguard.so.2407.0.0  /usr/lib64/libabsl_examine_stack.so.2407.0.0  /usr/lib64/libabsl_log_internal_format.so.2407.0.0  /usr/lib64/libabsl_log_internal_proto.so.2407.0.0  /usr/lib64/libabsl_log_internal_log_sink_set.so.2407.0.0  /usr/lib64/libabsl_log_sink.so.2407.0.0  /usr/lib64/libabsl_log_entry.so.2407.0.0  /usr/lib64/libabsl_flags_internal.so.2407.0.0  /usr/lib64/libabsl_flags_marshalling.so.2407.0.0  /usr/lib64/libabsl_flags_reflection.so.2407.0.0  /usr/lib64/libabsl_flags_config.so.2407.0.0  /usr/lib64/libabsl_flags_program_name.so.2407.0.0  /usr/lib64/libabsl_flags_private_handle_accessor.so.2407.0.0  /usr/lib64/libabsl_flags_commandlineflag.so.2407.0.0  /usr/lib64/libabsl_flags_commandlineflag_internal.so.2407.0.0  /usr/lib64/libabsl_log_initialize.so.2407.0.0  /usr/lib64/libabsl_log_internal_globals.so.2407.0.0  /usr/lib64/libabsl_log_globals.so.2407.0.0  /usr/lib64/libabsl_vlog_config_internal.so.2407.0.0  /usr/lib64/libabsl_log_internal_fnmatch.so.2407.0.0  /usr/lib64/libabsl_raw_hash_set.so.2407.0.0  /usr/lib64/libabsl_hash.so.2407.0.0  /usr/lib64/libabsl_city.so.2407.0.0  /usr/lib64/libabsl_low_level_hash.so.2407.0.0  /usr/lib64/libabsl_hashtablez_sampler.so.2407.0.0  /usr/lib64/libabsl_random_distributions.so.2407.0.0  /usr/lib64/libabsl_random_seed_sequences.so.2407.0.0  /usr/lib64/libabsl_random_internal_pool_urbg.so.2407.0.0  /usr/lib64/libabsl_random_internal_randen.so.2407.0.0  /usr/lib64/libabsl_random_internal_randen_hwaes.so.2407.0.0  /usr/lib64/libabsl_random_internal_randen_hwaes_impl.so.2407.0.0  /usr/lib64/libabsl_random_internal_randen_slow.so.2407.0.0  /usr/lib64/libabsl_random_internal_platform.so.2407.0.0  /usr/lib64/libabsl_random_internal_seed_material.so.2407.0.0  /usr/lib64/libabsl_random_seed_gen_exception.so.2407.0.0  /usr/lib64/libabsl_statusor.so.2407.0.0  /usr/lib64/libabsl_status.so.2407.0.0  /usr/lib64/libabsl_cord.so.2407.0.0  /usr/lib64/libabsl_cordz_info.so.2407.0.0  /usr/lib64/libabsl_cord_internal.so.2407.0.0  /usr/lib64/libabsl_cordz_functions.so.2407.0.0  /usr/lib64/libabsl_exponential_biased.so.2407.0.0  /usr/lib64/libabsl_cordz_handle.so.2407.0.0  /usr/lib64/libabsl_crc_cord_state.so.2407.0.0  /usr/lib64/libabsl_crc32c.so.2407.0.0  /usr/lib64/libabsl_crc_internal.so.2407.0.0  /usr/lib64/libabsl_crc_cpu_detect.so.2407.0.0  /usr/lib64/libabsl_bad_optional_access.so.2407.0.0  /usr/lib64/libabsl_strerror.so.2407.0.0  /usr/lib64/libabsl_str_format_internal.so.2407.0.0  /usr/lib64/libabsl_synchronization.so.2407.0.0  /usr/lib64/libabsl_stacktrace.so.2407.0.0  /usr/lib64/libabsl_symbolize.so.2407.0.0  /usr/lib64/libabsl_debugging_internal.so.2407.0.0  /usr/lib64/libabsl_demangle_internal.so.2407.0.0  /usr/lib64/libabsl_demangle_rust.so.2407.0.0  /usr/lib64/libabsl_decode_rust_punycode.so.2407.0.0  /usr/lib64/libabsl_utf8_for_code_point.so.2407.0.0  /usr/lib64/libabsl_graphcycles_internal.so.2407.0.0  /usr/lib64/libabsl_kernel_timeout_internal.so.2407.0.0  /usr/lib64/libabsl_malloc_internal.so.2407.0.0  /usr/lib64/libabsl_time.so.2407.0.0  /usr/lib64/libabsl_civil_time.so.2407.0.0  /usr/lib64/libabsl_time_zone.so.2407.0.0  /usr/lib64/libabsl_bad_variant_access.so.2407.0.0  /usr/lib64/libabsl_strings.so.2407.0.0  /usr/lib64/libabsl_int128.so.2407.0.0  /usr/lib64/libabsl_strings_internal.so.2407.0.0  /usr/lib64/libabsl_string_view.so.2407.0.0  /usr/lib64/libabsl_base.so.2407.0.0  /usr/lib64/libabsl_spinlock_wait.so.2407.0.0  /usr/lib64/libabsl_throw_delegate.so.2407.0.0  /usr/lib64/libabsl_raw_logging_internal.so.2407.0.0  /usr/lib64/libabsl_log_severity.so.2407.0.0  thirdparty/json_schema_validator/libnlohmann_json_schema_validator.a  /usr/lib64/libcurl.so  /usr/lib64/libzstd.so  -lwx_gtk3u_gl-3.2-gtk3  -lwx_gtk3u_aui-3.2-gtk3  -lwx_gtk3u_html-3.2-gtk3  -lwx_gtk3u_core-3.2-gtk3  -lwx_baseu_net-3.2-gtk3  -lwx_baseu-3.2-gtk3  -lwx_gtk3u_propgrid-3.2-gtk3  -lwx_baseu_xml-3.2-gtk3  -lwx_gtk3u_stc-3.2-gtk3  -lwx_gtk3u_richtext-3.2-gtk3  /usr/lib64/libgit2.so  /usr/lib64/libfreetype.so  /usr/lib64/libharfbuzz.so  /usr/lib64/libfontconfig.so  /usr/lib64/libpython3.12.so && :
mold: error: undefined symbol: Kiface()
>>> referenced by eda_base_frame.cpp
>>>               common/libcommon.a(eda_base_frame.cpp.o):(EDA_BASE_FRAME::config() const)
>>> referenced by eda_base_frame.cpp
>>>               common/libcommon.a(eda_base_frame.cpp.o):(EDA_BASE_FRAME::sys_search())
>>> referenced by eda_base_frame.cpp
>>>               common/libcommon.a(eda_base_frame.cpp.o):(EDA_BASE_FRAME::help_name())
>>> referenced 3 more times
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
 * ERROR: sci-electronics/kicad-9.0.0::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 failed
Comment 1 eroen 2025-03-18 08:50:59 UTC
occam ~ # emerge --info '=sci-electronics/kicad-9.0.0::gentoo'
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.41-r1, 6.11.11 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.11.11-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-glibc2.41
KiB Mem:     8015900 total,    840444 free
KiB Swap:    8387580 total,   5300396 free
Timestamp of repository gentoo: Mon, 17 Mar 2025 18:30:00 +0000
Head commit of repository gentoo: 35af58707a717506ac77d6cce9fc635b93519f90
Timestamp of repository eroen: Sun, 30 Oct 2016 21:58:42 +0000
Head commit of repository wiktorb: 0c14c46dc4d87a4fa395bf65c132bf0a8b9d3df2

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.85.0-r1::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.0-r1::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.0::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.60.1::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

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

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    volatile: False

eroen
    location: /home/eroen/repos/eroen-overlay
    masters: gentoo
    volatile: True

wiktorb
    location: /var/db/repos/wikkyk
    sync-type: git
    sync-uri: https://github.com/wikkyk/overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
AR="llvm-ar"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -ggdb -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
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=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -ggdb -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -ggdb -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold"
LEX="flex"
MAKEOPTS="-j4"
NM="llvm-nm"
PKGDIR="/var/cache/binpkgs"
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="llvm-ranlib"
SHELL="/bin/bash"
USE="acl amd64 apparmor bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses openmp pam pcre readline seccomp split-usr ssl test-rust unicode verify-sig xattr zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en no nb" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

sci-electronics/kicad-9.0.0::gentoo was built with the following:
USE="openmp -doc -examples -nls -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
CFLAGS="-march=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -O2 -pipe"
CXXFLAGS="-march=sandybridge -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang +aes -Xclang -target-feature -Xclang +avx -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang +crc32 -Xclang -target-feature -Xclang +cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang +pclmul -Xclang -target-feature -Xclang +popcnt -Xclang -target-feature -Xclang +sahf -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang +sse3 -Xclang -target-feature -Xclang +sse4.1 -Xclang -target-feature -Xclang +sse4.2 -Xclang -target-feature -Xclang +ssse3 -Xclang -target-feature -Xclang +xsave -Xclang -target-feature -Xclang +xsaveopt -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold -fuse-ld=bfd"

occam ~ # emerge -pqv '=sci-electronics/kicad-9.0.0::gentoo' llvm-core/clang sys-devel/mold
[ebuild   R   ] sci-electronics/kicad-9.0.0  USE="openmp -doc -examples -nls -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
[ebuild   R   ] sys-devel/mold-2.37.1  USE="-debug -test"
[ebuild   R   ] llvm-core/clang-20.1.0-r1  USE="extra (pie) static-analyzer verify-sig xml -debug -doc (-ieee-long-double) -test" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Comment 2 eroen 2025-03-18 14:22:30 UTC
Created attachment 921081 [details]
sci-electronics:kicad-9.0.0:20250318-090617.log.xz

Similarly failing build log using gcc, in case that's more familiar to someone.
Comment 3 eroen 2025-03-20 12:30:16 UTC
Created attachment 921338 [details, diff]
Revert 1c1bdb4f

Reverting commit (1c1bdb4f - Make mold slightly happier.)[0][sic] makes the build succeed with mold as linker. The idf2vrml tool seems to work, it prints its usage instructions and there are no obvious warnings in the build log.

There is an upstream report[1] that 1c1bdb4f also broke the musl build, but upstream seems reluctant to investigate it.

0: https://gitlab.com/kicad/code/kicad/-/commit/1c1bdb4f4aba988553a012c8cc0eb85b6e8aa662
1: https://gitlab.com/kicad/code/kicad/-/issues/20038