Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

games-emulation/sdlmame-0.225 - cc1plus: fatal error: ../../../../linux_gcc/obj/x64/Release/emu.h: No such file or directory compilation terminated #256

Open
ernsteiswuerfel opened this issue Oct 28, 2020 · 2 comments

Comments

@ernsteiswuerfel
Copy link

It simply fails to build on my amd64 box, even with MAKEOPTS="-j1":

[...]
x86_64-pc-linux-gnu-g++ -O2 -march=native -pipe -O2 -march=native -pipe  -MMD -MP -MP -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_OPENMP=1 -I"../../../../../src/osd" -I"../../../../../src/emu" -I"../../../../../src/lib/util"  -m64 -pipe -O3 -fno-strict-aliasing -fopenmp -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-return-local-addr -m64 -std=c++14 -Woverloaded-virtual -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 -include ../../../../linux_gcc/obj/x64/Release/emu.h -o "../../../../linux_gcc/obj/x64/Release/src/emu/drivers/empty.o" -c "../../../../../src/emu/drivers/empty.cpp"
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: ../../../../linux_gcc/obj/x64/Release/emu.h: No such file or directory
compilation terminated.
make[2]: *** [precompile.make:338: ../../../../linux_gcc/obj/x64/Release/src/emu/drivers/empty.o] Error 1
make[1]: *** [Makefile:73: precompile] Error 2
make[1]: Leaving directory '/var/tmp/portage/games-emulation/sdlmame-0.225/work/mame-mame0225/build/projects/sdl/mame/gmake-linux'
make: *** [makefile:1364: linux_x64] Error 2
 * ERROR: games-emulation/sdlmame-0.225::jorgicio failed (compile phase):
 *   emake failed

sdlmame-0.225:20201028-205126.log
emerge_info.txt

@jorgicio
Copy link
Owner

jorgicio commented Nov 4, 2020

As I watched your emerge_info, may be the issue related with using the ~arch as you used GCC 10.x to build.

I can't reproduce this issue here since I'm using the 9.3.0 version.

Please, try with that version and tell me what's going on.

@ernsteiswuerfel
Copy link
Author

Looks like the same error with gcc 9.3.0.

sdlmame-0.225:20201115-103137.log
emerge_info.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants