Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62538 - games-fps/quakeforge-0.5.5 broken on amd64 (due to gcc bugs ?)
Summary: games-fps/quakeforge-0.5.5 broken on amd64 (due to gcc bugs ?)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 11:43 UTC by Thomas Weidner
Modified: 2005-05-05 06:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2004-09-01 11:43:55 UTC
Hi, when i try to run some quakeforge GL client (doesn't matter if SDL or GLX) i get the following:

Host_Init
Added packfile /usr/local/share/games/quakeforge/id1/pak0.pak (339 files)
Could not load plugin "/usr/local/lib/quakeforge/console_client.so".
UDP (IPv4) Initialized
16.0 megabyte heap
Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 72: _dl_next_tls_modid: Assertion `result <= _rtld_local._dl_tls_max_dtv_idx' failed!

after some time of experimenting i found out,that quakeforge works correctly with -O0 and -O1. so on amd64 with gcc 3.4.1 (also 3.3?) CFLAGS must not contain -O2 or -O3 and quakeforge mustt be configured with --disable-optimize.

----------------
Gentoo Base System version 1.5.3
Portage 2.0.50-r10 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm avi berkdb cdr crypt dvd dvdr encode f77 foomaticdb gdbm gif gpm gtk gtk2 guile imlib ipv6 jpeg libg++ libwww mikmod motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline scanner sdl slang spell ssl tcltk tcpd tetex truetype xml2 xmms xv xvid zlib"
Comment 1 SpanKY gentoo-dev 2004-12-27 19:31:06 UTC
still an issue ?
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2005-02-05 18:04:28 UTC
can't confirm, no user response -> please reopen if you tried it with a more recent version of gcc
Comment 3 SpanKY gentoo-dev 2005-02-05 21:28:32 UTC
quakeforge is still pretty broken on amd64
Comment 4 SpanKY gentoo-dev 2005-02-05 21:28:41 UTC
*** Bug 80500 has been marked as a duplicate of this bug. ***
Comment 5 Francisco González 2005-02-10 03:37:47 UTC
LD_PRELOAD=/usr/lib/libGL.so nq-glx

Exporting LD_PRELOAD makes quakeforge load, but it has not input - it has not response to the keyboard keypresses.

-------------------------
frajan@melee frajan $ LD_PRELOAD=/usr/lib/libGL.so nq-glx -nosound
Host_Init
Playing registered version.
Could not load plugin "/usr/games/lib/quakeforge/console_client.so".
UDP (IPv4) Initialized
16.0 megabyte heap
VID: VidMode version: 2.2
GL_VERSION: 1.5.2 NVIDIA 66.29
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce FX 5700VE/AGP/SSE2
GL_EXTENSIONS: GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
Checking for multitexture: enabled, 4 TMUs.
Checking for 8-bit extension: disabled.
Video mode 640x480 initialized.
Particles: 4096 maximum vertex elements.
Sprites: 4 maximum vertex elements.
Text: 4096 maximum vertex elements.

Sound Initialization
Not loading CD due to no driver
VID: DGA version: 2.0
JOY: Joystick not found.

Version 0.5.4 (build 1875)

 QuakeForge initialized
Quake -- Version 1.09
no input for you
couldn't exec autoexec.cfg
3 demo(s) in loop
Playing demo from demo1.dem.




the Necropolis
You got the shells
Received signal 2, exiting...
IN_Shutdown
IN_LL_Shutdown
VID_Shutdown
----------------------

(I had to kill it)
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-04 19:54:43 UTC
Is this still happening with the 2005.0 profile for amd64?
Comment 7 SpanKY gentoo-dev 2005-05-04 20:02:17 UTC
i dont see why the profile matters ... 0.5.5 is broken on amd64

ive punted amd64 from KEYWORDS
Comment 8 Luke-Jr 2005-05-05 00:19:16 UTC
Just a note, I have quakeforge-0.5.5 working on amd64 here... I don't recall exactly how I got it to work, but disabling optimisation sounds familiar.
Also, my install is from an older ebuild (not version): There was no 'oggvorbis' IUSE when I installed:
[ebuild   R   ] games-fps/quakeforge-0.5.5  (-3dfx) +X +alsa -debug -dga +fbcon +ipv6 +ncurses -oggvorbis* +opengl +oss +sdl (-svga) +xmms +xv +zlib 1,908 kB
Comment 9 SpanKY gentoo-dev 2005-05-05 05:46:54 UTC
i use just basic optimizations (-O2 -march=k8) and quakeforge crapped on itself when trying to run
Comment 10 Luke-Jr 2005-05-05 06:07:08 UTC
So maybe it doesn't work with -O2 -march=k8
Try w/o -O0