From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C6FDB3858D39; Tue, 14 Mar 2023 08:25:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6FDB3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678782304; bh=8GcFJC41qVJcKRzsguMHTGSFC3BW7nUCqifVASRK73s=; h=From:To:Subject:Date:From; b=gaaG7Owc4jlYbDMHEnBrL7K6UxFK+oB2RVHup3vOwRsY2uVLIAGMcnR1t03NkoHu4 FtQXaQoiwAxjLsyQNabBx6yeXzuvpzltHae+kNdQK1Lu5RFjGPmhuSOODVuVo3m3GS sL7KTK29BgX7Ai0rn60Ci0o386HWr9WPF1fTlum4= From: "angelo70 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/109121] New: m68k/coldfire: multilib: arithmetic functions missing Date: Tue, 14 Mar 2023 08:25:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: angelo70 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109121 Bug ID: 109121 Summary: m68k/coldfire: multilib: arithmetic functions missing Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: angelo70 at gmail dot com Target Milestone: --- Hi all, i am using the following toolchain, from kernel.org, to build the whole range of coldfire-based boards in u-boot. /opt/toolchains/m68k/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux-gcc -v=20= =20=20=20=20=20=20=20=20 Using built-in specs. COLLECT_GCC=3D/opt/toolchains/m68k/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-li= nux-gcc COLLECT_LTO_WRAPPER=3D/opt/toolchains/m68k/gcc-12.2.0-nolibc/m68k-linux/bin= /../libexec/gcc/m68k-linux/12.2.0/lto-wrapper Target: m68k-linux Configured with: /home/arnd/git/gcc/configure --target=3Dm68k-linux --enable-targets=3Dall --prefix=3D/home/arnd/cross/x86_64/gcc-12.2.0-nolibc/m68k-linux --enable-languages=3Dc --without-headers --disable-bootstrap --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=3Dr= elease Thread model: single Supported LTO compression algorithms: zlib gcc version 12.2.0 (GCC) m68k: + M5253DEMO +m68k-linux-ld.bfd: board/freescale/m5253demo/flash.o: in function `flash_print_info': +board/freescale/m5253demo/flash.c:107: undefined reference to `__fixsfsi' +m68k-linux-ld.bfd: arch/m68k/lib/mulsf3.o: in function `__mulsf3': +arch/m68k/lib/mulsf3.c:5: undefined reference to `__extendsfdf2' +m68k-linux-ld.bfd: arch/m68k/lib/mulsf3.c:5: undefined reference to `__mulXf3__' +make[1]: *** [Makefile:1754: u-boot] Error 1 +make: *** [Makefile:177: sub-make] Error 2 m68k: + M5249EVB +m68k-linux-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/ashldi3.o' is incompatible with m68k:isa-a:emac output +m68k-linux-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/lshrdi3.o' is incompatible with m68k:isa-a:emac output +m68k-linux-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/muldi3.o' is incompatible with m68k:isa-a:emac output +make[1]: *** [Makefile:1754: u-boot] Error 1 +make: *** [Makefile:177: sub-make] Error 2 m68k: + amcore +m68k-linux-ld.bfd: m68k:isa-aplus:emac architecture of input file `arch/m68k/lib/ashldi3.o' is incompatible with m68k:isa-a:mac output +m68k-linux-ld.bfd: m68k:isa-aplus:emac architecture of input file `arch/m68k/lib/lshrdi3.o' is incompatible with m68k:isa-a:mac output +m68k-linux-ld.bfd: m68k:isa-aplus:emac architecture of input file `arch/m68k/lib/muldi3.o' is incompatible with m68k:isa-a:mac output +make[1]: *** [Makefile:1754: u-boot] Error 1 +make: *** [Makefile:177: sub-make] Error 2 Also tested same version built here, enabling multilib: /opt/toolchains/m68k/m68k-kernelspace-elf/bin/m68k-kernelspace-elf-gcc -v= =20=20=20=20=20=20=20 Using built-in specs. COLLECT_GCC=3D/opt/toolchains/m68k/m68k-kernelspace-elf/bin/m68k-kernelspac= e-elf-gcc COLLECT_LTO_WRAPPER=3D/opt/toolchains/m68k/m68k-kernelspace-elf/bin/../libe= xec/gcc/m68k-kernelspace-elf/12.2.0/lto-wrapper Target: m68k-kernelspace-elf Configured with: /home/angelo/dev-kernelspace/crosstool-ng/.build/m68k-kernelspace-elf/src/g= cc/configure --build=3Dx86_64-build_pc-linux-gnu --host=3Dx86_64-build_pc-linux-gnu --target=3Dm68k-kernelspace-elf --prefix=3D/home/angelo/dev-kernelspace/crosstool-ng/x-tools/m68k-kernelspa= ce-elf --exec_prefix=3D/home/angelo/dev-kernelspace/crosstool-ng/x-tools/m68k-kern= elspace-elf --with-local-prefix=3D/home/angelo/dev-kernelspace/crosstool-ng/x-tools/m68= k-kernelspace-elf/m68k-kernelspace-elf --with-headers=3D/home/angelo/dev-kernelspace/crosstool-ng/x-tools/m68k-ker= nelspace-elf/m68k-kernelspace-elf/include --with-newlib --enable-threads=3Dno --disable-shared --with-pkgversion=3D'crosstool-NG 1.25.0.131_ee5a402_dirty' --enable-__cxa_= atexit --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libstdcxx-ver= bose --with-gmp=3D/home/angelo/dev-kernelspace/crosstool-ng/.build/m68k-kernelsp= ace-elf/buildtools --with-mpfr=3D/home/angelo/dev-kernelspace/crosstool-ng/.build/m68k-kernels= pace-elf/buildtools --with-mpc=3D/home/angelo/dev-kernelspace/crosstool-ng/.build/m68k-kernelsp= ace-elf/buildtools --with-isl=3D/home/angelo/dev-kernelspace/crosstool-ng/.build/m68k-kernelsp= ace-elf/buildtools --disable-lto --enable-default-pie --enable-target-optspace --disable-nls --enable-multiarch --with-multilib-list=3D5253,5329,5373 --enable-languages= =3Dc --disable-shared Thread model: single Supported LTO compression algorithms: zlib zstd gcc version 12.2.0 (crosstool-NG 1.25.0.131_ee5a402_dirty) Still getting some mcf54415 +m68k-kernelspace-elf-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/ashldi3.o' is incompatible with m68k:isa-c:emac output +m68k-kernelspace-elf-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/lshrdi3.o' is incompatible with m68k:isa-c:emac output +m68k-kernelspace-elf-ld.bfd: m68k:isa-a:mac architecture of input file `arch/m68k/lib/muldi3.o' is incompatible with m68k:isa-c:emac output +make[1]: *** [Makefile:1754: u-boot] Error 1 and M5253DEMO +m68k-kernelspace-elf-ld.bfd: board/freescale/m5253demo/flash.o: in function `flash_print_info': +board/freescale/m5253demo/flash.c:107: undefined reference to `__fixsfsi' +m68k-kernelspace-elf-ld.bfd: arch/m68k/lib/mulsf3.o: in function `__mulsf3= ': +arch/m68k/lib/mulsf3.c:5: undefined reference to `__extendsfdf2' +m68k-kernelspace-elf-ld.bfd: arch/m68k/lib/mulsf3.c:5: undefined reference= to `__mulXf3__' +make[1]: *** [Makefile:1754: u-boot] Error 1 +make: *** [Makefile:177: sub-make] Error 2 I think in the past, in older gcc versions, likely 5.2, the build was not failing, so seems such arithmetic functions has been removed. Please let me know if i can help on this, or if there is any workaround. Regards, angelo=