Problems in compilation on 64-bit system: extended registers have no high halves

These problems may have to do with extended registers on AMD 64-bit.
Does anyone know of a workaround?

-frankie

I had some compilation problems with SDLnet.c:

gcc -DPACKAGE=“SDL_net” -DVERSION=“1.2.5” -I. -I. -g -O2
-I/usr/local/include/SDL -D_REENTRANT -c SDLnet.c -fPIC -DPIC -o .libs/SDLnet.lo
SDLnet.c: In function `SDLNet_ResolveHost’:
SDLnet.c:336: error: extended registers have no high halves

I had some compilation problems with SDL_mixer-1.2.6 :

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL_mixer”
-DVERSION=“1.2.6” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I.
-g -O2 -I/usr/local/include/SDL -D_REENTRANT -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC
-DLIBMIKMOD_MUSIC -pthread -D_REENTRANT -DMID_MUSIC -DUSE_TIMIDITY_MIDI
-I./timidity -DOGG_MUSIC -MT effect_position.lo -MD -MP -MF
.deps/effect_position.Tpo -c effect_position.c -fPIC -DPIC -o
.libs/effect_position.o
effect_position.c: In function _Eff_position_u16msb_c4': effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves effect_position.c:928: error: extended registers have no high halves make[1]: *** [effect_position.lo] Error 1 make[1]: Leaving directorySDL_mixer-1.2.6

search the mailing list for previous posts (there’s been a lot), or grab the
fix from cvs (look at SDL_Endian.h’s history)
-mikeOn Friday 11 February 2005 12:17 pm, Frankie Liu wrote:

These problems may have to do with extended registers on AMD 64-bit.
Does anyone know of a workaround?