Opened 20 months ago
Closed 20 months ago
#14290 closed defect (fixed)
HPL1: Compilation error on Arch Linux
Reported by: | Paolo86cripple | Owned by: | lephilousophe |
---|---|---|---|
Priority: | normal | Component: | Engine: HPL1 |
Version: | Keywords: | ||
Cc: | Game: |
Description
Can't compile scummvm on Arch using latest code due to hpl1 MetaEngineDetection.
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x0): multiple definition of `Hpl1MetaEngineDetection::debugFlagList'; engines/hpl1/detection.o:(.data.rel.ro.local+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()':
detection.cpp:(.text+0x0): multiple definition of `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()'; engines/hpl1/detection.o:detection.cpp:(.text+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x6a0): multiple definition of `Hpl1::GAME_NAMES'; engines/hpl1/detection.o:(.data.rel.ro.local+0x6a0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x100): multiple definition of `Hpl1::GAME_DESCRIPTIONS'; engines/hpl1/detection.o:(.data.rel.ro.local+0x100): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()':
detection.cpp:(.text+0x0): multiple definition of `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()'; engines/hpl1/detection.o:detection.cpp:(.text+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `g_HPL1_DETECTION_getObject()':
detection.cpp:(.text+0x30): multiple definition of `g_HPL1_DETECTION_getObject()'; engines/hpl1/detection.o:detection.cpp:(.text+0x30): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.bss+0x0): multiple definition of `g_HPL1_DETECTION_type'; engines/hpl1/detection.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: * [Makefile.common:133: scummvm] Error 1
Attachments (4)
Change History (11)
comment:1 by , 20 months ago
Priority: | blocker → normal |
---|
comment:2 by , 20 months ago
Component: | Common → Engine: HPL1 |
---|---|
Summary: | Compilation error on Arch Linux → HPL1: Compilation error on Arch Linux |
comment:3 by , 20 months ago
comment:4 by , 20 months ago
https://wiki.scummvm.org/index.php?title=Compiling_ScummVM/GCC may also be of help here.
comment:5 by , 20 months ago
Owner: | set to |
---|---|
Resolution: | → pending |
Status: | new → pending |
by , 20 months ago
by , 20 months ago
by , 20 months ago
by , 20 months ago
Attachment: | config.log added |
---|
comment:6 by , 20 months ago
Didn't work, I always clean anytime I make a new build btw. Attached requested files
comment:7 by , 20 months ago
Owner: | changed from | to
---|---|
Resolution: | pending → fixed |
Status: | pending → closed |
Fixed in 17d1ea9cc93e4bd434cdaa37110405e8397af8bc and c4f24b2f7e078318701ea193165741e1f223e22e (master and 2.7 branch)
@Paolo86cripple: Please ensure that you have the latest ScummVM git master and you do a "./configure --enable-all-engines && make clean && make".
If this still fails, then please attach your Makefile, config.log, config.mk and config.h files which are generated by ./configure to this bug. They are text files and will some idea why this might be happening.