Coder Social home page Coder Social logo

Comments (14)

kivutar avatar kivutar commented on September 15, 2024

When you're getting this kind of errors, it means you-re trying to compile with your own g++, not the cross compiler.

from ppsspp.

orbea avatar orbea commented on September 15, 2024

Yes, its hardcoded to g++, but its hard to fix blindly...

from ppsspp.

kivutar avatar kivutar commented on September 15, 2024

In Lakka, I build it using this https://github.com/libretro/ppsspp/blob/master/libretro/Makefile#L100-L112

Or like this

make platform=armv-gles-neon CC=$CC CXX=$CXX

from ppsspp.

gouchi avatar gouchi commented on September 15, 2024

We should try to remove the hardcoded version and use the correct ones which are present in the default configuration ?

from ppsspp.

orbea avatar orbea commented on September 15, 2024

Thanks for taking a look at this!

from ppsspp.

gouchi avatar gouchi commented on September 15, 2024

No problem, you are welcome.

New log after specifying CC and CXX.

arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/arm/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/arm/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -DHAVE_OPENGL  -DDYNAREC -D_ARCH_32 -ffunction-sections -fdata-sections -c -o../Core/FileLoaders/RamCachingFileLoader.o ../Core/FileLoaders/RamCachingFileLoader.cpp
In file included from ../ffmpeg/libavutil/avutil.h:288:0,
                 from ../ffmpeg/libavutil/samplefmt.h:24,
                 from ../ffmpeg/libavcodec/avcodec.h:31,
                 from ../Core/AVIDump.cpp:18:
../ffmpeg/libavutil/common.h:45:32: fatal error: libavutil/avconfig.h: No such file or directory
compilation terminated.
Makefile:449: recipe for target '../Core/AVIDump.o' failed
make: *** [../Core/AVIDump.o] Error 1
make: *** Waiting for unfinished jobs....

from ppsspp.

orbea avatar orbea commented on September 15, 2024

I suppose there is a problem with the ffmpeg submodule included, its missing or the Makefile is not using it for some reason?

from ppsspp.

gouchi avatar gouchi commented on September 15, 2024

Not sure if it is related to this include flags as it is not present elsewhere.

from ppsspp.

orbea avatar orbea commented on September 15, 2024

@gouchi Mind making an issue for an more current repo?

from ppsspp.

orbea avatar orbea commented on September 15, 2024

Here is a new build log.

BUILD CMD: make -f Makefile platform=unix -j6 platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/snappy/snappy-c.o ../ext/snappy/snappy-c.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/snappy/snappy.o ../ext/snappy/snappy.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/xbrz/xbrz.o ../ext/xbrz/xbrz.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/vjson/json.o ../ext/native/ext/vjson/json.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/vjson/block_allocator.o ../ext/native/ext/vjson/block_allocator.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU  -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew  -DARM -fPIC -DARM  -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/cityhash/city.o ../ext/native/ext/cityhash/city.cpp
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/snappy/snappy-c.o' failed
make: *** [../ext/snappy/snappy-c.o] Error 1
make: *** Waiting for unfinished jobs....
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/snappy/snappy.o' failed
make: *** [../ext/snappy/snappy.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/cityhash/city.o' failed
make: *** [../ext/native/ext/cityhash/city.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/vjson/block_allocator.o' failed
make: *** [../ext/native/ext/vjson/block_allocator.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/xbrz/xbrz.o' failed
make: *** [../ext/xbrz/xbrz.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/vjson/json.o' failed
make: *** [../ext/native/ext/vjson/json.o] Error 1
BUILD CMD /home/buildbot/buildbot/linux_armhf/retrolink.sh ./ppsspp_libretro.so
readelf: Error: './ppsspp_libretro.so': No such file
readelf: Error: './ppsspp_libretro.so': No such file
COPY CMD: cp -v ./ppsspp_libretro.so /home/buildbot/buildbot/linux_armhf/dist/unix//ppsspp_libretro.so
cp: cannot stat './ppsspp_libretro.so': No such file or directory

from ppsspp.

gouchi avatar gouchi commented on September 15, 2024

We should not get

/ffmpeg/linux/x86_64/include

The compilation starts with

make -f Makefile platform=unix -j6 platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ clean

There are two platform variables.

from ppsspp.

orbea avatar orbea commented on September 15, 2024

Looks like that is a buildbot issue, I'll try to figure out where the extra platform=unix is coming from.

from ppsspp.

orbea avatar orbea commented on September 15, 2024

platform=armv7-neon-hardfloat is set in the recipe.

ppsspp libretro-ppsspp https://github.com/libretro/ppsspp.git master YES GENERIC_GL Makefile libretro platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++

https://github.com/libretro/libretro-super/blob/master/recipes/linux/cores-linux-armhf-generic

and platform=unix is in the buildbot script.

eval "set -- ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${CORE_ARGS}"
echo "BUILD CMD: $@" 2>&1 | tee -a "$LOGFILE"
"$@" 2>&1 | tee -a "$LOGFILE"

https://github.com/libretro/libretro-super/blob/master/libretro-buildbot-recipe.sh#L388

from ppsspp.

gouchi avatar gouchi commented on September 15, 2024

New log after this commit.

CPUFLAGS are wrong they are coming from Makefile.common from here because TARGET_ARCH is not arm.

I will be glad to know why there are those lines in the beginning of the Makefile.

from ppsspp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.