[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Problems building on Cygwin64
From: |
John Cowan |
Subject: |
Re: [Chicken-users] Problems building on Cygwin64 |
Date: |
Tue, 29 Apr 2014 12:23:36 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Colin Coates scripsit:
> Please can anyone offer me some help with getting started?
The first step is to patch Makefile.cygwin to define ARCH
using the config-arch.sh script, thus:
--- Makefile.cygwin.orig 2014-04-18 13:09:05.398891100 -0400
+++ Makefile.cygwin 2014-04-18 13:09:26.715110300 -0400
@@ -33,7 +33,7 @@
# platform configuration
-ARCH ?= x86
+ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh)
HACKED_APPLY ?= 1
DLLSINPATH = 1
That's more reliable than setting ARCH yourself.
Then you need to change the #ifndef in apply-hack.x86-64.S to suppress
the .type declaration on non-ELF platforms, which include both Apple
and Cygwin64, thus:
--- apply-hack.x86-64.S.orig 2014-04-18 13:12:09.893443600 -0400
+++ apply-hack.x86-64.S 2014-04-20 15:40:43.025428300 -0400
@@ -28,7 +28,7 @@
.text
.globl _C_do_apply_hack
-#ifndef __APPLE__
+#if defined(__ELF__)
.type _C_do_apply_hack, @function
#endif
But after that you still get a linkage failure, so you are on your own.
Right now there are enough other packages that Cygwin64 doesn't support
that I decided to revert to Cygwin32, which works fine even on Woe64.
--
John Cowan http://www.ccil.org/~cowan address@hidden
The penguin geeks is happy / As under the waves they lark
The closed-source geeks ain't happy / They sad cause they in the dark
But geeks in the dark is lucky / They in for a worser treat
One day when the Borg go belly-up / Guess who wind up on the street.