#4213 closed defect (needsinfo)
Build of Git snapshot 3bf098b failed to run on Arch Linux: seg fault
Reported by: | Brenton Horne | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: |
Description
On Arch Linux I built the git snapshot as of commit 3bf098b and tried to start 0ad from the command-line and it gave the error:
Cache: 400 (total: 15979) MiB TIMER| InitVfs: 81.3103 ms TIMER| CONFIG_Init: 18.1016 ms connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed ALSA lib pcm_dmix.c:1041:(snd_pcm_dmix_open) unable to open slave AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory ERROR: Sound: AlcInit failed, m_Device=0x0 m_Context=0x0 dev_name=OpenAL Soft err=a005 ERROR: CVFSFile: file audio/sound_group.rng couldn't be opened (vfs_load: -110100) ERROR: CXeromyces: failed adding validator for 'audio/sound_group.rng' ERROR: CSoundManager: failed to load grammar file 'audio/sound_group.rng' ERROR: CVFSFile: file hwdetect/hwdetect.js couldn't be opened (vfs_load: -110100) ERROR: Failed to load hardware detection script TIMER| RunHardwareDetection: 66.7842 ms TIMER| write_sys_info: 28.4725 ms ERROR: CVFSFile: file gui/gui_page.rng couldn't be opened (vfs_load: -110100) ERROR: CXeromyces: failed adding validator for 'gui/gui_page.rng' ERROR: CGUIManager: failed to load GUI page grammar file 'gui/gui_page.rng' ERROR: CVFSFile: file gui/gui.rng couldn't be opened (vfs_load: -110100) ERROR: CXeromyces: failed adding validator for 'gui/gui.rng' ERROR: CGUIManager: failed to load GUI XML grammar file 'gui/gui.rng' ERROR: CVFSFile: file shaders/program.rng couldn't be opened (vfs_load: -110100) ERROR: CXeromyces: failed adding validator for 'shaders/program.rng' ERROR: CShaderManager: failed to load grammar shaders/program.rng TIMER| InitRenderer: 215.039 ms ERROR: Failed to open font file fonts/mono-10.fnt ERROR: Failed to open font file fonts/sans-10.fnt TIMER| ps_console: 382.343 us TIMER| ps_lang_hotkeys: 5.28029 ms ERROR: CCacheLoader failed to find archived or source file for: "gui/page_pregame.xml" ERROR: Failed to open font file fonts/mono-stroke-10.fnt ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/gui_text.xml" ERROR: Failed to load effect 'gui_text' /usr/bin/0ad: line 9: 1370 Segmentation fault "$pyrogenesis" "$@"
The specific details of how I built 0ad was with this PKGBUILD (on Arch Linux PKGBUILDs are used to specify how a package should be the built by makepkg and its metadata):
# $Id$ # Maintainer: Brenton Horne <brentonhorne77@gmail.com> # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com> # Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com> pkgname=0ad-git _pkgname=0ad pkgver=18069 pkgrel=1 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game — built from git source tree. WARNING: the 0ad git repo is 2.7 GB in size!" arch=('i686' 'x86_64') url="http://play0ad.com/" conflicts=('0ad') provides=('0ad') license=('GPL2' 'CCPL') depends=('binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'openal' 'sdl2' 'wxgtk' 'zlib' 'libgl' '0ad-data' 'glu' 'gloox' 'miniupnpc' 'icu' 'nspr') makedepends=('boost' 'cmake' 'mesa' 'zip' 'python2' 'libsm') source=("git+https://github.com/0ad/0ad.git") md5sums=('SKIP') pkgver() { cd ${srcdir}/${_pkgname} git rev-list --count HEAD } prepare() { cd "$srcdir/${_pkgname}" sed -i "s/env python/env python2/g" libraries/source/cxxtest-4.4/bin/cxxtestgen } build() { cd "$srcdir/${_pkgname}/build/workspaces" unset CPPFLAGS # for le spidermonkey ./update-workspaces.sh \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ --datadir=/usr/share/${pkgname}/data cd "$srcdir/${_pkgname}/build/workspaces/gcc" make } package() { install -d "${pkgdir}"/usr/{bin,lib/${_pkgname},share/"${_pkgname}"/data} cd "$srcdir/${_pkgname}" install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin" install -Dm755 binaries/system/*.so "${pkgdir}/usr/lib/${_pkgname}" cp -r binaries/data/l10n/ ${pkgdir}/usr/share/${_pkgname}/data/ install -Dm755 build/resources/${_pkgname}.sh "${pkgdir}/usr/bin/${_pkgname}" install -Dm644 build/resources/${_pkgname}.desktop \ "${pkgdir}/usr/share/applications/${_pkgname}.desktop" install -Dm644 build/resources/${_pkgname}.png \ "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" }
Change History (6)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
6.2.1. Also potentially relevant, I am using the multilib version of GCC (i.e., gcc-multilib).
comment:3 by , 8 years ago
Keywords: | arch-linux removed |
---|
This could be #4053 (which you might run into) but your errors seem completely different.
Are you sure your git checkout is complete? It looks like you are missing a number of game files.
I am not familiar with PKGBUILDs but you should know that our game works with two packages: 0ad
contains the engine that you can compile, and 0ad-data
contains all the art, scripts, etc that the game needs in order to run. I only see references to 0ad
in your script here and the missing files are in 0ad-data
, so that may be the reason.
comment:4 by , 7 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
Last message was 3 month ago, I'm closing it as needinfo, feel free to reopen it if you have more info.
comment:5 by , 7 years ago
Milestone: | Backlog |
---|
comment:6 by , 7 years ago
This doesn't look at all like the GCC6 crashes we had before the Alpha 21 release.
Looks like the alsa audio configuration is broken (since it can't open the default audio device). On top of that, the installation seems broken because it can't open some files (like sound_group.rng)
What version of GCC are you using to compile ?