Failed to execute the make command on Fedora
CPlayxs opened this issue · 15 comments
I was trying to install MoltenGamepad on Fedora 38, I cloned the repo with git clone https://github.com/jgeumlek/MoltenGamepad.git
but when I ran the make
command inside the MoltenGamepad folder, it sent me this error:
compiling source/core/commandline.cpp...
make: g++: No such file or directory
make: *** [Makefile:60: source/core/commandline.o] Error 127
I tried to run the make eventlists, but it said make: Nothing to be done for 'eventlists'.
Does anyone know what to do?
make: g++: No such file or directory
Looks like you don't have GCC installed.
Looks like you don't have GCC installed.
it was that, i ran sudo dnf install clang
and now i can run the make command, altough it throws a new error, the same as shown in #97, altough if i add #include <memory>
, it doesnt fix it, the new errors are this (i upload it on pastebin because its too large)
(i closed it by accident)
Try GCC instead of Clang to see if it behaves differently.
When i ran sudo dnf install gcc
it said that its already installed, thats why i installed clang
Maybe try sudo dnf install g++
or sudo dnf install gpp
g++ was aleady installed, I tried it, with and without clang installed, same issue as #97
Post the output of readlink -f $(which cc)
and readlink -f $(which c++)
and make -p -f /dev/null | grep CC
and make -p -f /dev/null | grep CXX
From readlink -f $(which cc)
:
/usr/bin/gcc
From readlink -f $(which c++)
:
/usr/bin/c++
From make -p -f /dev/null | grep CC
:
> make: *** No targets. Stop.
> LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
> LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
> LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
> COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> YACC.m = $(YACC) $(YFLAGS)
> LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> CPP = $(CC) -E
> COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
> YACC = yacc
> YACC.y = $(YACC) $(YFLAGS)
> CC = cc
> # SCCS: could not be stat'd.
> # /dev/SCCS: could not be stat'd.
> $(YACC.y) $<
> $(YACC.y) $<
> $(YACC.m) $<
> $(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<
> %:: SCCS/s.%
> $(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<
> $(YACC.y) $<
> $(YACC.y) $<
> $(YACC.m) $<
And from make -p -f /dev/null | grep CXX
:
make: *** No targets. Stop.
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
CXX = g++
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
thats it
Run make clean
then make
again
still the same error
What version of GCC are you using?
gcc --version
g++ --version
GCC:
gcc (GCC) 13.1.1 20230614 (Red Hat 13.1.1-4)
G++:
g++ (GCC) 13.1.1 20230614 (Red Hat 13.1.1-4)
Completely delete the downloaded MoltenGamepad repo and re-download it and re-compile. If it works, great, if not, it's probably a bug in GCC/G++ 13.x
versions. I have g++ (Ubuntu 12.2.0-17ubuntu1) 12.2.0
and it compiles just fine.
I tried reinstalling, its a bug from GCC then, thanks for your help anyways