VOGONS


First post, by rusback

User metadata
Rank Newbie
Rank
Newbie

hello all,

I'm new and I tried to compile dosbox0.70 for morphos but I have a little problem...

configure of dosbox for do a makefile is ok...
sdl-config is ok too...

$ configure
checking build system type... powerpc-unknown-morphos
checking host system type... powerpc-unknown-morphos
checking target system type... powerpc-unknown-morphos
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... configure: ./configure.lineno[1576]: rm: No such file or directory
yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
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 dependency style of g++... gcc
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for sdl-config... /bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for egrep... grep -E
checking for ANSI C header files... no
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 size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for int *... yes
checking size of int *... 4
checking if environ can be included... no
checking if environ can be linked... yes
checking for powf in -lm... yes
checking if compiler allows __attribute__... yes
checking if compiler allows __builtin_expect... no
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... not present.
checking for snd_ctl_open in -lasound... no
checking whether byte ordering is bigendian... yes
checking for target cpu type... Power PC
checking whether x86 dynamic cpu core will be enabled... no
checking whether fpu emulation will be enabled... yes
checking whether x86 assembly fpu core will be enabled... no
checking whether to enable unaligned memory access... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_check_sig in -lpng... no
configure: WARNING: Can't find libpng, screenshot support disabled
checking SDL_net.h usability... yes
checking SDL_net.h presence... yes
checking for SDL_net.h... yes
checking for SDLNet_Init in -lSDL_net... yes
checking whether opengl display output will be enabled... checking for main in -lGL... no
checking for main in -lopengl32... no
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
no
checking SDL_sound.h usability... yes
checking SDL_sound.h presence... yes
checking for SDL_sound.h... yes
checking for Sound_Init in -lSDL_sound... yes
checking for Sound_Seek in -lSDL_sound... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mprotect... no
checking for setpriority support... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/cpu/Makefile
config.status: creating src/cpu/core_full/Makefile
config.status: creating src/cpu/core_normal/Makefile
config.status: creating src/cpu/core_dyn_x86/Makefile
config.status: creating src/debug/Makefile
config.status: creating src/dos/Makefile
config.status: creating src/fpu/Makefile
config.status: creating src/gui/Makefile
config.status: creating src/hardware/Makefile
config.status: creating src/hardware/serialport/Makefile
config.status: creating src/ints/Makefile
config.status: creating src/libs/Makefile
config.status: creating src/libs/zmbv/Makefile
config.status: creating src/misc/Makefile
config.status: creating src/shell/Makefile
config.status: creating src/platform/Makefile
config.status: creating src/platform/visualc/Makefile
config.status: creating visualc_net/Makefile
config.status: creating include/Makefile
config.status: creating docs/Makefile
config.status: creating config.h
config.status: executing depfiles commands
$ make
make all-recursive
make[1]: Entering directory `/DEV/dosbox'
Making all in src
make[2]: Entering directory `/DEV/dosbox/src'
Making all in cpu
make[3]: Entering directory `/DEV/dosbox/src/cpu'
Making all in core_full
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_full'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_full'
Making all in core_normal
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_normal'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_normal'
Making all in core_dyn_x86
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_dyn_x86'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_dyn_x86'
make[4]: Entering directory `/DEV/dosbox/src/cpu'
source='callback.cpp' object='callback.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -noixemul -I/usr/include/SDL -g -O2 -c -o callback.o callback.cpp
source='cpu.cpp' object='cpu.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -noixemul -I/usr/include/SDL -g -O2 -c -o cpu.o cpu.cpp
cpu.cpp:41: warning: invalid character in macro parameter name
cpu.cpp:41: badly punctuated parameter list in `#define'
make[4]: *** [cpu.o] Error 1
make[4]: Leaving directory `/DEV/dosbox/src/cpu'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/DEV/dosbox/src/cpu'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/DEV/dosbox/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/DEV/dosbox'
make: *** [all] Error 2

src of cpu.cpp :
/*
* Copyright (C) 2002-2007 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

/* $Id: cpu.cpp,v 1.98 2007/02/22 08:35:34 qbix79 Exp $ */

#include <assert.h>
#include <sstream>
#include "dosbox.h"
#include "cpu.h"
#include "memory.h"
#include "debug.h"
#include "mapper.h"
#include "setup.h"
#include "paging.h"
#include "support.h"

Bitu DEBUG_EnableDebugger(void);
extern void GFX_SetTitle(Bit32s cycles ,Bits frameskip,bool paused);

#if 1
#undef LOG
#if defined (_MSC_VER)
#define LOG(X,Y)
#else
#define LOG(X,Y) CPU_LOG
#define CPU_LOG(...) <--- here is my problem
#endif
#endif

//etc....

I don't understand why 🙁
Can you help me ???

Motherboard:
Micro ATX form factor (236mm x 172mm)
IEEE 1275 Firmware/boot interface
Marvell Discovery II (MV64361) System Controller
G4 PowerPC CPU 1Ghz
184-pin 266MHz DDR RAM sockets
AC97 Audio Subsystem
PS/2 (Keyboard & Mouse)

Operating system : MorphOS

PS: sorry for my bad english 🙁

Last edited by rusback on 2007-05-15, 16:38. Edited 1 time in total.

Reply 3 of 5, by rusback

User metadata
Rank Newbie
Rank
Newbie

result:

$ make
make all-recursive
make[1]: Entering directory `/DEV/dosbox'
Making all in src
make[2]: Entering directory `/DEV/dosbox/src'
Making all in cpu
make[3]: Entering directory `/DEV/dosbox/src/cpu'
Making all in core_full
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_full'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_full'
Making all in core_normal
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_normal'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_normal'
Making all in core_dyn_x86
make[4]: Entering directory `/DEV/dosbox/src/cpu/core_dyn_x86'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/DEV/dosbox/src/cpu/core_dyn_x86'
make[4]: Entering directory `/DEV/dosbox/src/cpu'
source='cpu.cpp' object='cpu.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -noixemul -I/usr/include/SDL -g -O2 -c -o cpu.o cpu.cpp
In file included from /gg/lib/gcc-lib/ppc-morphos/2.95.3/../../../../include/g++-3/stl_algobase.h:42,
from /gg/lib/gcc-lib/ppc-morphos/2.95.3/../../../../include/g++-3/list:30,
from ../../include/setup.h:32,
from cpu.cpp:28:
/gg/lib/gcc-lib/ppc-morphos/2.95.3/../../../../include/g++-3/stl_pair.h:37: Internal compiler error.
/gg/lib/gcc-lib/ppc-morphos/2.95.3/../../../../include/g++-3/stl_pair.h:37: Please submit a full bug report.
/gg/lib/gcc-lib/ppc-morphos/2.95.3/../../../../include/g++-3/stl_pair.h:37: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[4]: *** [cpu.o] Error 1
make[4]: Leaving directory `/DEV/dosbox/src/cpu'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/DEV/dosbox/src/cpu'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/DEV/dosbox/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/DEV/dosbox'
make: *** [all] Error 2

I have a big problem with my GCC ??