./uae-cpu/cpuemu5.o(.text+0x19020): In function `cctrue':
cpuemu.c: undefined reference to `_impure_ptr'
./uae-cpu/cpuemu5.o(.text+0x19024):cpuemu.c: undefined reference to `_impure_ptr'
./uae-cpu/cpuemu6.o(.text+0x28254): In function `cctrue':
cpuemu.c: undefined reference to `_impure_ptr'
./uae-cpu/cpuemu6.o(.text+0x28258):cpuemu.c: undefined reference to `_impure_ptr'
D:\cygwin\usr\local\ps2dev\ps2sdk/ee/lib/libc.a(fflush.o)(.text+0x5c): In function `fflush':
src/stdio.c: undefined reference to `mcFlush'
D:\cygwin\usr\local\ps2dev\ps2sdk/ee/lib/libc.a(fflush.o)(.text+0x6c):src/stdio.c: undefined reference to `mcSync'
D:\cygwin\usr\local\ps2dev\ps2sdk/ee/lib/libc.a(sscanf.o)(.text+0x30): In function `sscanf':
src/stdio.c: undefined reference to `vsscanf'
Especially the 3 refs to fflush, mcFlush, vsscanf, mcSync...
I'm using the toolchain updated with the shell script from 2 days ago and PS2SDK makefiles from Makefile.eeglobal_sample,v 1.6 2005/02/01 23:31:01 oobles Exp $
I tried changing the EE_LIBS += -lc -lsyscall -lkernel but nothing changes...
The '_impure_ptr' pb is more tricky for me as I really don't know what is it... I've got it when recompiling the 68K UAE core...
_impure_ptr ==> this is from newlib. Please check back your -I options so that the includes falls into the ps2sdk's common/include and ee/include. And also, please check that you are not including a header that is defined into the newlib and not in the ps2sdk
mcFlush ==> add -lmc to link phase. it's needed by fflush.
vsscanf ==> we don't have any *scanf function familly in the sdk, sorry. If you deadly need it, just try to simplify/change your code so that it uses custom scanners, maybe using atoi for example. However, you're trying to compile uae (the Amiga emulator, right?). Just check if sscanf is really useful in the case you're having. In that latter case, I can provide a short sscanf replacement depending on the format used in your software. Otherwise, just add this .c code to the link phase:
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
The _impure_ptr really comes from a .h files not in the ps2sdk's libc. So, in order to find what's wrong, I'd recommand using the -v flag when compiling with gcc. It'll display all the files it opens and read, alongside with large pieces of information. Reading this output might give you a hint about which .h file is included from not within ps2sdk. Of course, please report any result of that.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Just as I said a few posts before, you are not having -I $PS2SDK/ee/include -I $PS2SDK/common/include in your compilation lines.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Remember I'm a true olsk00l Atarist... So somebody will have to threat me to have UAE ported to the PS2 :D
In fact with 7not6 we have a working version of Castaway but make it evolve is a real pain due to nasty code...
In the same time, Hatari exists, still supported, nice code, better emulation and... .SDL based...
So I have decided to give my efforts to Hatari which is for me a better choice...
So what about UAE ????
Hatari uses the UAE 68K core engine :D (shame on me)
But who knows maybe UAE could be next on the list :D (ask evilo the old amiga freak :D)
ole wrote:can't wait to see UAE working on the ps2.... :) What about the Atari ST emu you mentioned earlier? Any progress?
So would I. UAE on PS2 would be great since the Amiga has so many freeware programs & in fact, a good amount of commerical companies are allowing downloads of their old Amiga progs.
You no mess with Lo Wang- Lo Wang (Shadow Warrior).
I like to mention a warning about UAE. If you do release UAE for PS2, it must not contain the Amiga Kickstart roms since Amiga INC doesn't allow the Kickstart roms to be downloaded from the NET/ & the Kickstart roms can't be included/packaged with the Amiga Emu.
People who want to use an Amiga Emu have to purchase Amiga Forever which contains the Kickstart roms & Amiga Forever is licensed by Amiga INC.
You no mess with Lo Wang- Lo Wang (Shadow Warrior).
UAE requires a fairly hi spec PC to run decently. It would be interesting to see how it performs on PS2. At least you have all the videomodes (and a proper TV hook-up) needed to achieve perfect image quality.
Agree. Not only the proccessor speed is required but the memory amount is critical. I have compiled (just curious wether it's gonna work :-) uae under ps2dev environment (only 68000 core, dummy sound and graphics routines) and the elf launched with TLB Store exception: BadVaddr 02000000 - that is IMHO not enough memory (it didn't even start in main() when it terminated)....
Edit:
finally it works, so if anyone woud like to test it here is the preliminary version. http://www.volny.cz./molej/ps2/uae.htm