[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Cygwin and pth error
From: |
Christoph Schlegel |
Subject: |
[Gm2] Cygwin and pth error |
Date: |
Tue, 24 May 2011 18:41:41 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
Hi Gaius,
compiling the ncurses example (make post-install) I get a linker error.
I am (quite) sure the libraries are installed correctly:
/gm2/lib/gcc/i686-pc-cygwin/4.1.2/gm2/pim-coroutine/libgm2pco.a(SYSTEM.o):
In function `SYSTEM_TRANSFER':
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:71:
undefined reference to `_pth_uctx_switch'
/gm2/lib/gcc/i686-pc-cygwin/4.1.2/gm2/pim-coroutine/libgm2pco.a(SYSTEM.o):
In function `SYSTEM_NEWPROCESS':
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:95:
undefined reference to `_pth_uctx_create'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:99:
undefined reference to `_pth_uctx_make'
/gm2/lib/gcc/i686-pc-cygwin/4.1.2/gm2/pim-coroutine/libgm2pco.a(SYSTEM.o):
In function `localInit':
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:243:
undefined reference to `_pth_init'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:249:
undefined reference to `_pth_uctx_create'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:254:
undefined reference to `_pth_uctx_make'
/gm2/lib/gcc/i686-pc-cygwin/4.1.2/gm2/pim-coroutine/libgm2pco.a(SYSTEM.o):
In function `localMain':
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-coroutines/SYSTEM.mod:271:
undefined reference to `_pth_uctx_create'
/gm2/lib/gcc/i686-pc-cygwin/4.1.2/gm2/pim/libgm2.a(RTint.o): In function
`RTint_Listen':
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs/RTint.mod:615:
undefined reference to `_pth_select'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs/RTint.mod:619:
undefined reference to `_pth_select'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs/RTint.mod:624:
undefined reference to `_pth_select'
/home/Christoph/build/gcc/../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs/RTint.mod:629:
undefined reference to `_pth_select'
collect2: ld gab 1 als Ende-Status zurueck
make: *** [post-install] Fehler 1
As a sidenote: If you keep the 'size' command in a Makefile used in the
Cygwin environment (called e.g. from the Makefile of the hello world
example of gm2) you need to introduce an additional check, as the
executables are named different (.exe) under a Windows platform.
UNAME := $(shell uname)
WINEXE := a.exe
LINEXE := a.out
ifeq ($(UNAME), Linux)
size $(LINEXE)
endif
ifeq ($(UNAME), CYGWIN_NT-6.0)
size $(WINEXE)
endif
Regards
Christoph
- [Gm2] Cygwin and pth error,
Christoph Schlegel <=