Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Q-long] Building App with Gentoo / PS3 (PPC64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat May 26, 2007 11:27 pm    Post subject: [Q-long] Building App with Gentoo / PS3 (PPC64) Reply with quote

Hi,

I'm in charge of building ARAnyM http://aranym.org/ on PlayStation3. I have a few difficulties. I use the experimental livecd with kboot from http://gentoo.mirrors.pair.com/experimental/ppc64/livecd/livecd-ps3only-xfce4-beta.iso

The French keyboard configuration (AZERTY) is not available, and the key SDL_image library is not included in the distribution. I think that the second problem of missing library explains why it fails when launching ARAnyM. In facts, it reports problems at initializing SDL library from Gentoo distribution. Let me comment some reports.

Somebody may help me in my quest of building with Gentoo / PS3 ?
_______________________________________________________

Code:
gentoo@livecd ~ $ loadkeys fr
Loading /usr/share/keymaps/i386/azerty/fr.map.gz
Couldnt get a file descriptor referring to the console

AZERTY configuration of the keyboard is missing

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr
--bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include/g++-v4
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--enable-altivec --enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --enable-secureplt
--disable-libunwind-exceptions --disable-multilib --disable-libmudflap
--disable-libssp --disable-libgcj --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)

The current version of GNU/GCC

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ uname -a
Linux livecd 2.6.16-ps3 #1 SMP Thu Mar 15 19:06:46 UTC 2007 ppc64 Cell
Broadband Engine, altivec supported PS3PF GNU/Linux

The Linux kernel version and machine type

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sdl-config --version
1.2.11

The SDL version in Gentoo experimental livecd

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sudo ./autogen.sh --enable-fpe=uae
+ Running aclocal: done.
 + Running autoheader: done.
  + Running autoconf: done.
   + Running 'configure --enable-fpe=uae':
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking target system type... powerpc64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking types.h usability... no
checking types.h presence... no
checking for types.h... no
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for linux/if.h... yes
checking for linux/if_tun.h... yes
checking for net/if.h... yes
checking for net/if_tun.h... no
checking whether byte ordering is bigendian... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 8
checking for void *... yes
checking size of void *... 4
checking for off_t... yes
checking for loff_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking return type of signal handlers... void
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether the compiler recognizes bool as a built-in type... yes
checking for sin in -lm... yes
checking for strdup... yes
checking for sigaction... yes
checking for signal... yes
checking for mmap... yes
checking for mprotect... yes
checking for munmap... yes
checking for vm_allocate... no
checking for vm_deallocate... no
checking for vm_protect... no
checking for strchr... yes
checking for memcpy... yes
checking for bcopy... yes
checking for usleep... yes
checking for gettimeofday... yes
checking for caddr_t... yes
checking for mach_task_self... no
checking for task_self... no
checking for __wchar_t... no
checking whether TUN/TAP is supported... yes
checking whether mmap supports MAP_ANON... yes
checking whether mmap supports MAP_ANONYMOUS... yes
checking whether mprotect works... yes
checking whether we can map Low Memory area 0x0000-0x1000000... yes
checking whether POSIX shared memory is working... no
checking whether 33-bit memory addressing is working... no
checking whether signal handlers need to be reinstalled... no
checking whether sigaction handlers need to be reinstalled... no
checking for vasprintf... yes
checking for sighandler_t... yes
checking for getopt_long... yes
checking for the addressing mode to use... real
checking for GAS .p2align feature... yes
checking for GCC 2.7 or higher... yes
checking for GCC 3.0 or higher... yes
checking whether GCC supports store motion... yes
checking floating point format... IEEE (big-endian)
checking ieee754.h usability... yes
checking ieee754.h presence... yes
checking for ieee754.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking floatingpoint.h usability... no
checking floatingpoint.h presence... no
checking for floatingpoint.h... no
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for atanh... yes
checking for isnan... yes
checking for isinf... yes
checking for finite... yes
checking for isnormal... no
checking for signbit... no
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.10... yes
checking for OpenGL support... yes
checking whether compiler supports framework SDL_image... no
checking for IMG_isJPG in -lSDL_image... no
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir
setting
config.status: creating config.h
config.status: config.h is unchanged

ARAnyM configuration summary:

Use exclusive spcflags handling ........ : yes
Use JIT compiler ....................... : no
Use JIT compiler for FPU instructions .. : no
JIT debug mode ......................... : no
Floating-Point emulation core .......... : uae fpu core
Assembly optimizations ................. : none
Addressing mode ........................ : real
Full MMU support ....................... : no
Linux /dev/rtc source timer ............ : no
Real STOP implementation ............... : yes
DSP 56001 support ...................... : yes
DSP 56001 disassembly support .......... : no
Distributed dispatcher ................. : no
Debugger ............................... : ndebug
Check memory ........................... : page
First 2kB of RAM Supervisor protected... : yes
FastRAM fixed size ..................... : no
Fixed position of VideoRAM ............. : no
Blitter memmove acceleration ........... : no
Blitter SDL blit acceleration .......... : no
Support for hostfs ..................... : yes
Support for ethernet ................... : yes
GUI .................................... : yes
OpenGL ................................. : yes
Linux-m68k loader ...................... : no
Zlib ................................... : not required
NatFeat CD-ROM driver .................. : yes
NatFeat PCI driver ..................... : no
NatFeat OSMesa driver .................. : no
NatFeat JPEG decoder ................... : no
NatFeat Clipboard ...................... : no
NatFeat VDI driver ..................... : yes
Exception per second limiter ........... : no
Linux/X86 h/w access for parallel port.. : no
Linux /dev/parport for parallel port.... : yes
Use C++ exceptions for m68k exceptions.. : yes

Configuration done. Now type "make depend" (or "gmake depend") then
"make" (or "gmake").

Creating dependencies... make: *** [depend] Error 127
all done

SDL_image is missing but it should work

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sudo make

... CUT ...

g++ -I./../include -I. -I. -I./../natfeat -I./../uae_cpu  -I./../gui-sdl
-DHAVE_CONFIG_H  -DOS_linux -DCPU_powerpc -D_GNU_SOURCE -DREAL_ADDRESSING
-DFPU_UAE -DENABLE_EXCLUSIVE_SPCFLAGS -ggdb3 -Wall -W -O3  -fno-gcse-sm
-DARANYM_DATADIR="\"/usr/local/share/aranym\"" -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -c ../gui-sdl/dlgAlert.cpp -o obj/dlgAlert.o
In file included from ../gui-sdl/dlgAlert.cpp:24:
./sysdeps.h:496:1: warning: "__always_inline" redefined
In file included from /usr/include/features.h:323,
  from /usr/include/unistd.h:26,
  from ./sysdeps.h:95,
  from
../gui-sdl/dlgAlert.cpp:24:
/usr/include/sys/cdefs.h:277:1:
warning: this is the
location of the previous
definition
gcc -I./../include -I. -I.
-I./../natfeat
-I./../uae_cpu
-I./../gui-sdl
-DHAVE_CONFIG_H  -DOS_linux
-DCPU_powerpc -D_GNU_SOURCE
-DREAL_ADDRESSING -DFPU_UAE
-DENABLE_EXCLUSIVE_SPCFLAGS
-Wall -W -I./../include -I.
-I. -I.../natfeat -O3
-DARANYM_DATADIR="\"/usr/local/share/aranym\""
-I/usr/include/SDL
-D_GNU_SOURCE=1
-D_REENTRANT -c ../dyngl.c
-o obj/dyngl.o
g++ -o aranymobj/main.o
obj/main_unix.o
obj/vm_alloc.o
obj/host_clock_unix.o
obj/acia.o obj/acsifdc.o
obj/aradata.o
obj/aranym_exception.o
obj/ata.o obj/audio_dma.o
obj/audio_crossbar.o
obj/blitter.o obj/bootos.o
obj/bootos_tos.o
obj/bootos_emutos.o
obj/bootos_linux.o
obj/cdrom.o obj/cfgopts.o
obj/dsp.o obj/emul_op.o
obj/natfeats.o obj/fakeio.o
obj/hardware.o obj/host.o
obj/host_audio.o
obj/host_clock.o
obj/hostscreen.o obj/ide.o
obj/identify.o obj/ikbd.o
obj/input.o obj/md5.o
obj/mfp.o obj/midi.o
obj/midi_file.o obj/mmu.o
obj/ndebug.o obj/ncr5380.o
obj/parallel.o
obj/parallel_file.o
obj/parameters.o
obj/romdiff.o obj/rtc.o
obj/tools.o obj/videl.o
obj/yamaha.o obj/nf_base.o
obj/nf_objs.o obj/xhdi.o
obj/nfaudio.o
obj/nfbootstrap.o
obj/nf_basicset.o
obj/debugprintf.o
obj/midi_sequencer.o
obj/nfcdrom.o
obj/nfcdrom_linux.o
obj/nfvdi.o
obj/nfvdi_soft.o
obj/nfvdi_opengl.o
obj/parallel_parport.o
obj/parameters_linux.o
obj/ethernet_linux.o
obj/host_filesys_unix.o
obj/ethernet.o obj/hostfs.o
obj/aranym_glue.o
obj/memory.o obj/newcpu.o
obj/readcpu.o obj/fpu_uae.o
obj/cpudefs.o obj/cpustbl.o
obj/cpuemu1.o obj/cpuemu2.o
obj/cpuemu3.o obj/cpuemu4.o
obj/cpuemu5.o obj/cpuemu6.o
obj/cpuemu7.o obj/cpuemu8.o
obj/debug.o obj/cpummu.o
obj/dsp_cpu.o obj/sdlgui.o
obj/dlgFileSelect.o
obj/file.o obj/dlgMain.o
obj/dlgDisk.o
obj/dlgKeyboard.o
obj/dlgHotkeys.o
obj/dlgAlert.o obj/dyngl.o
-lm  -lSDL -lpthread
gcc  -I./../include -I. -I.
-I.../natfeat -O3
-DARANYM_DATADIR="\"/usr/local/share/aranym\""
-I/usr/include/SDL
-D_GNU_SOURCE=1
-D_REENTRANT -o aratapif
-DHAVE_AFINET ./aratapif.c

All is built regularly

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sudo ./aranym -V
ARAnyM 0.9.4beta2+cvs
Capabilities:
JIT compiler  : disabled
Full MMU: disabled
DSP  : enabled
DSP disassembler : disabled
OpenGL support: enabled
HOSTFS support: enabled
Native features:
 CD-ROM driver: enabled
  OSMesa rendering: disabled
   JPEG decoder : disabled

The executable has a good shape

Code:
gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sudo ./aranym -c config
ARAnyM 0.9.4beta2+cvs
Using config file: 'config'
[GLOBAL] configuration: found 6 valid directives.
[STARTUP] configuration: found 1 valid directives.
[IKBD] configuration: found 0 valid directives.
[HOTKEYS] configuration: found 0 valid directives.
[JIT] configuration: found 6 valid directives.
[VIDEO] configuration: found 4 valid directives.
[TOS] configuration: found 2 valid directives.
[IDE0] configuration: found 9 valid directives.
[IDE1] configuration: found 1 valid directives.
[PARTITION0] configuration: found 0 valid directives.
[PARTITION1] configuration: found 0 valid directives.
[PARTITION2] configuration: found 0 valid directives.
[PARTITION3] configuration: found 0 valid directives.
[PARTITION4] configuration: found 0 valid directives.
[PARTITION5] configuration: found 0 valid directives.
[PARTITION6] configuration: found 0 valid directives.
[PARTITION7] configuration: found 0 valid directives.
[HOSTFS] configuration: found 1 valid directives.
[OPENGL] configuration: found 2 valid directives.
[ETH0] configuration: found 6 valid directives.
[ETH1] configuration: found 0 valid directives.
[ETH2] configuration: found 0 valid directives.
[ETH3] configuration: found 0 valid directives.
[LILO] configuration: found 3 valid directives.
[MIDI] configuration: found 3 valid directives.
[CDROMS] configuration: found 26 valid directives.
[AUTOZOOM] configuration: found 5 valid directives.
[NFOSMESA] configuration: found 3 valid directives.
[PARALLEL] configuration: found 3 valid directives.
[NATFEATS] configuration: found 2 valid directives.
[NFVDI] configuration: found 1 valid directives.
OS ROM image 'ROM' not found.
EmuTOS 2006/09/23 loading from 'etos512k.img'... [OK]
SDL initialization failed.


It launches successfully but with a failure in SDL init
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Sun May 27, 2007 12:43 pm    Post subject: What do you need? Reply with quote

If you could cite specifically what you need, I could help you. I cannot tell exactly what you are asking for. Are you asking for changes in the livecd or within the stages? And what is the change you want?
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sun May 27, 2007 7:24 pm    Post subject: Re: What do you need? Reply with quote

Quote:
If you could cite specifically what you need, I could help you. I cannot tell exactly what you are asking for. Are you asking for changes in the livecd or within the stages? And what is the change you want?


The GNU/GPL ATARI Virtual Machine i.e. ARAnyM http://aranym.org/ is built successfully, and requires SDL library (SDL_image is not strictly required). But when I run ARAnyM, the SDL initialization fails with the code

Code:
   if (SDL_Init(sdlInitParams) != 0) {
      panicbug("SDL initialization failed.");
      return false;
   }


the precise error code is

Code:
SDL initialization failed: No available video device


So SDL 1.2.11 is having trouble detecting video on the experimental PPC64 Gentoo livecd distribution that I use on PlayStation3 in combination with Kboot.

I'm not quite sure whether it's the right place to report such a problem. Because peoples are not mainly concerned with SDL, except if it's correctly ported on PPC processor. I'm speaking about Cell (PPC64).
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Tue May 29, 2007 8:33 pm    Post subject: Re: What do you need? Reply with quote

Quote:
The SDL initialization fails with the code

Code:
   if (SDL_Init(sdlInitParams) != 0) {
      panicbug("SDL initialization failed.");
      return false;
   }


the precise error code is

Code:
SDL initialization failed: No available video device


So SDL 1.2.11 is having trouble detecting video on the experimental PPC64 Gentoo livecd distribution that I use on PlayStation3 in combination with Kboot.


SDL 1.2.11 included in the PPC64 Gentoo distribution is not built to display images, and doesn't take benefit from any single video device driver. SDL should at least include ps3fb with its regular screen modes (480p, 720p, 1080i, 1080p), the simple and default video driver currently available on PlayStation3. But it doesn't.

Even if I set
Code:
SDL_VIDEODRIVER=x11

SDL always complains about a missing video device.

In the state of the art, SDL 1.2.11 can't be used on the PlayStation3. It is present in PPC64 experimental Gentoo Linux, but useless without its video device :cry:

I don't know what to do ... Would I have some success building SDL 1.2.11 myself with its appropriate device ?
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Mon Jun 11, 2007 10:19 pm    Post subject: Re: What do you need? Reply with quote

Quote:
In the state of the art, SDL 1.2.11 can't be used on the PlayStation3. It is present in PPC64 experimental Gentoo Linux, but useless without its video device :cry:


Here is one of my email exchange

Code:

Andreas Schwab wrote :
> Replace last line with xdpyinfo for testing.

Here it the script that I tested.

#!/bin/bash
export DISPLAY="livecd:0.0"
xhost +
export SDL_VIDEODRIVER=x11
xdpyinfo
#./aranym -c config

Here is the report

gentoo@livecd /mnt/usbdrive/aranym/src/Unix $ sudo ./run.sh
xhost:  unable to open display "livecd:0.0"
xdpyinfo:  unable to open display "livecd:0.0".

What can I do more ?


Code:

Andreas Schwab wrote :
Ask the gentoo people how to properly configure their sudo so that it will forward the X credentials.

-- Andreas Schwab, SuSE Labs, SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
_______________________________________________
cz-bobek-lists-aranym mailing list
aranym@lists.bobek.cz
https://lists.bobek.cz/mailman/listinfo/cz-bobek-lists-aranym


What am I supposed to do ?
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Aug 25, 2007 8:20 pm    Post subject: Reply with quote

Here I'm logged on the PlayStation3 ... It's not that simple to reach the place of that forum, at all ! Specially login with this PS3 editing mode ;-)
Since then I'm still unable to "open display" with X11 client application (ARAnyM == ATARI Virtual Machine at http://aranym.org/). Is there any chance to be able use Xwindow in the future ? There must be a way because so many applications are using X11 term under Gentoo ?
Is somebody concerned ? I can't imagine it's not the case ...
ATARIstically :-)
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Sep 15, 2007 2:34 pm    Post subject: Reply with quote

Quote:
I'm still unable to "open display" with X11 client application
...
Is somebody concerned ?


Literally speaking : "There's a bug in Bunix !" :lol:

Does somebody already met a similar bug ?

ATARIstically yours.
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Sep 19, 2007 12:56 pm    Post subject: Reply with quote

It's still tough to tell exactly what you are trying to get working, there is nothing needed to use SDL with X11. Are you trying to run the application as root? You should really be running it as the user that X is running under.

Try compiling this and running it as your user. Does this work?
http://gpwiki.org/index.php/Files:SDL_DisplayBitmap.zip
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Wed Sep 19, 2007 9:17 pm    Post subject: Reply with quote

Thanks for your answer. Really it helps !

Quote:
It's still tough to tell exactly what you are trying to get working, there is nothing needed to use SDL with X11. Are you trying to run the application as root? You should really be running it as the user that X is running under.


Because most tools I'm using to build ARAnyM are not working unless I'm root, I tried to run ARAnyM itself the same way. The problem is undoubtedly the fact that my working drive is a FAT32 USB stick on which there's no usual Unix FS rights on files (rwx for ugo).

If I try to run ARAnyM (the application) without root privileges, it produces a "Segmentation Fault" error.

Quote:
Try compiling this and running it as your user. Does this work?
http://gpwiki.org/index.php/Files:SDL_DisplayBitmap.zip


Here is what it reports

Code:
gentoo@livecd /mnt/usbdrive/SDL_DisplayBitmap $ sudo gcc SDL_DisplayBitmap.c
-lSDL -o SDL_DisplayBitmap
gentoo@livecd /mnt/usbdrive/SDL_DisplayBitmap $ ls
SDL_DisplayBitmap  SDL_DisplayBitmap.c  image.bmp  license.txt
gentoo@livecd /mnt/usbdrive/SDL_DisplayBitmap $ ./SDL_DisplayBitmap


The example bitmap image is displayed correctly. It tends to prove that the SDL library is working properly.

Code:
gentoo@livecd /mnt/usbdrive/SDL_DisplayBitmap $ sudo ./SDL_DisplayBitmap
Unable to initialize SDL: No available video device


But when I'm root, the "can't open display" error from X11 is still there, like when I'm running the ARAnyM application.

If the application I'm building can't be launched without root privileges, it won't work with Gentoo because X11 doesn't allow such things, in combination with libSDL. I'm working on the PlayStation3 with the Gentoo / Linux liveCD and a USB stick, please keep it in mind.

Is there something I can do ? Thanks.
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Sep 20, 2007 1:53 pm    Post subject: Reply with quote

I still don't understand why you need to run as root, a program such as an emulator should *not* need to be run as root, it's broken if that's the case. I still don't see how there's a bug in the LiveCD, especially since the SDL test app works fine. :p

However, if you absolutely need to use X as root, you can run it this way:
Code:

$ sudo -s
# DISPLAY=":0.0" <yourprogram>

_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sun Sep 23, 2007 5:53 pm    Post subject: Reply with quote

Thanks again for your answer. That really helps.
Quote:
However, if you absolutely need to use X as root, you can run it this way:
Code:

$ sudo -s
# DISPLAY=":0.0" <yourprogram>

Ho yes ! I didn't know how to manage X11 display being super-user. That really simplifies me things when building and executing ARAnyM on the FAT32 support (USB stick). In facts there's no real bug in Gentoo Linux neither in libSDL so far as I tested it, thanks to your help.

The problem is with ARAnyM built on a PPC64 CPU. I will try to solve the problem with the "Segmentation fault" for now on.

What's strange is that I'm one of the maintainers of the Mac OS X version with my dual-G4 machine. So ARAnyM fits to PowerPCs. I also have a Vaio under GNU / Linux so ARAnyM can be hosted with Linux. But the combination of Linux and PowerPC (Cell) is not directly supported with Gentoo / Linux and PlayStation3. I'll have to correct the bug with the "Segmentation fault", how strange !

What's also not easy being, Gentoo / Linux PPC64 liveCD is not embedding GNU / GDB in the distribution. So it will not be very easy to hunt the bad ARAnyM bugs I finally found, but can't really describe and identify without debugging capabilities in the Gentoo devel tools.

What is the reason why a liveCD distribution like Gentoo embed all GNU devel tools, except GNU / GDB symbolical debugger ?

Greetings.
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 23, 2007 6:38 pm    Post subject: Reply with quote

The LiveCD is just an example of a working Gentoo system. It's not meant for real work, especially not development work. It would be better to install Gentoo if you're planning on doing any development.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Mon Oct 08, 2007 8:05 pm    Post subject: Reply with quote

Quote:
The LiveCD is just an example of a working Gentoo system. It's not meant for real work, especially not development work. It would be better to install Gentoo if you're planning on doing any development.


The bug with the "Segmentation fault" is also reported here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428355 thanks to a Sony developer.

I don't really have the intention to turn my own PlayStation3 in a development platform, because it has for me a lot of other multimedia usages. My belief was that Gentoo / Linux is devoted to developments. The claim is "If it moves, compile it.", isn't it ?

I'm sorry that GNU / GDB is not included in the Gentoo liveCD, because it prevents me from going further on developments. The Sony developer that reported the bug like I did myself, seems to have debugging availability on the PlayStation3.

I'm really sorry, but I won't be able to help him on that topic. He knows about Linux / PS3, I know about ARAnyM, but we can't share experience unfortunately :(
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Oct 09, 2007 1:47 pm    Post subject: Reply with quote

Yes, those statements are true for the installed version of Gentoo, not for the experimental LiveCD which is provided as a convienence for installations/demos on the PS3.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Oct 13, 2007 8:14 am    Post subject: Reply with quote

Quote:
Yes, those statements are true for the installed version of Gentoo, not for the experimental LiveCD which is provided as a convienence for installations/demos on the PS3.


Sorry ... I don't want to turn my PlayStation3 in a devel platform ... May I ask you ? GNU's Not Unix or GNU's Now Unix ?

If you distribute all GNU / GCC tools except GNU / GDB that restricts my freedom to go further on developments in the usage of the Sony PlayStation3 machine.

Is it planed to release GNU / GDB in the next version of the Gentoo / Linux experimental PPC64 liveCD ?

ATARIstically yours,
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sun Nov 11, 2007 5:01 pm    Post subject: Reply with quote

To improve the PlayStation3 development environment made available with Gentoo / Linux, would there be an obstacle to release the one maintained by IBM, specifically intended for Cell (derived from PPC64) already included in the YDL distribution

ftp://ftp.yellowdoglinux.com/pub/yellowdog/betas/Cell_SDK_2.1/

but doesn't seem to be published in any other GNU / Linux distribution ? :roll:

The development tools that I tested on my own PS3 seems rather experimental, and not peculiarly dedicated.
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Mon Nov 26, 2007 9:43 pm    Post subject: Reply with quote

Someone who tested ARAnyM on a PowerMac G4 (I don't know which GNU / Linux distribution) reported the following bug located in SDL library http://www.libsdl.org/

Code:
[NATFEATS] configuration: found 2 valid directives.
[NFVDI] configuration: found 1 valid directives.
Path to TOS ROM image file undefined
EmuTOS 2007/07/20 loading from
'/home/thomas/atari/aranym/afros-0.9.5/system/etos512k.img'... [OK]

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 805448032 (LWP 17241)]
0x00100358 in __kernel_gettimeofday ()
(gdb) bt
#0  0x00100358 in __kernel_gettimeofday ()
#1  0x0fc69178 in gettimeofday () from /lib/libc.so.6
#2  0x0ffcc2fc in SDL_StartTicks ()
at ./src/timer/unix/SDL_systimer.c:67
#3  0x0ff75964 in SDL_InitSubSystem (flags=1049393) at ./src/SDL.c:99
#4  0x0ff759f4 in SDL_Init (flags=268343416) at ./src/SDL.c:160
#5  0x10105e6c in InitAll () at src/main.cpp:401
#6  0x10106554 in main (argc=3, argv=0x7fdb5754) at src/Unix/main_unix.cpp:280


The bug was then reported three times, by three different peoples building ARAnyM with PPC or PPC64 based machines.

Some ideas ?
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Tue Nov 27, 2007 12:07 pm    Post subject: Reply with quote

Here it is, ARAnyM == the ATARI Virtual Machine is running on the PlayStation3 !

You need to burn a Gentoo / Linux LIVECD, install Kboot on a USB key and on the PS3, with ARAnyM pack on the stick (soon available), and run it from the key, without the requirement to install Linux on the HD (that is rather complex). Then you boot on the CD-R, mounting the usbdrive, you have an ATARI (virtual) Machine on the USB stick 8)

Here is what it render on my 20" DELL HD-ready monitor, with 720p video mode http://eureka.atari.org/screen_ps3.png

It almost "Christmas" for now on :wink:
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Dec 01, 2007 11:00 pm    Post subject: Reply with quote

Now ARAnyM http://aranym.org/ == ATARI Running on Any Machine, the GNU / GPL ATARI Virtual Machine runs on PlayStation3. It can be launched on PS3 hosted with PPC Linux with the Mini Pack at http://eureka.atari.org/MacAranym.zip

Because It runs with PPC Linux on PlayStation3, it should run on all PowerPC machines. But I only built and tested it on my own 80Gb / WiFi / HD-Ready 720p PS3, with Gentoo / Linux.

Can somebody confirm me that this Mini Pack also works on PPC machines apart from PS3 ? It should also run on MacIntosh machines hosted with PPC Linux for instance ?

Thanks to help me to test the Mini Pack on any PowerPC machine you own, and report it.

Thanks all for help :)
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Dec 22, 2007 3:53 pm    Post subject: Reply with quote

The Gentoo / Linux PlayStation3 LiveCD was updated at the address

ftp://ftp.free.fr/mirrors/ftp.gentoo.org/experimental/ppc64/livecd/livecd-ps3-xfce4-20071212-r1.iso

The Mini Pack http://eureka.atari.org/MacAranym.zip was then updated, now having the following aspect

http://eureka.atari.org/screen_ps3.png

Many Thanks to Gentoo / Linux Developers :D
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Wed Feb 27, 2008 5:28 pm    Post subject: ATARI / Mac-PC-PS3 Reply with quote

There's a new 0.9.6beta2 release of ARAnyM http://aranym.org/, so the miniPack http://eureka.atari.org/MacAranym.zip was updated.

Many thanks to PowerPC Gentoo / Linux developers and ARAnyM Team :)

miniPack now supports

`MacAranym` allows launching on Macintosh with Mac OS X
`MacAranym JIT` allows launching on IntelMac with Mac OS X
`run_x86.sh` allows launching on PC with x86-Linux
`run_ppc.sh` allows launching on Mac and PS3 with PPC-Linux

So Macintosh - PC - PlayStation 3 are all supported with both Mac OS X and Linux.

This minimal ARAnyM configuration is entirely based on Unices.

Here is a screenshot http://eureka.atari.org/aranym.gif with Mac OS X and http://eureka.atari.org/screen_ps3.png with GNU / Linux.

Enjoy :wink:
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Mon Nov 10, 2008 1:09 pm    Post subject: Re: ATARI / Mac-PC-PS3 Reply with quote

There's a new 0.9.7beta release of ARAnyM http://aranym.org/, so the miniPack http://eureka.atari.org/miniPack.zip was updated.

Many thanks to PowerPC (PPC64) Gentoo / Linux developers and ARAnyM Team :)

miniPack supports

`MacAranym` allows launching on Macintosh with Mac OS X
`MacAranym JIT` allows launching on IntelMac with Mac OS X
`run_x86.sh` allows launching on PC with x86-Linux
`run_ppc.sh` allows launching on Mac and PS3 with PPC-Linux

So Macintosh - PC - PlayStation 3 are all supported with both Mac OS X and GNU / Linux.

This minimal ARAnyM configuration is entirely based on Unices.

Enjoy =)
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Tue Apr 28, 2009 4:26 pm    Post subject: Reply with quote

There's a 0.9.8beta release of ARAnyM http://aranym.org/, so the miniPack http://eureka.atari.org/miniPack.zip was
updated. It supports

`MacAranym` allows launching on Macintosh with Mac OS X
`MacAranym JIT` allows launching on IntelMac with Mac OS X
`run_x86.sh` allows launching on PC with x86-Linux
`run_ppc.sh` allows launching on Mac and PS3 with PPC-Linux

So Macintosh - PC - PlayStation 3 are all supported with both Mac OS X and GNU / Linux.

This simple ARAnyM configuration is entirely based on Unices.

Enjoy, it's yours :)
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Francois LE COAT
n00b
n00b


Joined: 26 May 2007
Posts: 33
Location: France

PostPosted: Sat Aug 29, 2009 8:05 am    Post subject: Reply with quote

I was unfortunately victim of the YLOD syndrome with my PS3. Here is the very sad video http://eureka.atari.org/ylod.mp4

It happened while I was watching "Dune" Blu-ray (a picture adapted from the well known scifi author Frank Herbert). Y.L.O.D. = Yellow Light Of Death. It means that the PlayStation 3 is broken. The ARAnyM's host is so expensive to get repaired from Sony, that I think I'll rapidly buy a new PS3 Slim to replace it. I think PS3 worth it :-)

The main drawback is that GNU / Linux is no longer available with the new hardware. It's bad news, and I will not be able to build ARAnyM myself, and submit official packages for future release.

Please apologize. The problem is probably caused by a too hot summer season, I suspect. I hope someone else will follow the job on PS3 ... I'm sure that some of the PlayStation fans appreciated the ARAnyM port I've done on the platform, with the help of Gentoo developers. Here is the last screenshot http://eureka.atari.org/screen_ps3.png Feel free to ask me if I can help building ARAnyM on PlayStation 3.

You're welcome,

Keep going !
_________________
-- archimedium
http://eureka.atari.org/
http://fon.gs/atarians/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum