You are not logged in.

#1 2007-03-28 13:14:44

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Zsnes failed to build [solved]

when I install from pacman i get "ilegal instruction" when i start zsnes.

When i try to build it from abs i get:

./parsegen  -D__UNIXSDL__ -D__OPENGL__ -gcc gcc -compile -flags "-march=i686 -O2 -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=pentium4 -O3 -fomit-frame-pointer -s -O1" -cheader cfg.h -fname cfg cfg.o cfg.psr
parsegen: gcc -march=i686 -O2 -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=pentium4 -O3 -fomit-frame-pointer -s -O1 -o cfg.o -c cfg.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o endmem.o endmem.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o init.o init.asm
make: *** No rule to make target `GL/gl.h', needed by `initc.o'.  Stop.
==> ERROR: Build Failed.  Aborting...

Any tips?

Last edited by High|ander (2007-03-28 16:59:21)


When death smiles at you, all you can do is smile back!
Blog

Offline

#2 2007-03-28 16:47:59

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: Zsnes failed to build [solved]

I changed the build() function inside the PKGBUILD like this:

build() {
        cd $startdir/src/zsnes_1_51/src
        sed -i 's|-O99999999|-O1|' ./configure
        CFLAGS= ./configure --prefix=/usr x_libraries=/usr/lib --enable-release
        make || return 1
        make DESTDIR=${startdir}/pkg install
}

The compilation seems to hang forever at one point if I don't include the sed command. (-O99999999, now that's -fomg-optimization smile).

Offline

#3 2007-03-28 16:58:50

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Re: Zsnes failed to build [solved]

Working perfect now!!! Thanks!


When death smiles at you, all you can do is smile back!
Blog

Offline

Board footer

Powered by FluxBB