Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Feb 2020 15:30:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 243947] Missing ldd32 on CURRENT
Message-ID:  <bug-243947-29464-DgVAxxFLek@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243947-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243947-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243947

Lorenzo Salvadore <salvadore@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #211448|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #1 from Lorenzo Salvadore <salvadore@freebsd.org> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243947-29464-DgVAxxFLek>