Bug 442297 - Build failure with error "relocation R_X86_64_PC32 against symbol `__gmp_free_func' can not be used when making a shared object; recompile with -fPIC"
Summary: Build failure with error "relocation R_X86_64_PC32 against symbol `__gmp_free...
Status: RESOLVED NOT A BUG
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 08:17 UTC by Kyle Devir
Modified: 2021-09-11 09:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
error.log (4.68 KB, text/x-log)
2021-09-11 08:17 UTC, Kyle Devir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Devir 2021-09-11 08:17:13 UTC
Created attachment 141468 [details]
error.log

SUMMARY

Building via kdesrc-build. Error as follows:

```
[...]
Consolidate compiler generated dependencies of target kget
[ 88%] Built target kget
/run/media/valmar/IronWolfRAID1/Packages/AUR/Tk-Glitch/mostlyportable-gcc/gcc-mostlyportable-current/bin/ld: /run/media/valmar/IronWolfRAID1/Packages/AUR/Tk-Glitch/mostlyportable-gcc/gcc-mostlyportable-current/lib/libgmp.a(lt31-mul.o): warning: relocation against `__gmp_free_func' in read-only section `.text'
/run/media/valmar/IronWolfRAID1/Packages/AUR/Tk-Glitch/mostlyportable-gcc/gcc-mostlyportable-current/bin/ld: /run/media/valmar/IronWolfRAID1/Packages/AUR/Tk-Glitch/mostlyportable-gcc/gcc-mostlyportable-current/lib/libgmp.a(lt4-clear.o): relocation R_X86_64_PC32 against symbol `__gmp_free_func' can not be used when making a shared object; recompile with -fPIC
/run/media/valmar/IronWolfRAID1/Packages/AUR/Tk-Glitch/mostlyportable-gcc/gcc-mostlyportable-current/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [transfer-plugins/bittorrent/CMakeFiles/kget_bittorrent.dir/build.make:498: bin/kget_bittorrent.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:936: transfer-plugins/bittorrent/CMakeFiles/kget_bittorrent.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
```

Error log attached.

Can provide more details as requested.


SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.1-arch1-1-custom (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: Radeon RX 580 Series