Welcome! Log In Create A New Profile

Advanced

dpf-ax segmentation fault during cross compilation on dockstar

Posted by Dieter 
dpf-ax segmentation fault during cross compilation on dockstar
January 04, 2013 05:09AM
Hello,

when I try to cross compile on my dockstar, I get a segmentation fault:
root@dockstar:~/dpf-ax/trunk# make
[ -e src ] && (cd src; ./buildall.sh)
--------------------------------------
Building abeyerr_black
Segmentation fault
make[1]: *** [main.rel] Error 139
Segmentation fault
make[1]: *** [main.rel] Error 139
--------------------------------------

I am using sdcc_2.9.0-5_armel.deb, because with a later version (3.x), is did not work on my AMD64 Debian.
Could this be an issue?
lcd4linux compiled fine.

Regards, Dieter
Re: dpf-ax segmentation fault during cross compilation on dockstar
January 04, 2013 07:49PM
You got sdcc 2.9.0 from http://ports.ubuntu.com/ubuntu-ports/pool/universe/s/sdcc/ ?

Just a sdcc -v and it already errors "Segmentation Faults" so the sdcc toolchain from there is bad or doesn't plays nice with Armel Debian.

On PC, I chroot from AMD64 Debian to 32 bit Debian to compile dpf-ax.
Re: dpf-ax segmentation fault during cross compilation on dockstar
January 05, 2013 01:37AM
Ok,Thank you!
So what is a good source of sdcc for my dockstar, and which version is recommended/ does work?
Dieter
Re: dpf-ax segmentation fault during cross compilation on dockstar
January 05, 2013 06:13AM
Can somebody please supply me with the files which used to be under
ftp://ftp.debian.org/debian/pool/main/s/sdcc/sdcc-libraries_2.9.0-5_all.deb
ftp://ftp.debian.org/debian/pool/main/s/sdcc/sdcc_2.9.0-5_armel.deb

I cannot find any mirrors.

Thanks, Dieter
Re: dpf-ax segmentation fault during cross compilation on dockstar
January 05, 2013 07:49PM
You could trying building sdcc 2.9.0 from sourceforge source...
Re: dpf-ax segmentation fault during cross compilation on dockstar
January 08, 2013 06:39AM
I tried compiling sdcc 2.9.0 on the GFN itself and had to modify these files in as/link folder:

getline.c
getline.h
lklib.c
lkrel.c
lksdcclib.c

A search and replace of getline and its function calls.

char *
getline (char *s, int size, FILE * stream)
with
char *
my_getline (char *s, int size, FILE * stream)
as the definition conflicted with stdlib.h. After that it worked.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: