Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q-long] Building App with Gentoo / PS3 (PPC64)

1 view
Skip to first unread message

Francois LE COAT

unread,
May 26, 2007, 4:17:26 PM5/26/07
to ara...@lists.bobek.cz, Patrice Mandin
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 ?

Best regards,

--
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
<http://eureka.atari.org/>
_______________________________________________________

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*

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*

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*

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

*The SDL version in Gentoo experimental livecd*

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*

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*

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*

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*

0 new messages