[Gc] Link failure on Cygwin

Ludovic Courtès ludo at gnu.org
Thu Sep 17 03:23:05 PDT 2009


Linking libcord against libgc fails on Cygwin:

--8<---------------cut here---------------start------------->8---
/bin/sh ./libtool --tag=CC --mode=link gcc -fexceptions -I libatomic_ops/src -g -O2   -o libcord.la -rpath /nix/store/7x8whr8b6hkwi8m85r76fs9d4xg81mkk-boehm-gc-7.1/lib -version-info 1:3:0 -no-undefined cord/cordbscs.lo cord/cordprnt.lo cord/cordtest.lo cord/cordxtra.lo ./libgc.la 

*** Warning: This system can not link to static lib archive ./libgc.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
gcc -shared  cord/.libs/cordbscs.o cord/.libs/cordprnt.o cord/.libs/cordtest.o cord/.libs/cordxtra.o   -o .libs/cygcord-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libcord.dll.a
cord/.libs/cordbscs.o: In function `CORD_from_fn':
/tmp/nix-build-70zl9ghvrdb2aqicx1va9c89waq34fpz-boehm-gc-7.1.drv-1/gc-7.1/cord/cordbscs.c:288: undefined reference to `_GC_malloc_atomic'
/tmp/nix-build-70zl9ghvrdb2aqicx1va9c89waq34fpz-boehm-gc-7.1.drv-1/gc-7.1/cord/cordbscs.c:298: undefined reference to `_GC_malloc'

--8<---------------cut here---------------end--------------->8---

See https://hydra.nixos.org/build/74624 for details.



More information about the Gc mailing list