MaxKellermann / cegcc-build

CEGCC build scripts
http://max.kellermann.name/projects/cegcc/
27 stars 16 forks source link

Error when building GDB into CYGWIN #7

Open carlo-bramini opened 3 years ago

carlo-bramini commented 3 years ago

Hello, I tried to build mingw32ce with CYGWIN and I got this error:

  CXXLD  gdb.exe
cp-support.o: in function `gdb_demangle(char const*, int)':
/home/Carlo/cegcc-build/binutils/gdb/cp-support.c:1552:(.text+0x1d12): relocation truncated to fit: IMAGE_REL_AMD64_REL32 against undefined symbol `TLS init function for thread_local_segv_handler'
/home/Carlo/cegcc-build/binutils/gdb/cp-support.c:1552:(.text+0x1d2b): relocation truncated to fit: IMAGE_REL_AMD64_REL32 against undefined symbol `TLS init function for thread_local_segv_handler'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1841: gdb.exe] Error 1
make[2]: uscita dalla directory «/home/Carlo/cegcc-output/binutils/gdb»
make[1]: *** [Makefile:11279: all-gdb] Error 2
make[1]: uscita dalla directory «/home/Carlo/cegcc-output/binutils»
make: *** [Makefile:856: all] Error 2

Perhaps you will find interesting this message:

http://51.15.138.76/patch/45121/

Applying that patch allowed me to bypass the trouble, although I do not know if it is a good idea or not. Sincerely.