gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Cygwin and pth error


From: Gaius Mulley
Subject: Re: [Gm2] Cygwin and pth error
Date: Tue, 24 May 2011 19:28:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Christoph Schlegel <address@hidden> writes:

> 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

Hi Christoph,

thanks for the makefile info.  Is libpth-dev installed?
Does the make post-install issue a '-lpth' request at the link stage?

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]