bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31908] New: ld-new fails to compile on 32-bit systems (i686)


From: h13958451065 at 163 dot com
Subject: [Bug ld/31908] New: ld-new fails to compile on 32-bit systems (i686)
Date: Wed, 19 Jun 2024 03:20:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31908

            Bug ID: 31908
           Summary: ld-new fails to compile on 32-bit systems (i686)
           Product: binutils
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: h13958451065 at 163 dot com
  Target Milestone: ---

When I compile binutils under i686, my configure is as follows:
```
../configure --target=i686-xxx-linux --quiet --build=i686-xxx-linux
--host=i686-xxx-linux --enable-ld --enable-plugins --enable-64-bit-bfd
--with-bugurl=https://gitee.com/src-openeuler/binutils/issues/
--enable-jansson=yes --enable-gprofng=no --with-system-zlib
--enable-compressed-debug-sections=none --enable-generate-build-notes=no
--enable-relro=yes --enable-deterministic-archives=no
--enable-warn-execstack=yes --enable-default-execstack=no
--enable-warn-rwx-segments=yes --enable-lto --enable-threads=yes
--with-sysroot=/ --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
--enable-gold=default --enable-shared --enable-targets=x86_64-pep
```

But unfortunately it fails when compiling ld-new:
```
make[4]: *** No rule to make target '-L/usr/lib', needed by 'ld-new'.  Stop.
make[4]: *** Waiting for unfinished jobs....
...
make[3]: *** [Makefile:1881: all-recursive] Error 1
make[2]: *** [Makefile:1077: all] Error 2
make[1]: *** [Makefile:8498: all-ld] Error 2
make[1]: *** Waiting for unfinished jobs....
```

I found the reason for the failure is
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;f=ld/Makefile.in;h=9e2bb0cb5e74aed4158f08495534922d7108f928
.
It adds $(JANSSON_LIBS) to ld_new_DEPENDENCIES in the ld/Makefile.in and
ld/Makefile.am, and when I compiled the JANSSON_LIBS = -L/usr/lib -ljansson

I think $(JANSSON_LIBS) should be removed from ld_new_DEPENDENCIES

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]