Git Product home page Git Product logo

mame_raspberrypi_cross_compile's People

Contributors

danmons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sairuk

mame_raspberrypi_cross_compile's Issues

download_libs.sh not working because of wrong debian-archive-keyring name

In order to fix this script to dowload and extract deb files correctly i had to change this:

wget -c "${DEBMIRROR}/pool/main/d/debian-archive-keyring/debian-archive-keyring_2021.1.1_all.deb"
to:
wget -c "${DEBMIRROR}/pool/main/d/debian-archive-keyring/debian-archive-keyring_2021.1.1+deb11u1_all.deb"

and:
dpkg -x "debian-archive-keyring_2021.1.1_all.deb" ./
to:
dpkg -x "debian-archive-keyring_2021.1.1+deb11u1_all.deb" ./

Logging a few issues i have encountered putting this project into Docker (base debian bullseye)

still trying to get a successful build out of this just wanted to log the issues as i go

setup info

  • Dockerfile pulling debian:latest (bullseye atm)
  • Base env installs prereqs into Docker image via apt
  • a script generate_env.sh takes over and enables deb-src repos, installs mame build-dep and runs both build_crosstool-ng.sh and download_libs.sh and then copies the build_mame_*.sh scripts to /usr/local/bin (image is now built)
  • at runtime the container will then look for a file build-script in a volume which will set MAMECOMPILECORES and call the build_mame_*.sh scripts as defined

issues

  • ccache is required by the build_mame_*.sh scripts but not installed as part of prereqs
  • if the mame build fails an incomplete archive will still be created, add a check for successful return value before building the archive
  • crosstool-ng build runs into this error for binutils but seems to only affect rpi2 stuff
INFO ]  =================================================================
[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Building binutils
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1590:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_LOPROC' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1591:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1592:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1611:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_LOPROC' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1614:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1617:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1590:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_LOPROC' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1591:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1592:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1611:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_LOPROC' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1614:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    /tmp/tmp.F3JC6ZNvTi/setup/build/ctng_rpi2_buster_armhf/.build/armv7-rpi2-linux-gnueabihf/src/binutils/gold/x86_64.cc:1617:5: error: narrowing conversion of 'elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND' from 'unsigned int' to 'int' [-Wnarrowing]
[ERROR]    make[5]: *** [Makefile:1123: x86_64.o] Error 1
[ERROR]    make[5]: *** Waiting for unfinished jobs....
[ERROR]    make[4]: *** [Makefile:1146: all-recursive] Error 1
[ERROR]    make[3]: *** [Makefile:886: all] Error 2
[ERROR]    make[2]: *** [Makefile:6045: all-gold] Error 2
[ERROR]    make[1]: *** [Makefile:850: all] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@376]
[ERROR]  >>        called from: do_binutils_backend[scripts/build/binutils/binutils.sh@212]
[ERROR]  >>        called from: do_binutils_for_host[scripts/build/binutils/binutils.sh@70]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@697]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      https://crosstool-ng.github.io/docs/known-issues/
[ERROR]  >>
[ERROR]  >>  If you feel this is a bug in crosstool-NG, report it at:
[ERROR]  >>      https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR]  >>
[ERROR]  >>  Make sure your report includes all the information pertinent to this issue.
[ERROR]  >>  Read the bug reporting guidelines here:
[ERROR]  >>      http://crosstool-ng.github.io/support/
[ERROR]   
[ERROR]  (elapsed: 4:29.89)
[04:30] / gmake: *** [/tmp/tmp.F3JC6ZNvTi/setup/build/ct-ng/bin/ct-ng:261: build] Error 2
__START__ download of RPi packages for architecture: armhf

[question] RetroPie implementation ? Could not initialize x11 not found.

Specs:
Rpi 4 2gb
Bullseye 32bit
RetroPie-Setup from source
SDL2 2.0.20 (seems that they reverted back to 2.0.10)
currently FKMS

Hey,
first off thanks of for this project it made it really easy to cross compile mame and save a lot of time. After pushing the 7z to my pi I got an error trying to start mame:

Could not initialize x11 not found.

It works fine when I'm in the GUI (startx) but it won't run from the terminal. Is it an SDL2 issue?

Glad for any tip you have :)

crosstool-ng HEAD requires Autoconf 2.71 or later (breaks build on Bullseye)

Running ./build_crosstool-ng.sh on a clean Debian Bullseye system gives:

configure.ac:4: error: Autoconf version 2.71 or higher is required

Modifying build_crosstool-ng.sh to check out the tag crosstool-ng-1.25.0 instead of always git pulling to HEAD allows the crosstool-ng build to continue.

I won't raise a separate bug but I also needed to bump the zlib version to 1.2.13 (in the ./crosstool-ng/ctng_config_rpi* files) to be able to download it from www.zlib.net. The Sourceforge mirror only goes up to 1.2.11.

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.