#7336: boehm_gc fails to build on Cygwin
-----------------------+----------------------------------------------------
   Reporter:  mhansen  |       Owner:  tbd
       Type:  defect   |      Status:  new
   Priority:  major    |   Milestone:     
  Component:  cygwin   |    Keywords:     
Work_issues:           |      Author:     
   Reviewer:           |      Merged:     
-----------------------+----------------------------------------------------
 It fails with
 {{{
   /bin/sh ./libtool --tag=CC --mode=link gcc -fexceptions -I
 libatomic_ops/src -g -O2   -o libcord.la -rpath
 /home/mhansen/sage-4.2/local/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.
   rm -fr  .libs/libcord.dll.a
   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
   Creating library file: .libs/libcord.dll.a
   cord/.libs/cordbscs.o: In function `CORD_from_fn':
 /home/mhansen/sage-4.2/spkg/build/boehm_gc-7.1.p2/src/cord/cordbscs.c:288:
 undefined reference to `_GC_malloc_atomic'
 /home/mhansen/sage-4.2/spkg/build/boehm_gc-7.1.p2/src/cord/cordbscs.c:298:
 undefined reference to `_GC_malloc'
   cord/.libs/cordbscs.o: In function `CORD_substr_closure':
 /home/mhansen/sage-4.2/spkg/build/boehm_gc-7.1.p2/src/cord/cordbscs.c:344:
 undefined reference to `_GC_malloc'
 }}}

 This can be fixed by setting THREADDLLIBS to be empty.

 I'll post an updated spkg here shortly.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7336>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to