From owner-freebsd-toolchain@freebsd.org Fri Feb 7 15:30:25 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC64A24EE6B for ; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48DfPs6K2cz4gD6 for ; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D6E9424EE6A; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6A7B24EE69 for ; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DfPs5LDYz4gD4 for ; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B1EB36A99 for ; Fri, 7 Feb 2020 15:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 017FUPfB007998 for ; Fri, 7 Feb 2020 15:30:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 017FUPcZ007997 for toolchain@FreeBSD.org; Fri, 7 Feb 2020 15:30:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 243947] Missing ldd32 on CURRENT Date: Fri, 07 Feb 2020 15:30:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: salvadore@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.mimetype attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2020 15:30:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243947 Lorenzo Salvadore changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211448|text/x-csrc |text/plain mime type| | --- Comment #1 from Lorenzo Salvadore --- Created attachment 211448 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211448&action= =3Dedit classic hello world program It seems it is also impossible to compile any 32-bits program. I tried to compile the attached hello world program with clang and with gcc= 9. With clang: $ cc -m32 -v main.c FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) Target: i386-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" -cc1 -triple i386-unknown-freebsd13.0 -emit-obj -mrelax-all -disable-free -main-file-name main.c -mrelocation-model static -mthread-mod= el posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu i686 -dwarf-column-info -debugger-tuning=3Dgdb= -v -resource-dir /usr/lib/clang/9.0.1 -fdebug-compilation-dir /usr/home/lorenzo/Volatile -ferror-limit 19 -fmessage-length 106 -fobjc-runtime=3Dgnustep -fdiagnostics-show-option -fcolor-diagnostics -fad= drsig -o /tmp/main-839382.o -x c main.c clang -cc1 version 9.0.1 based upon LLVM 9.0.1 default target x86_64-unknown-freebsd13.0 #include "..." search starts here: #include <...> search starts here: /usr/lib/clang/9.0.1/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth --enable-new-dtags -m elf_i386_fbsd -o a.out /usr/lib/c= rt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/main-839382.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o ld: error: /usr/lib/crt1.o is incompatible with elf_i386_fbsd ld: error: /usr/lib/crti.o is incompatible with elf_i386_fbsd ld: error: /usr/lib/crtbegin.o is incompatible with elf_i386_fbsd ld: error: /usr/lib/libgcc_s.so is incompatible with elf_i386_fbsd ld: error: /lib/libc.so.7 is incompatible with elf_i386_fbsd ld: error: /usr/lib/libgcc_s.so is incompatible with elf_i386_fbsd ld: error: /usr/lib/crtend.o is incompatible with elf_i386_fbsd ld: error: /usr/lib/crtn.o is incompatible with elf_i386_fbsd cc: error: linker command failed with exit code 1 (use -v to see invocation) With gcc9: $ gcc9 -m32 -v main.c Using built-in specs. COLLECT_GCC=3Dgcc9 COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.= 0/9.2.0/lto-wrapper Target: x86_64-portbld-freebsd13.0 Configured with: /usr/obj/usr/ports/lang/gcc9/work/gcc-9.2.0/configure --disable-multilib --disable-plugin --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=3D/usr/local/lib/gcc9 --libexecdir=3D/usr/local/libexec/gcc9 --program-suffix=3D9 --with-as=3D/usr/local/bin/as --with-gmp=3D/usr/local --with-gxx-include-dir=3D/usr/local/lib/gcc9/include/c++/ --with-ld=3D/usr/local/bin/ld --with-pkgversion=3D'FreeBSD Ports Collection' --with-system-zlib --enable-languages=3Dc,c++,objc,fortran --prefix=3D/usr/= local --localstatedir=3D/var --mandir=3D/usr/local/man --infodir=3D/usr/local/share/info/gcc9 --build=3Dx86_64-portbld-freebsd13.0 Thread model: posix gcc version 9.2.0 (FreeBSD Ports Collection)=20 COLLECT_GCC_OPTIONS=3D'-m32' '-v' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/cc1 -quiet -v -imultilib . main.c -quiet -dumpbase main.c -m32 -mtune=3Dgeneric -march=3D= x86-64 -auxbase main -version -o /tmp//ccuDb1Fq.s GNU C17 (FreeBSD Ports Collection) version 9.2.0 (x86_64-portbld-freebsd13.= 0) compiled by GNU C version FreeBSD Clang 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 ignoring nonexistent directory "/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/include-fixed" ignoring nonexistent directory "/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../../../../x8= 6_64-portbld-freebsd13.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/include /usr/local/include /usr/include End of search list. GNU C17 (FreeBSD Ports Collection) version 9.2.0 (x86_64-portbld-freebsd13.= 0) compiled by GNU C version FreeBSD Clang 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: cf19d6b0f10486489838826952c5e5e6 COLLECT_GCC_OPTIONS=3D'-m32' '-v' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/bin/as -v --32 -o /tmp//ccEzjaPh.o /tmp//ccuDb1Fq.s GNU assembler version 2.33.1 (x86_64-portbld-freebsd13.0) using BFD version (GNU Binutils) 2.33.1 COMPILER_PATH=3D/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.= 0/:/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/:/usr/local= /libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/:/usr/local/lib/gcc9/gcc/x86_6= 4-portbld-freebsd13.0/9.2.0/:/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd= 13.0/:/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../../../= ../x86_64-portbld-freebsd13.0/bin/ LIBRARY_PATH=3D/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/:/u= sr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../../../../x86_6= 4-portbld-freebsd13.0/lib/:/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13= .0/9.2.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS=3D'-m32' '-v' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/collect2 -plu= gin /usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/liblto_plugin.= so -plugin-opt=3D/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/= lto-wrapper -plugin-opt=3D-fresolution=3D/tmp//ccVJsK26.res -plugin-opt=3D-pass-through= =3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s -plugin-opt=3D-pass-through=3D-lc -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s --eh-frame-hdr -m elf_i386_fbsd -V -dynamic-linker /libexec/ld-elf.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/crtbegin.o -L/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0 -L/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../../../../x= 86_64-portbld-freebsd13.0/lib -L/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../.. /tmp//ccEzjaPh.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lg= cc --push-state --as-needed -lgcc_s --pop-state /usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/crtend.o /usr/lib/crtn.o GNU ld (GNU Binutils) 2.33.1 Supported emulations: aix5ppc aix5rs6 aixppc aixrs6 alpha alphavms arcv2elf arcv2elfx arcelf arcelf_prof arclinux arclinux_nps arclinux_prof arm_wince_pe armelf armelf_fbsd armelf_fuchsia armelf_linux armelf_linux_eabi armelf_linux_fdpiceabi armelf_nacl armelf_nbsd armelf_phoenix armelf_vxworks armelfb armelfb_fbsd armelfb_fuchsia armelfb_linux armelfb_linux_eabi armelfb_linux_fdpiceabi armelfb_nacl armelfb_nbsd armnto armpe armsymbian avr1 avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1 avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny crisaout criself crislinux cskyelf cskyelf_linux d10velf d30v_e d30v_o d30velf elf32_dlx elf32_sparc elf32_sparc_sol2 elf32_sparc_vxworks elf32_spu elf32_tic6x_be elf32_tic6x_le elf32_tic6x_linux_be elf32_tic6x_linux_le elf32_tic6x_elf_be elf32_tic6x_elf_le elf32am33lin elf32bfin elf32bfinfd elf32cr16 elf32cr16c elf32crx elf32epiphany elf32epiphany_4x4 elf32fr30 elf32frv elf32frvfd elf32ft32 elf32ip2k elf32iq10 elf32iq2000 elf32lm32 elf32lm32fd elf32lppc elf32lppclinux elf32lppcnto elf32lppcsim elf32m32c elf32mb_linux elf32mbel_linux elf32mcore elf32mep elf32metag elf32microblazeel elf32microblaze elf32moxie moxiebox elf32mt elf32or1k elf32or1k_linux elf32ppc elf32ppc_fbsd elf32ppclinux elf32ppcnto elf32ppcsim elf32ppcvxworks elf32ppcwindiss elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf32rl78 elf32rx elf32tilegx elf32tilegx_be elf32tilepro elf32vax elf32visium elf32xc16x elf32xc16xl elf32xc16xs elf32xstormy16 elf32xtensa elf_i386 elf_i386_be elf_i386_fbsd elf_i386_ldso elf_i386_nacl elf_i386_sol2 elf_i386_vxworks elf_iamcu elf_s390 h8300elf h8300elf_linux h8300helf h8300helf_linux h8300hnelf h8300self h8300self_linux h8300snelf h8300sxelf h8300sxelf_linux h8300sxnelf hppaelf hppalinux hppanbsd hppaobsd i386beos i386bsd i386go32 i386lynx i386moss i386msdos i386nto i386pe i386pe_posix m32relf m32relf_linux m32rlelf m32rlelf_linux m68hc11elf m68hc11elfb m68hc12elf m68hc12elfb m68kelf m68kelfnbsd m9s12zelf mcorepe mn10200 mn10300 msp430elf msp430X nds32elf nds32elf16m nds32elf_linux nds32belf nds32belf16m nds32belf_linux ns32knbsd nios2elf nios2linux pc532macha pdp11 pjelf pjlelf ppclynx ppcmacos ppcpe pruelf score3_elf score7_elf sh shelf shelf_fd shelf_linux shelf_nbsd shelf_nto shelf_uclinux shelf_vxworks shl shlelf shlelf_fd shlelf_linux shlelf_nbsd shlelf_nto shlelf_vxworks shpe tic30aout tic30coff tic3xcoff tic3xcoff_onchip tic4xcoff tic54xcoff tic80coff v850 v850_rh850 vanilla vaxnbsd xgateelf z80 z8001 z8002 aarch64elf aarch64elf32 aarch64elfb aarch64elf32b aarch64cloudabi aarch64cloudabib aarch64fbsd aarch64fbsdb aarch64linux aarch64linuxb aarch64linux32 aarch64linux32b elf32_x86_64 elf32_x86_64_nacl elf32b4300 elf32bmip elf32bmipn32 elf32bsmip elf32btsmip elf32btsmip_fbsd elf32btsmipn32 elf32btsmipn32_fbsd elf32ebmip elf32ebmipvxworks elf32elmip elf32elmipvxworks elf32l4300 elf32lmip elf32lr5900 elf32lr5900n32 elf32lsmip elf32ltsmip elf32ltsmip_fbsd elf32ltsmipn32 elf32ltsmipn32_fbsd elf32mipswindiss elf64_aix elf64bpf elf64_ia64 elf64_ia64_fbsd elf64_ia64_vms elf64_s390 elf64_sparc elf64_sparc_fbsd elf64_sparc_sol2 elf64alpha elf64alpha_fbsd elf64alpha_nbsd elf64bmip elf64btsmip elf64btsmip_fbsd elf64hppa elf64lppc elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf64ltsmip elf64ltsmip_fbsd elf64mmix elf64ppc elf64ppc_fbsd elf64rdos elf64tilegx elf64tilegx_be elf_l1om elf_l1om_fbsd elf_k1om elf_k1om_fbsd elf_x86_64 elf_x86_64_cloudabi elf_x86_64_fbsd elf_x86_64_nacl elf_x86_64_sol2 hppa64linux i386pep mmo/usr/local/bin/ld: skipping incompatible /usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/libgcc.a when searching for -lgcc /usr/local/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching f= or -lgcc /usr/local/bin/ld: cannot find -lgcc /usr/local/bin/ld: skipping incompatible /usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd13.0/9.2.0/../../../libgcc_s.= so when searching for -lgcc_s /usr/local/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/local/bin/ld: cannot find -lgcc_s /usr/local/bin/ld: skipping incompatible /lib/libc.so.7 when searching for /lib/libc.so.7 /usr/local/bin/ld: cannot find /lib/libc.so.7 /usr/local/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a /usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a /usr/local/bin/ld: skipping incompatible /usr/lib/libssp_nonshared.a when searching for /usr/lib/libssp_nonshared.a /usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a collect2: error: ld returned 1 exit status --=20 You are receiving this mail because: You are the assignee for the bug.=