chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] CMake cygwin can't do -0


From: John Cowan
Subject: Re: [Chicken-users] CMake cygwin can't do -0
Date: Tue, 1 Aug 2006 19:33:17 -0400
User-agent: Mutt/1.3.28i

Brandon J. Van Every scripsit:

> Please ensure that your /usr/local/bin and /usr/local/lib are free of 
> old exes and libraries,

I zapped all existing Chicken stuff in /usr/local by brute force
before doing "make install".

> and please also build Cygwin from scratch in an
> empty directory using CCMake.

It was empty, although I use "cmake ../darcs" to access my local darcs 
repository
rather than using CCMake (hard to script, CCMake is).  My darcs
directory remains pristine: I copy stuff out of it for autotools builds,
and reference it from CMake for CMake builds.

> As I said, when I do "csi -R srfi-1" I don't get any problems.

Still the same thing.  The problem arises from this hunk:

    +# CMake 2.4.3 can't produce both cygchicken-0.dll and 
libchicken.dll.a[_^M_][_$_]
    +# Currently Autoconf must produce the cygchicken-0.dll 
nomenclature,[_^M_][_$_]
    +# and that name is needed internally by the libraries for things 
to[_^M_][_$_]
    +# work correctly, so we can't ditch it in the source pool.  So 
we[_^M_][_$_]
    +# symlink it here.  This workaround courtesy of John Cowan.[_^M_][_$_]
    +IF(CYGWIN)[_^M_][_$_]
    +  INSTALL(CODE "[_^M_][_$_]
    +    EXECUTE_PROCESS(COMMAND \${CMAKE_COMMAND} -E create_symlink[_^M_][_$_]
    +      
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/libchicken-0.dll.a[_^M_][_$_]
    +      
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/libchicken.dll.a)[_^M_][_$_]
    +    EXECUTE_PROCESS(COMMAND \${CMAKE_COMMAND} -E create_symlink[_^M_][_$_]
    +      
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/libuchicken-0.dll.a[_^M_][_$_]
    +      
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/libuchicken.dll.a)[_^M_][_$_]
    +  ")[_^M_][_$_]
    +ENDIF(CYGWIN)[_^M_][_$_]
    +[_^M_][_$_]
 
Note that you are doing create_symlink.  By my reading of the situation,
you need to be doing copy followed by remove.  Remember that symlinks are
interpreted by Cygwin's library, so Windows (which is doing the dynamic
loading) is exposed to the underlying name "lib(u)chicken-0.dll".

> BTW what Cygwin mirror did you use to obtain CMake 2.4.3 ?  I haven't 
> seen it on the mirrors I've tried.

http://sourceware.tds.mirrors.net, the fastest and best Cygwin (and
Sunfreeware, for those who care) mirror out there.

-- 
You escaped them by the will-death              John Cowan
and the Way of the Black Wheel.                 address@hidden
I could not.  --Great-Souled Sam                http://www.ccil.org/~cowan




reply via email to

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