mamedev / mame

MAME
https://www.mamedev.org/
Other
8.25k stars 2.02k forks source link

Build fail on aarch64 #5741

Open tanertas opened 5 years ago

tanertas commented 5 years ago

Build doesn't fail on x86, x86_64 but aarch64 using clang.

Alpine Linux Edge musl-libc 1.1.23 clang-9.0.0 boost-1.71

OVERRIDE_CC=clang OVERRIDE_CXX=clang++ TARGETOS=linux NOWERROR=1 DEBUG=0 USE_QTDEBUG=0 VERBOSE=1 REGENIE=1 OSD=sdl SYMBOLS=0 FORCE_DRC_C_BACKEND= PTR64=1 NOASM=1 TOOLS= SDL_INI_PATH=/etc/mame USE_SYSTEM_LIB_EXPAT=1 USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1 USE_SYSTEM_LIB_LUA=1 USE_SYSTEM_LIB_SQLITE3=1 USE_SYSTEM_LIB_PORTAUDIO=1 USE_SYSTEM_LIB_UV=1 USE_SYSTEM_LIB_GLM=1 USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_ASIO=0

Compiling src/mame/drivers/suna16.cpp...
clang++ -I/usr/include/lua5.3 -DBX_CRT_MUSL -Wno-everything -I/usr/include/lua5.3 -DBX_CRT_MUSL -Wno-everything -Os -fomit-frame-pointer -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_D
LL -DPUGIXML_HEADER_ONLY -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I"../../../../../src/osd" -I"../../../../../src/emu" -I"../../../../../src/devices" -I"../../../../.
./src/mame" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/lib/netlist" -I"../../../../../3rdparty" -I"../../../../generated/mame/layout" -I"../../../../../scripts" -
pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-error=deprecated-declarations -Wno-unused-result
-Wno-array-bounds -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-cast-align -x c++ -std=c++14 -Woverloaded-virtual -Wno-class-memaccess -Wsuggest-override -include obj/Relea
se/emu.h -o "obj/Release/src/mame/drivers/suna16.o" -c "../../../../../src/mame/drivers/suna16.cpp"

In file included from ../../../../../src/mame/audio/taito_zm.cpp:32:
In file included from ../../../../../src/mame/audio/taito_zm.h:14:
../../../../../src/devices/cpu/tms57002/tms57002.h:209:10: fatal error: '../../emu/cpu/tms57002/tms57002.hxx' file not found
#include "../../emu/cpu/tms57002/tms57002.hxx"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [taito.make:1359: obj/Release/src/mame/audio/taito_zm.o] Error 1
make[1]: *** [Makefile:325: taito] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/drivers/suna8.cpp...
galibert commented 5 years ago

Compile order issue which randomly happens with -j, unfixable as long as we're using genie, It's strange that that compile managed to use the worst order possible, bad luck.

OG.

On Tue, Oct 15, 2019 at 2:10 AM tanertas notifications@github.com wrote:

Build doesn't fail on x86, x86_64 but aarch64 using clang.

Alpine Linux Edge musl-libc 1.1.23 clang-9.0.0 boost-1.71 asio-1.14

OVERRIDE_CC=clang OVERRIDE_CXX=clang++ TARGETOS=linux NOWERROR=1 DEBUG=0 USE_QTDEBUG=0 VERBOSE=1 REGENIE=1 OSD=sdl SYMBOLS=0 FORCE_DRC_C_BACKEND= PTR64=1 NOASM=1 TOOLS= SDL_INI_PATH=/etc/mame USE_SYSTEM_LIB_EXPAT=1 USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1 USE_SYSTEM_LIB_LUA=1 USE_SYSTEM_LIB_SQLITE3=1 USE_SYSTEM_LIB_PORTAUDIO=1 USE_SYSTEM_LIB_UV=1 USE_SYSTEM_LIB_GLM=1 USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_ASIO=0

Compiling src/mame/drivers/suna16.cpp... clang++ -I/usr/include/lua5.3 -DBX_CRT_MUSL -Wno-everything -I/usr/include/lua5.3 -DBX_CRT_MUSL -Wno-everything -Os -fomit-frame-pointer -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_D LL -DPUGIXML_HEADER_ONLY -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I"../../../../../src/osd" -I"../../../../../src/emu" -I"../../../../../src/devices" -I"../../../../. ./src/mame" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/lib/netlist" -I"../../../../../3rdparty" -I"../../../../generated/mame/layout" -I"../../../../../scripts" - pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-cast-align -x c++ -std=c++14 -Woverloaded-virtual -Wno-class-memaccess -Wsuggest-override -include obj/Relea se/emu.h -o "obj/Release/src/mame/drivers/suna16.o" -c "../../../../../src/mame/drivers/suna16.cpp"

In file included from ../../../../../src/mame/audio/taito_zm.cpp:32: In file included from ../../../../../src/mame/audio/taito_zm.h:14: ../../../../../src/devices/cpu/tms57002/tms57002.h:209:10: fatal error: '../../emu/cpu/tms57002/tms57002.hxx' file not found

include "../../emu/cpu/tms57002/tms57002.hxx"

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated. make[2]: [taito.make:1359: obj/Release/src/mame/audio/taito_zm.o] Error 1 make[1]: [Makefile:325: taito] Error 2 make[1]: *** Waiting for unfinished jobs.... Compiling src/mame/drivers/suna8.cpp...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mamedev/mame/issues/5741?email_source=notifications&email_token=ACGSF4K7DJHEEQOCMYN7Z33QOUC6NA5CNFSM4JAVNT2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRXFNQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGSF4M25FTILJ7TQE3PHT3QOUC6NANCNFSM4JAVNT2A .

cuavas commented 5 years ago

Are you sure you can't add an explicit dependency?

cuavas commented 5 years ago

Oh I see, it's a knock-on dependency, and because GENie can't do header scanning itself, it can't deal with it.

galibert commented 5 years ago

Yeah, genie, the compile system that I love so much.

On Tue, Oct 15, 2019 at 12:45 PM Vas Crabb notifications@github.com wrote:

Oh I see, it's a knock-on dependency, and because GENie can't do header scanning itself, it can't deal with it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mamedev/mame/issues/5741?email_source=notifications&email_token=ACGSF4IFBDICAFW57DF7TMLQOWNMVA5CNFSM4JAVNT2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBIJP5Q#issuecomment-542152694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGSF4JPWMPCAH5J2NGZJF3QOWNMVANCNFSM4JAVNT2A .

ChrisNonyminus commented 2 years ago

I'm having this issue with Visual Studio. The hxx file won't be generated and setting the amount of build threads to 1 does not fix this. EDIT: force building the "optional" project alone fixes this.