First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 114949
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gustavo Ribeiro Alves <gralves@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
0.63-64bit-gcc4.patch Proposed patch patch Gustavo Ribeiro Alves 2005-12-08 20:44 0000 2.74 KB Details | Diff
dosbox-gcc4.patch dosbox-gcc4.patch patch Joshua Baergen (RETIRED) 2006-01-07 15:42 0000 467 bytes Details | Diff
dosbox-0.63-gcc4.patch dosbox-0.63-gcc4.patch patch Patrick McLean 2006-03-01 21:13 0000 1.31 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 114949 depends on: Show dependency tree
Show dependency graph
Bug 114949 blocks: 117482
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-12-08 20:43 0000
dosbox fails to build on amd 64. The following patch file needs to be applied
for it to work. The patch is taken from a newer version of dosbox cvs. All it
does is to change some unsafe casts.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Gustavo Ribeiro Alves 2005-12-08 20:44:18 0000 -------
Created an attachment (id=74362) [edit]
Proposed patch

------- Comment #2 From Gustavo Ribeiro Alves 2005-12-08 20:45:20 0000 -------
I forgot to mention, this bug is about dosbox 0.63.

------- Comment #3 From SpanKY 2005-12-09 05:37:12 0000 -------
can you repost the patch using `diff -u` please

------- Comment #4 From Gustavo Ribeiro Alves 2005-12-09 08:46:11 0000 -------
I got the patch directly from dosbox cvs. I'll take a look at it today after
work.

------- Comment #5 From Gustavo Ribeiro Alves 2005-12-11 19:36:41 0000 -------
After more testing, I figured out that dosbox seens to be unstable on my
machine
w/ these modifications. Right now I'm using the cvs head version. I think it
might be safer to wait until 0.64 (it seems that the dosbox team will release
it
soon).

------- Comment #6 From Joshua Baergen (RETIRED) 2006-01-07 15:42:31 0000 -------
Created an attachment (id=76491) [edit]
dosbox-gcc4.patch

This is all it took for me to get it to compile on 4.1.  It should work for
4.0.x too.

------- Comment #7 From Tony Vroon 2006-01-22 06:35:31 0000 -------
(In reply to comment #6)
> Created an attachment (id=76491) [edit]
> dosbox-gcc4.patch
> 
> This is all it took for me to get it to compile on 4.1.  It should work for
> 4.0.x too.

Sorry, it doesn't work for me:
drive_cache.cpp: In member function 

------- Comment #8 From Tony Vroon 2006-01-22 06:35:31 0000 -------
(In reply to comment #6)
> Created an attachment (id=76491) [edit]
> dosbox-gcc4.patch
> 
> This is all it took for me to get it to compile on 4.1.  It should work for
> 4.0.x too.

Sorry, it doesn't work for me:
drive_cache.cpp: In member function ‘int
DOS_Drive_Cache::CompareShortname(const char*, const char*)’:
drive_cache.cpp:320: error: cast from ‘char*’ to ‘int’ loses precision
drive_cache.cpp:320: error: cast from ‘const char*’ to ‘int’ loses
precision
drive_cache.cpp:322: error: cast from ‘char*’ to ‘int’ loses precision
drive_cache.cpp:322: error: cast from ‘char*’ to ‘int’ loses precision
drive_cache.cpp:325: error: cast from ‘char*’ to ‘int’ loses precision
drive_cache.cpp:325: error: cast from ‘const char*’ to ‘int’ loses
precision
make[3]: *** [drive_cache.o] Error 1

Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2,
2.6.16-rc1 x86_64)
=================================================================
System uname: 2.6.16-rc1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/store/distfiles"
FEATURES="autoaddcvs autoconfig cvs distlocks sandbox sfperms sign"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/"
LC_ALL="en_IE.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/cvs/gentoo-x86"
PORTDIR_OVERLAY="/cvs/gentopia /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 16bit S3TC X a52 aac aalib acpi adns aim alsa ao aotuv apache2
audacious audiofile avi bash-completion berkdb bitmap-fonts bl browserplugin
bzip2 cairo cddb cdio cdparanoia cdr crypt cups curl dbus dlloader dpms dri dts
dvd dvdr ecc eds elf emboss encode erandom ethereal evo exif expat fam fat
fbcon fbsplash ffmpeg fftw firefox flac fmod foomaticdb fpx freetype ftp gcj gd
gdbm gif glitz glut gnome gnome-print gnomecanvas gnutls gpm gstreamer gtk gtk2
gtkhtml gzip hal howl icq id3 idn ieee1394 imagemagick imap imlib imlib2
inifile ipv6 irc java jce john jp2 jpeg jpeg2k kerberos lame lcms ldap libcaca
libsamplerate libvisual libwww lirc live lm_sensors logrotate lzo lzw lzw-tiff
mad matroska md5sum mhash mikmod mjpeg mmap mng mod modplug mozsvg mp3 mpeg
mpeg2 mpeg4 mplayer musepack musicbrainz nautilus ncurses network nls
no-old-linux nptl nsplugin ntlm ogg oggvorbis openal opengl openssl oscar pam
pccts pcre pdflib perl physfs pic png pnp python quicktime rar rdesktop
readline real recode rtc ruby sdl sensord sid silc slang sndfile speex spell
ssl stencil-buffer svg svgz symlink sysfs tcltk theora tiff timidity transcode
truetype truetype-fonts type1-fonts udev unicode ups usb v4l2 vcd vorbis wifi
wma wmf xanim xine xinerama xml2 xpm xprint xsl xslt xv xvid yahoo yv12
zeroconf zip zlib zvbi elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS

------- Comment #9 From Bret Towe 2006-01-22 14:36:43 0000 -------
applying both attached patchs works fine for me here
it loaded and i could look around  i seemed to of misplaced
my dosbox stuff tho so i couldnt do any real testing

Portage 2.1_pre3-r1 (default-linux/amd64/2005.0, gcc-4.0.2, glibc-2.3.6-r1,
2.6.16-rc1-git4 x86_64)
=================================================================
System uname: 2.6.16-rc1-git4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mdhd/portage.local"
SYNC="rsync://vox.net/gentoo-portage"
USE="amd64 X a52 aac alsa audiofile avi berkdb bitmap-fonts bzip2 canna cdr cjk
cli crypt curl dmx dri dv dvb dvd dvdread eds emboss esd exif expat fam fbcon
fbdev flac foomaticdb gd glut gmp gnome gstreamer gtk gtk2 gtkhtml idn
imagemagick imlib ipv6 jpeg kde lcms libwww live lua lzw lzw-tiff mad matroska
mhash mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis openal
opengl pam pcre pdflib perl php png python qt quicktime readline real recode
samba sdl speex spell ssl svg tcpd theora tiff truetype truetype-fonts
type1-fonts udev unicode usb userlocales v4l v4l2 vcd vorbis wmf xine xinerama
xml2 xmms xpm xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LINGUAS

------- Comment #10 From Patrick McLean 2006-03-01 21:13:21 0000 -------
Created an attachment (id=81087) [edit]
dosbox-0.63-gcc4.patch

This is all I needed to change to get it to compile with gcc-4.0.2-r3

------- Comment #11 From Gustavo Ribeiro Alves 2006-03-12 21:09:17 0000 -------
I did some testing and it seems that the unstability was caused by the binary
ati-drivers. I think the patches are safe.

------- Comment #12 From Mark Loeser 2006-03-14 15:30:02 0000 -------
*** Bug 126222 has been marked as a duplicate of this bug. ***

------- Comment #13 From Jeremy Huddleston 2006-03-19 03:22:59 0000 -------
Fixed in cvs.

------- Comment #14 From Mr. Bones. 2006-03-19 23:26:43 0000 -------
*** Bug 126902 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug