public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dnewtonrichards at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109698] New: gcc/g++ build/link fails for libhwasan.so
Date: Tue, 02 May 2023 13:00:54 +0000	[thread overview]
Message-ID: <bug-109698-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109698

            Bug ID: 109698
           Summary: gcc/g++ build/link fails for libhwasan.so
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dnewtonrichards at gmail dot com
  Target Milestone: ---

building on 
Debian 10 (Buster)
uname -a:   Linux relativity1 4.19.0-23-amd64 #1 SMP Debian 4.19.269-1
(2022-12-20) x86_64 GNU/Linux
configure: 
--prefix=/usr/local/GCC --disable-nls --disable-multilib 
--enable-languages=c,c+

building with gcc/g++ version 12.2

stage_current: stage3

I make it as far as stage 3 and the build fails while linking
libhwasan.so.0.0.0

libtool: link:  /home/odysseus/Downloads/gcc-13.1.0/objdir/./gcc/xgcc
-shared-libgcc -B/home/odysseus/Downloads/gcc-13.1.0/objdir/./gcc -nostdinc++
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/local/GCC/x86_64-pc-linux-gnu/bin/
-B/usr/local/GCC/x86_64-pc-linux-gnu/lib/ -isystem
/usr/local/GCC/x86_64-pc-linux-gnu/include -isystem
/usr/local/GCC/x86_64-pc-linux-gnu/sys-include     -fPIC -DPIC -shared
-nostdlib /lib/x86_64-linux-gnu/crti.o
/home/odysseus/Downloads/gcc-13.1.0/objdir/./gcc/crtbeginS.o 
.libs/hwasan_allocation_functions.o .libs/hwasan_allocator.o .libs/hwasan.o
.libs/hwasan_dynamic_shadow.o .libs/hwasan_exceptions.o .libs/hwasan_fuchsia.o
.libs/hwasan_globals.o .libs/hwasan_interceptors.o
.libs/hwasan_interceptors_vfork.o .libs/hwasan_linux.o
.libs/hwasan_memintrinsics.o .libs/hwasan_new_delete.o .libs/hwasan_poisoning.o
.libs/hwasan_report.o .libs/hwasan_setjmp_aarch64.o
.libs/hwasan_setjmp_x86_64.o .libs/hwasan_tag_mismatch_aarch64.o
.libs/hwasan_thread.o .libs/hwasan_thread_list.o .libs/hwasan_type_test.o 
-Wl,--whole-archive ../sanitizer_common/.libs/libsanitizer_common.a
../interception/.libs/libinterception.a
../libbacktrace/.libs/libsanitizer_libbacktrace.a -Wl,--no-whole-archive 
-Wl,-rpath
-Wl,/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-Wl,-rpath -Wl,/usr/local/GCC/lib/../lib64
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-ldl -lrt -lpthread ../../libstdc++-v3/src/.libs/libstdc++.so -lm
-L/home/odysseus/Downloads/gcc-13.1.0/objdir/./gcc -L/lib/x86_64-linux-gnu
-L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -lc -lgcc_s
/home/odysseus/Downloads/gcc-13.1.0/objdir/./gcc/crtendS.o
/lib/x86_64-linux-gnu/crtn.o  -mshstk   -Wl,-soname -Wl,libhwasan.so.0 -o
.libs/libhwasan.so.0.0.0
/usr/bin/ld: .libs/hwasan.o: relocation R_X86_64_PC32 against undefined symbol
`__ehdr_start' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:559: libhwasan.la] Error 1
make[4]: Leaving directory
'/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libsanitizer/hwasan'
make[3]: *** [Makefile:532: all-recursive] Error 1
make[3]: Leaving directory
'/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libsanitizer'
make[2]: *** [Makefile:419: all] Error 2
make[2]: Leaving directory
'/home/odysseus/Downloads/gcc-13.1.0/objdir/x86_64-pc-linux-gnu/libsanitizer'
make[1]: *** [Makefile:19101: all-target-libsanitizer] Error 2
make[1]: Leaving directory '/home/odysseus/Downloads/gcc-13.1.0/objdir'
make: *** [Makefile:1082: all] Error 2

             reply	other threads:[~2023-05-02 13:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02 13:00 dnewtonrichards at gmail dot com [this message]
2023-05-02 13:12 ` [Bug sanitizer/109698] " pinskia at gcc dot gnu.org
2023-05-02 13:18 ` jakub at gcc dot gnu.org
2023-05-02 14:40 ` dnewtonrichards at gmail dot com
2023-05-02 14:42 ` dnewtonrichards at gmail dot com
2023-05-12 17:16 ` dnewtonrichards at gmail dot com
2023-08-29  6:37 ` zeratul976 at hotmail dot com
2023-08-29  6:45 ` zeratul976 at hotmail dot com
2023-08-29  6:50 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109698-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).