bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, wh


From: shorne at sourceware dot org
Subject: [Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, when linking libQtGui.so.4.8.7
Date: Tue, 23 Mar 2021 01:19:26 +0000

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

--- Comment #15 from Stafford Horne <shorne at sourceware dot org> ---
(In reply to Stafford Horne from comment #13)
> /home/shorne/work/gnu-toolchain/local/lib/gcc/or1k-smh-linux-gnu/11.0.0/../..
> /../../or1k-smh-linux-gnu/bin/ld:
> CMakeFiles/geos.dir/src/index/strtree/STRtree.cpp.o: non-pic relocation
> against symbol _ZNSt8ios_base4InitD1Ev@@GLIBCXX_3.4
> /home/shorne/work/gnu-toolchain/local/lib/gcc/or1k-smh-linux-gnu/11.0.0/../..
> /../../or1k-smh-linux-gnu/bin/ld:
> CMakeFiles/geos.dir/src/index/strtree/STRtree.cpp.o: non-pic relocation
> against symbol _ZNSt8ios_base4InitD1Ev@@GLIBCXX_3.4
> /home/shorne/work/gnu-toolchain/local/lib/gcc/or1k-smh-linux-gnu/11.0.0/../..
> /../../or1k-smh-linux-gnu/bin/ld:
> CMakeFiles/geos.dir/src/index/strtree/STRtree.cpp.o: pc-relative relocation
> against dynamic symbol __cxa_atexit@@GLIBC_2.33
> /home/shorne/work/gnu-toolchain/local/lib/gcc/or1k-smh-linux-gnu/11.0.0/../..
> /../../or1k-smh-linux-gnu/bin/ld: final link failed: bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/geos.dir/build.make:5370: lib/libgeos.so.3.10.0dev]
> Error 1
> make[1]: *** [CMakeFiles/Makefile2:1173: CMakeFiles/geos.dir/all] Error 2
> 
> 
> 
> readelf -r CMakeFiles/geos.dir/src/index/strtree/STRtree.cpp.o | grep
> __dso_handle
> 000059a4  0006aa23 R_OR1K_AHI16      00000000   __dso_handle + 0
> 000059a8  0006aa04 R_OR1K_LO_16_IN_I 00000000   __dso_handle + 0
> 
> 
>  readelf -r CMakeFiles/geos.dir/src/index/strtree/STRtree.cpp.o | grep
> __cxa_atexit
> 000059bc  0006ac06 R_OR1K_INSN_REL_2 00000000   __cxa_atexit + 0

OK, these errors are bogus.  They looked strange to me, the issue here was that
I changed CXX_FLAGS mid build and it caused the new files to be created without
-fPIC, so the final link created all these crazy issues.

Rebuilding now with the correct CXX_FLAGS throughout and I see, everything
builds fine.  What error are you seeing?  Am I using the right libgeos?

< shorne@lianli ~/work/gnu-toolchain/geos > git remote -v
origin  https://git.osgeo.org/gitea/geos/geos.git (fetch)
origin  https://git.osgeo.org/gitea/geos/geos.git (push)

< shorne@lianli ~/work/gnu-toolchain/build-geos > make 
[  0%] Built target ryu
[ 57%] Built target geos
[ 58%] Built target geos_c
[ 92%] Built target test_geos_unit
[ 93%] Built target tinyxml2
[ 93%] Built target test_xmltester
[ 94%] Built target test_simplewkttester
[ 95%] Built target test_big_sweep_line_speed
[ 95%] Built target perf_class_sizes
[ 95%] Built target perf_unary
[ 95%] Built target perf_intersection
[ 95%] Built target perf_geospreparedcontains
[ 96%] Built target perf_memleak_mp_prep
[ 97%] Built target perf_unaryunion_segments
[ 97%] Built target perf_voronoi
[ 98%] Built target perf_interiorpoint_area
[ 98%] Built target perf_iterated_buffer
[ 98%] Built target perf_rectangle_intersects
[ 99%] Built target geosop
[100%] Built target astyle

-- 
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]