[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30281] error: multiple definition of `pwrite@GLIBC_2.2' with LTO
From: |
usaonmonday at gmail dot com |
Subject: |
[Bug ld/30281] error: multiple definition of `pwrite@GLIBC_2.2' with LTO and symver attribute |
Date: |
Thu, 30 May 2024 23:33:33 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30281
--- Comment #17 from Andrey Sotnikov <usaonmonday at gmail dot com> ---
(In reply to H.J. Lu from comment #16)
> You were using gold, not ld. Please pass -fuse-ld=bfd to GCC.
I am not sure I understand. I used ld. I verified with strace that there were
no other processes spawned. It just seems that ld was gold.
I mentioned -fuse-ld=bfd in my original post. It helped if I ran just the gcc
command line that linked .libs/libgp-sync.so. However, I am not sure how I
could pass -fuse-ld=bfd using configure/make. Adding -fuse-ld=bfd to CFLAGS and
LDFLAGS passed it to the libtool command line, but then libtool ignored it when
it actually invoked gcc for linking. It's probably a bug in the autotool
scripts.
Anyway, this being sad, my workaround was to rebuild the original binutils I
used to build the final binutils with --enable-gold=no. So, I'm good and don't
need support. I am merely passing on the information about the problem. It's up
to you, guys, what to do with it.
Best.
Andrey.
--
You are receiving this mail because:
You are on the CC list for the bug.