public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "shorne at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/99783] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, building libgeos
Date: Thu, 30 Dec 2021 21:59:57 +0000	[thread overview]
Message-ID: <bug-99783-4-SXTrx26cYC@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99783-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from shorne at gmail dot com ---
Ok, let me have a look.

On Fri, Dec 31, 2021, 5:34 AM giulio.benetti at benettiengineering dot com <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99783
>
> --- Comment #5 from Giulio Benetti <giulio.benetti at benettiengineering
> dot com> ---
> Dear Stafford,
>
> here we go again, after updating libgeos to version 3.10.1 the same bug
> shows
> up. This happens with libgeos but not with protobuf that is fixed. I'm sure
> i pass -mcmodel=large.
> Can you help me and fix it?
>
> Here are the instructions to reproduce the bug:
> ```
> 1) # git clone git://git.busybox.net/buildroot
> 2) # cd buildroot
> 3) copy the content of https://pastebin.com/tgDVcv6v into
> buildroot/or1k_libgeos_defconfig
> 4) # make libgeos
> ```
>
> That way it builds the entire toolchain and it fails on building libgeos
> with:
> ```
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/crtbeginS.o:
> in function `deregister_tm_clones':
> crtstuff.c:(.text+0x44): relocation truncated to fit: R_OR1K_GOT16 against
> undefined symbol `_ITM_deregisterTMCloneTable'
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/crtbeginS.o:
> in function `register_tm_clones':
> crtstuff.c:(.text+0xcc): relocation truncated to fit: R_OR1K_GOT16 against
> undefined symbol `_ITM_registerTMCloneTable'
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/crtbeginS.o:
> in function `__do_global_dtors_aux':
> crtstuff.c:(.text+0x12c): relocation truncated to fit: R_OR1K_GOT16 against
> symbol `__cxa_finalize' defined in .text section in
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/or1k-buildroot-linux-uclibc/sysroot/lib/libc.so.1
> crtstuff.c:(.text+0x15c): relocation truncated to fit: R_OR1K_GOT16 against
> symbol `__deregister_frame_info@@GLIBC_2.0' defined in .text section in
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/crtbeginS.o:
> in function `frame_dummy':
> crtstuff.c:(.text+0x1c4): relocation truncated to fit: R_OR1K_GOT16 against
> symbol `__register_frame_info@@GLIBC_2.0' defined in .text section in
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/host/lib/gcc/or1k-buildroot-linux-uclibc/11.2.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
> CMakeFiles/geos.dir/src/algorithm/BoundaryNodeRule.cpp.o: in function
> `geos::algorithm::BoundaryNodeRule::~BoundaryNodeRule()':
>
> BoundaryNodeRule.cpp:(.text._ZN4geos9algorithm16BoundaryNodeRuleD2Ev[_ZN4geos9algorithm16BoundaryNodeRuleD5Ev]+0x2c):
> relocation truncated to fit: R_OR1K_GOT16 against symbol `vtable for
> geos::algorithm::BoundaryNodeRule' defined in
>
> .data.rel.ro._ZTVN4geos9algorithm16BoundaryNodeRuleE[_ZTVN4geos9algorithm16BoundaryNodeRuleE]
> section in CMakeFiles/geos.dir/src/algorithm/BoundaryNodeRule.cpp.o
> CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o: in function
> `geos::algorithm::CGAlgorithmsDD::orientationIndex(double, double, double,
> double, double, double)':
> CGAlgorithmsDD.cpp:(.text+0x310): relocation truncated to fit: R_OR1K_GOT16
> against symbol
> `geos::util::IllegalArgumentException::~IllegalArgumentException()'
> defined in
>
> .text._ZN4geos4util24IllegalArgumentExceptionD2Ev[_ZN4geos4util24IllegalArgumentExceptionD5Ev]
> section in CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o
> CGAlgorithmsDD.cpp:(.text+0x320): relocation truncated to fit: R_OR1K_GOT16
> against symbol `typeinfo for geos::util::IllegalArgumentException' defined
> in
>
> .data.rel.ro._ZTIN4geos4util24IllegalArgumentExceptionE[_ZTIN4geos4util24IllegalArgumentExceptionE]
> section in CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o
> CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o: in function
> `geos::algorithm::CGAlgorithmsDD::signOfDet2x2(double, double, double,
> double)':
> CGAlgorithmsDD.cpp:(.text+0xb1c): relocation truncated to fit: R_OR1K_GOT16
> against symbol
> `geos::util::IllegalArgumentException::~IllegalArgumentException()'
> defined in
>
> .text._ZN4geos4util24IllegalArgumentExceptionD2Ev[_ZN4geos4util24IllegalArgumentExceptionD5Ev]
> section in CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o
> CGAlgorithmsDD.cpp:(.text+0xb2c): relocation truncated to fit: R_OR1K_GOT16
> against symbol `typeinfo for geos::util::IllegalArgumentException' defined
> in
>
> .data.rel.ro._ZTIN4geos4util24IllegalArgumentExceptionE[_ZTIN4geos4util24IllegalArgumentExceptionE]
> section in CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o
> CMakeFiles/geos.dir/src/algorithm/CGAlgorithmsDD.cpp.o: in function
> `geos::util::GEOSException::GEOSException(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&,
> std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >
> const&)':
>
> CGAlgorithmsDD.cpp:(.text._ZN4geos4util13GEOSExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_[_ZN4geos4util13GEOSExceptionC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_]+0xc8):
> additional relocation overflows omitted from the output
> collect2: error: ld returned 1 exit status
> make[4]: *** [CMakeFiles/geos.dir/build.make:5639: lib/libgeos.so.3.10.1]
> Error
> 1
> make[3]: *** [CMakeFiles/Makefile2:381: CMakeFiles/geos.dir/all] Error 2
> make[2]: *** [Makefile:155: all] Error 2
> make[1]: *** [package/pkg-generic.mk:295:
>
> /home/giuliobenetti/git/upstream/output-or1k-br-stable/build/libgeos-3.10.1/.stamp_built]
> Error 2
> make: *** [Makefile:23: _all] Error 2
> ```
>
> Thanks a lot!
>
> --
> You are receiving this mail because:
> You reported the bug.
> You are the assignee for the bug.
> You are on the CC list for the bug.

  parent reply	other threads:[~2021-12-30 21:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26  6:52 [Bug target/99783] New: " shorne at gcc dot gnu.org
2021-03-26  6:53 ` [Bug target/99783] " shorne at gcc dot gnu.org
2021-08-14 21:03 ` giulio.benetti at benettiengineering dot com
2021-08-14 22:23 ` cvs-commit at gcc dot gnu.org
2021-08-14 22:23 ` cvs-commit at gcc dot gnu.org
2021-12-30 20:34 ` giulio.benetti at benettiengineering dot com
2021-12-30 21:59 ` shorne at gmail dot com [this message]
2021-12-31  0:14 ` shorne at gmail dot com
2021-12-31 11:26 ` giulio.benetti at benettiengineering dot com
2022-01-01  7:23 ` shorne at gmail dot com
2022-01-02  0:04 ` shorne 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-99783-4-SXTrx26cYC@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).