07 October 2018, 14:36 | #1 |
Engineer
Join Date: Oct 2018
Location: Shadow realm
Posts: 165
|
VBCC and PosixLib: #80000004 no matter what.
I have recently obtained an A500+ with kick 37.175 after years of not having an Amiga at my present location (I've got A500 and A1200 elsewhere, will retrieve at some point), which I'm having a lot of fun with.
I like development, so I set up a crossdev chain on Linux, with latest vbcc (0.9fP1) and dependencies. With that, I have successfully built and run a few programs, using vbcc's libc, amigaos ndk and both. I build the programs on Linux and send them zipped over the serial, then unzip and run at target. Now I'm trying PosixLib: http://aminet.net/package/dev/c/vbcc_PosixLib And I'm not having much luck. I haven't been able to get past the instant (CON: window doesn't even open) #80000004 treatment. Here's what by all means should be a simple program, and how I build it: Code:
int main(){ int fd; int shit; fd=open("CON:",1); shit=write(fd,"Hello posix.",13); close(fd); return 0; } $ vc +aos68kp -o posix posix.c # cat aos68kp -cc=vbccm68k -quiet -hunkdebug %s -o= %s %s -O=%ld -I$AMIGALIBPOSIX/include/ -I$VBCC/targets/m68k-amigaos/include -ccv=vbccm68k -hunkdebug %s -o= %s %s -O=%ld -I$AMIGALIBPOSIX/include/ -I$VBCC/targets/m68k-amigaos/include -as=vasmm68k_mot -quiet -Fhunk -phxass -opt-fconst -nowarn=62 %s -o %s -asv=vasmm68k_mot -Fhunk -phxass -opt-fconst -nowarn=62 %s -o %s -rm=rm -f %s -rmv=rm %s -ld=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -mrel $VBCC/targets/m68k-amigaos/lib/startup.o %s %s -L$AMIGALIBPOSIX/AmigaOS3 -L$VBCC/targets/m68k-amigaos/lib -lvc -lposix -o %s -l2=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -mrel %s %s -L$VBCC/targets/m68k-amigaos/lib -o %s -ldv=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib -mrel $VBCC/targets/m68k-amigaos/lib/startup.o %s %s -L$AMIGALIBPOSIX/opt/amiga_ndk/PosixLib/AmigaOS3 -L$VBCC/targets/m68k-amigaos/lib -lvc -lposix -o %s -l2v=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib -mrel %s %s -L$VBCC/targets/m68k-amigaos/lib -o %s -ldnodb=-s -Rshort -ul=-l%s -cf=-F%s -ml=1000 Please advice. |
07 October 2018, 15:07 | #2 |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
What happens if you try to open a normal file rather than CON:?
|
07 October 2018, 15:49 | #3 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
That's an illegal instruction exception. Try running it on your A1200, it may be that the library has inadvertently been built for 68020.
|
07 October 2018, 15:51 | #4 |
Engineer
Join Date: Oct 2018
Location: Shadow realm
Posts: 165
|
I should have thought about that (!). I'll pass the file to an emulated A1200 soon (no access to my real A1200) and report back.
|
07 October 2018, 15:56 | #5 |
Engineer
Join Date: Oct 2018
Location: Shadow realm
Posts: 165
|
PosixLib is built for 020
|
08 October 2018, 16:49 | #6 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Yes. The default Makefile.68k builds PosixLib for 68020 and 68881.
I have probably never tried with 68000 or without FPU. So no guarantee it will work. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga 1200 REV does it matter | XsamX1987 | support.Hardware | 9 | 17 February 2017 07:10 |
ramlib program failed (error #80000004) on real Amiga | Starglider 2 | support.Other | 47 | 31 May 2015 19:23 |
HELP! Mediator a4000 di - Ramlib error #80000004 | chusete | support.Hardware | 9 | 03 November 2010 22:00 |
Burnt my 68882 , does it really matter ???? | keropi | support.Hardware | 11 | 13 December 2004 11:18 |
A little question concerning Gray Matter | MethodGit | Amiga scene | 13 | 03 December 2001 18:55 |
|
|