LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2004, 04:14 PM   #1
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Rep: Reputation: 30
Segmentation Fault when compiling ZSNES


I am trying to complile ZNES. I got a segmentation fault when I ran make, so I ran make -d. Below is the info I got right before my error. Could someone help me out?
Thanks
Andy


Code:
 Considering target file `cpu/addrni.o'.
     File `cpu/addrni.o' does not exist.
     Looking for an implicit rule for `cpu/addrni.o'.
     Trying pattern rule with stem `addrni'.
     Trying implicit prerequisite `cpu/addrni.c'.
     Trying pattern rule with stem `addrni'.
     Trying implicit prerequisite `cpu/addrni.asm'.
     Found an implicit rule for `cpu/addrni.o'.
      Considering target file `cpu/addrni.asm'.
       Looking for an implicit rule for `cpu/addrni.asm'.
       Trying pattern rule with stem `addrni.asm'.
       Trying implicit prerequisite `cpu/addrni.asm,v'.
       Trying pattern rule with stem `addrni.asm'.
       Trying implicit prerequisite `cpu/RCS/addrni.asm,v'.
       Trying pattern rule with stem `addrni.asm'.
       Trying implicit prerequisite `cpu/RCS/addrni.asm'.
       Trying pattern rule with stem `addrni.asm'.
       Trying implicit prerequisite `cpu/s.addrni.asm'.
       Trying pattern rule with stem `addrni.asm'.
       Trying implicit prerequisite `cpu/SCCS/s.addrni.asm'.
       No implicit rule found for `cpu/addrni.asm'.
       Finished prerequisites of target file `cpu/addrni.asm'.
      No need to remake target `cpu/addrni.asm'.
     Finished prerequisites of target file `cpu/addrni.o'.
    Must remake target `cpu/addrni.o'.
/usr/bin/nasm  -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -o cpu/addrni.o cpu/addrni.asm
Putting child 0x0807b1e0 (cpu/addrni.o) PID 2086 on the chain.
Live child 0x0807b1e0 (cpu/addrni.o) PID 2086
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x0807b1e0 PID 2086
make: *** [cpu/addrni.o] Segmentation fault
make: *** Deleting file `cpu/addrni.o'
Removing child 0x0807b1e0 PID 2086 from chain.
 
Old 05-16-2004, 03:40 PM   #2
Cynar
LQ Newbie
 
Registered: May 2004
Distribution: Slackware-current
Posts: 21

Rep: Reputation: 15
I got the same error today , anyone have any ideas? :| thanks
 
Old 05-16-2004, 04:19 PM   #3
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Have you tried getting a different version of the package? That may solve the problem.
 
Old 05-16-2004, 04:24 PM   #4
Cynar
LQ Newbie
 
Registered: May 2004
Distribution: Slackware-current
Posts: 21

Rep: Reputation: 15
yeah, just used swaret and got the i686 version from linuxpackages. Worked like a charm. Thanks ;x
 
Old 05-16-2004, 09:18 PM   #5
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
That's good to hear. I've noticed that a lot packages are fubared, whether they be rpms, debs and sometimes even source. So when things don't work on the compile, I usually try a different package first. I really don't know why the packages are messed up in the first place though.
 
Old 06-24-2004, 06:09 PM   #6
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
wasn't the question about compiling zsnes?

I am trying to compile the wip version and am getting the same error I have also tried compiling the original version and I get the same error every time
some ACTUAL help would be appreaciated
 
Old 06-24-2004, 06:16 PM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally posted by DaWallace
wasn't the question about compiling zsnes?

I am trying to compile the wip version and am getting the same error I have also tried compiling the original version and I get the same error every time
some ACTUAL help would be appreaciated
DaWallace, try to be more polite. This forum is a previlege to use and some ACTUAL help were made, with alternatives. Some programs simply won't compile, that's the true. It could be for several reasons, like version of dependencies or location of dependencies. Heck, it could even be a little bug on the source-code... In fact, zsnes is a hard program to compile, even the author says that and also clarifies that it will be like that for a while. (Read the README).

So, since you did not create the thread, when jumping into one when somebody is trying to help others, at least be polite, or post a new thread...
 
Old 06-25-2004, 12:45 PM   #8
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Well, I'm sorry I didn't answer your question directly but apparently getting a packaged version helped cynar so maybe you should try getting the package from swaret (you're using slackware, correct?). Segfaults tend to be hard to solve, and I myself have never attempted to compile this particular package. However, there is some kind of file not found error near the top, so maybe you don't have all the files you need to compile the program. Also, there may be processor incompatibilites with some of the assembly code.
 
Old 06-26-2004, 12:24 AM   #9
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
sorry... just somewhat annoyed....
and hearing someone say "get the binary package" is even more annoying

but unfortunately that my be the only way to go.....
but I did get it to compile a few months ago...
this whole thing doesn't make a lot of sense...
 
Old 06-26-2004, 12:45 AM   #10
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
I've worked into tha wee hours of the morning and I solved the problem...
but it still doesn't make any sense...

for some reason "make" didn't work out well, but typing "gmake" did and it compiled without a hitch.
this strikes me as kind of odd so if anybody could provide me with any insight as to why this would be
it would be much appreaciated

Last edited by DaWallace; 06-26-2004 at 12:47 AM.
 
Old 07-08-2004, 03:03 PM   #11
ultrabomberman
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
gmake doesn't work any better for me than make does.

I got the CVS version and I still get the same error:

Code:
nasm  -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/addrni.o cpu/addrni.asm
gmake: *** [cpu/addrni.o] Segmentation fault
gmake: *** Deleting file `cpu/addrni.o'
Has anyone else successfully compiled ZSNES 1.36 for Linux?

Also, I tried swaret and it couldn't find anything for zsnes. LinuxPackages has nothing either, only SNES9X.

Your help is appreciated!
 
Old 07-09-2004, 06:00 PM   #12
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Can you point me in the direction of the package and I'm going to try to compile it and see what happens. Maybe after I get some experience with I can help. However, I'll be compiling the program on a Mandrake box, so there may be some differences there.

Anyway, I'll give it a shot.
 
Old 07-11-2004, 09:41 PM   #13
norskkriger
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by ultrabomberman
gmake doesn't work any better for me than make does.

I got the CVS version and I still get the same error:

Code:
nasm  -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/addrni.o cpu/addrni.asm
gmake: *** [cpu/addrni.o] Segmentation fault
gmake: *** Deleting file `cpu/addrni.o'
Has anyone else successfully compiled ZSNES 1.36 for Linux?

Also, I tried swaret and it couldn't find anything for zsnes. LinuxPackages has nothing either, only SNES9X.

Your help is appreciated!

did we abandon this subject or what? i still need help compiling zsnes too
 
Old 07-12-2004, 12:02 PM   #14
ultrabomberman
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
Quote:
Originally posted by Inexactitude
Can you point me in the direction of the package and I'm going to try to compile it and see what happens. Maybe after I get some experience with I can help. However, I'll be compiling the program on a Mandrake box, so there may be some differences there.

Anyway, I'll give it a shot.
I used this version:
http://prdownloads.sourceforge.net/z...s136src.tar.gz

The ZSNES site is www.zsnes.com

Good luck! Thanks for trying.
 
Old 07-12-2004, 01:59 PM   #15
norskkriger
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by ultrabomberman
I used this version:
http://prdownloads.sourceforge.net/z...s136src.tar.gz

The ZSNES site is www.zsnes.com

Good luck! Thanks for trying.

Okay thats the file im using "zsnes136src.tar.gz", I can get past "./configure" :


creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -pipe -I. -Wall -L/usr/local/lib) works... yes
checking whether the C compiler (gcc -pipe -I. -Wall -L/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for nasm... /usr/bin/nasm
checking for a BSD compatible install... /usr/bin/ginstall -c
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib... yes
checking for OpenGL support... yes
checking for libPNG support... yes
checking if you want gdb friendly executable... no
checking which processor class to optimize for... PPro/P2
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

You may now run make to compile zsnes
Make sure you use GNU make when compiling.


But once i start "gmake" it fails :


/usr/bin/nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -o cpu/addrni.o cpu/addrni.asm
gmake: *** [cpu/addrni.o] Segmentation fault
gmake: *** Deleting file `cpu/addrni.o'


Any ideas anyone?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault when compiling kernel Baix Slackware 27 06-16-2011 11:22 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
GCC Compiling (Linux), "Segmentation Fault" Kenji Miyamoto Programming 2 01-13-2005 01:44 AM
compiling in gcc goes well, gives segmentation fault jshine Programming 6 12-19-2004 01:08 AM
Slackwaer 9.1 GCC Compiling Segmentation Fault kdepa Slackware 2 03-15-2004 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration