Project

General

Profile

Actions

Emulator Issues #11485

closed

Build fails on Linux

Added by 5nefarious about 6 years ago. Updated almost 6 years ago.

Status:
Working as intended
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem? Describe what went wrong.

Dolphin fails to build on Linux.

What steps will reproduce the problem?

Clone master branch and create build directory. cd into build and run cmake -DCMAKE_INSTALL_PREFIX=/usr/local ... Run make.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

commit 2dcd058f7d

Is the issue present in the latest stable version?

Unknown.

What are your PC specifications? (CPU, GPU, Operating System, more)

CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
GPU:

  • Intel Haswell-ULT Integrated Graphics Controller
  • AMD Venus XTX [Radeon HD 8890M / R9 M275X/M375X]
    OS: Void Linux (kernel version 4.19.6)

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

Make output:

[  1%] Built target bdisasm
[  2%] Built target cpp-optparse
[  7%] Built target glslang
[  8%] Built target imgui
[  8%] Built target pugixml
[  9%] Built target enet
[ 10%] Built target xxhash
[ 11%] Built target minizip
[ 13%] Built target SoundTouch
[ 14%] Built target discord-rpc
[ 14%] Built target speex
[ 15%] Built target cubeb
[ 17%] Built target audiocommon
[ 24%] Built target common
[ 24%] Built target traversal_server
[ 27%] Built target inputcommon
[ 29%] Built target discio
[ 32%] Built target videovulkan
[ 35%] Built target videosoftware
[ 36%] Built target videonull
[ 38%] Built target videoogl
[ 45%] Built target videocommon
[ 78%] Built target core
[ 79%] Built target uicommon
[ 79%] Linking CXX executable ../../../Binaries/dolphin-emu-nogui
/usr/bin/ld: ../../../Externals/cubeb/CMakeFiles/cubeb.dir/src/cubeb.c.o: relocation R_X86_64_32 against \`.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/cubeb/CMakeFiles/cubeb.dir/src/cubeb_pulse.c.o: relocation R_X86_64_32 against \`.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/cubeb/CMakeFiles/cubeb.dir/src/cubeb_alsa.c.o: relocation R_X86_64_32 against \`.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/enet/CMakeFiles/enet.dir/packet.c.o: relocation R_X86_64_32S against \`.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/enet/CMakeFiles/enet.dir/peer.c.o: relocation R_X86_64_32S against \`.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/enet/CMakeFiles/enet.dir/protocol.c.o: relocation R_X86_64_32S against \`.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ../../../Externals/enet/CMakeFiles/enet.dir/unix.c.o: relocation R_X86_64_32S against \`.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [Source/Core/DolphinNoGUI/CMakeFiles/dolphin-nogui.dir/build.make:137: Binaries/dolphin-emu-nogui] Error 1
make[1]: *** [CMakeFiles/Makefile2:1168: Source/Core/DolphinNoGUI/CMakeFiles/dolphin-nogui.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Actions

Also available in: Atom PDF