Problem at compiling the project in Cygwin

hi,
I download the latest version 1.2.8 and compile in the Cygwin
but I meet errors when linking
and this is the error message:
gcc -shared .libs/SDL.o .libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_getenv.o
.libs/SDL_loadso.o -Wl,–whole-archive main/.libs/libarch.a audio/.libs/libaudio
.a video/.libs/libvideo.a events/.libs/libevents.a joystick/.libs/libjoystick.a
cdrom/.libs/libcdrom.a thread/.libs/libthread.a timer/.libs/libtimer.a endian/.l
ibs/libendian.a file/.libs/libfile.a cpuinfo/.libs/libcpuinfo.a hermes/.libs/lib
hermes.a -Wl,–no-whole-archive -luser32 -lgdi32 -lwinmm -mno-cygwin -mno-cygw
in -o .libs/SDL.dll -Wl,–enable-auto-image-base -Wl,–out-implib,.libs/libSDL.d
ll.a
Creating library file: .libs/libSDL.dll.a
/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/…/…/…/…/i686-pc-mingw32/bin/ld: herme
s/.libs/libhermes.a(mmxp2_32.o): bad reloc address 0x87 in section .text' collect2: ld returned 1 exit status make[2]: *** [libSDL.la] Error 1 make[2]: Leaving directory/cygdrive/d/Elastos20.SDK/src/SDL-1.2.8/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/Elastos20.SDK/src/SDL-1.2.8/src’
make: *** [all-recursive] Error 1

I dont know what the problem is, any help will be thankful.

scream

Hello, scream!

s> I dont know what the problem is, any help will be thankful.

Some nasm problems, changedir to the ./src/hermes, type “make clean” then
type “make” and show the stdout output, how hermes is compiling.

Or disable the MMX accel, run configure with --disable-nasm option.

With best regards, Mike Gorchak. E-mail: @Mike_Gorchak

Mike Gorchak <lestat i.com.ua> writes:

Hello, scream!

s> I dont know what the problem is, any help will be thankful.

Some nasm problems, changedir to the ./src/hermes, type “make clean” then
type “make” and show the stdout output, how hermes is compiling.

Or disable the MMX accel, run configure with --disable-nasm option.

With best regards, Mike Gorchak. E-mail: lestat i.com.ua

hi,
thx for your help, it’s ok when I use --disable-nasm option.

here is the compile message in ./src/hermes:
/bin/bash …/…/libtool --tag=CC --mode=compile
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmx_main.asm -o mmx_main.o
mkdir .libs
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmx_main.asm -DPIC -
o .libs/mmx_main.o
/usr/bin/nasm -f win32 mmx_main.asm -o .libs/mmx_main.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmx_main.asm -o mmx_main.o

/dev/null 2>&1
/bin/bash …/…/libtool --tag=CC --mode=compile
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmxp2_32.asm -o mmxp2_32.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmxp2_32.asm -DPIC -
o .libs/mmxp2_32.o
/usr/bin/nasm -f win32 mmxp2_32.asm -o .libs/mmxp2_32.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 mmxp2_32.asm -o mmxp2_32.o
/dev/null 2>&1
/bin/bash …/…/libtool --tag=CC --mode=compile
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86_main.asm -o x86_main.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86_main.asm -DPIC -
o .libs/x86_main.o
/usr/bin/nasm -f win32 x86_main.asm -o .libs/x86_main.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86_main.asm -o x86_main.o
/dev/null 2>&1
/bin/bash …/…/libtool --tag=CC --mode=compile
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_16.asm -o x86p_16.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_16.asm -DPIC -
o .libs/x86p_16.o
/usr/bin/nasm -f win32 x86p_16.asm -o .libs/x86p_16.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_16.asm -o x86p_16.o
/dev/null 2>&1
/bin/bash …/…/libtool --tag=CC --mode=compile
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_32.asm -o x86p_32.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_32.asm -DPIC -
o .libs/x86p_32.o
/usr/bin/nasm -f win32 x86p_32.asm -o .libs/x86p_32.o
sh …/…/strip_fPIC.sh /usr/bin/nasm -f win32 x86p_32.asm -o x86p_32.o
/dev/null 2>&1
/bin/bash …/…/libtool --mode=link gcc -g -O2 -Wall -DENABLE_DUMMYVIDEO -
DDISKAUD_SUPPORT -I…/…/src/video/wincommon -DENABLE_WINDIB -DUSE_ASMBLIT -
I./hermes -I…/…/src/hermes -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin -
I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/main/win32 -
I…/…/src/audio -I…/…/src/video -I…/…/src/video/XFree86/extensions -
I…/…/src/events -I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread -
I…/…/src/timer -I…/…/src/endian -I…/…/src/file -I…/…/src/thread -o
libhermes.la mmx_main.lo mmxp2_32.lo x86_main.lo x86p_16.lo x86p_32.lo -mno-
cygwin
ar
cru .libs/libhermes.a .libs/mmx_main.o .libs/mmxp2_32.o .libs/x86_main.o .libs/x
86p_16.o .libs/x86p_32.o
ranlib .libs/libhermes.a
creating libhermes.la
(cd .libs && rm -f libhermes.la && ln -s …/libhermes.la libhermes.la)

is there any problem?

Hello, scream!

s> here is the compile message in ./src/hermes:

All is ok, looks like something wrong with nasm or with ld.

With best regards, Mike Gorchak. E-mail: @Mike_Gorchak