mupen64plus-core
mupen64plus-core copied to clipboard
make all - collect2: error: ld returned 1 exit status
Operating system: fedora 35
When building mupen64plus-core-src-2.5.9 I get the following error:
$ make all
Makefile:322: Using SDL 1.2 libraries
LD libmupen64plus.so.2.0.0
/usr/bin/ld: _obj/device/r4300/idec.o (symbol from plugin): in function `r4300_get_idec':
(.text+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/device/r4300/interrupt.o (symbol from plugin): in function `add_random_interrupt_time':
(.text+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/device/r4300/r4300_core.o (symbol from plugin): in function `init_r4300':
(.text+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/main/savestates.o (symbol from plugin): in function `savestates_select_slot':
(.text+0x0): multiple definition of `work'; _obj/api/frontend.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/main/workqueue.o (symbol from plugin): in function `workqueue_init':
(.text+0x0): multiple definition of `work'; _obj/api/frontend.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/device/r4300/recomp.o (symbol from plugin): in function `dynarec_fin_block':
(.text+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: _obj/device/r4300/x86_64/dynarec.o (symbol from plugin): in function `dyna_jump':
(.text+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:788: libmupen64plus.so.2.0.0] Error 1
How can I fix this?
Possible duplicate of https://github.com/mupen64plus/mupen64plus-core/issues/712 Should be fixed in master with https://github.com/mupen64plus/mupen64plus-core/pull/736