delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/09/22/22:56:04

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 23 Sep 2014 04:54:53 +0200
From: Kai-Martin Knaak <kmk AT familieknaak DOT de>
To: <geda-user AT delorie DOT com>
Subject: [geda-user] Banging my head against the guile-for-windows wall
Message-ID: <20140923045453.56dc3de2@akka>
X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-pc-linux-gnu)
Disposition-Notification-To: Kai-Martin Knaak <kmk AT familieknaak DOT de>
MIME-Version: 1.0
X-Provags-ID: V02:K0:wEGUNx5HBPcN1x30688GhWoWCWzuOjNS9TzzC/8a8zR
lbmhgeVeA9rj4684Sd/MKzPBbmEiFy0VhlcM0qUwZzZcJdfBqt
nKvwPUw62xiSmVb3QJkAJH2GcHQAljx8QJftu+pJ0nS0tAF4ks
A2/jzfEWzJED7Pnk6vL4/DZoKnwpu2ASpifXe0vrLwX3p6KsLn
6hMOvufbUVb50aD136Zbk4s58qWvUt/c5FzCkThbOD/0S3av1a
XRdJvRbp5Y5jQ05vQ3FJlrP5CssSA0BMn6KSVsNnR2mL8wo099
LwAGrRjV1SHFv8Hm5LDOyNTjIj991fnYYMKfU5rEkQNUxDqIA=
=
X-UI-Out-Filterresults: notjunk:1;
Reply-To: geda-user AT delorie DOT com

--Sig_/JoNv_=tV6g9EivWVl2g2NRF
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi guys.=20
You may remember that there is no current windows version of geda-gaf.
I'd really like to see some of the improvements of the last years in
the windows version too. So I keep trying. The road block is the
dependence on guile 2. Unfortunately, minipack and MXE both only support
guile 1.8 out of the box. Last weekend I decided to give MXE a shot
(again).=20

So this is what I did:

1) git cloned the current master branch of MXE

2) build the environment with
make gcc

3) bumped the version in guile.mk :

/----------------
PKG             :=3D guile
#$(PKG)_IGNORE   :=3D 2%
$(PKG)_VERSION  :=3D 2.0.11
$(PKG)_CHECKSUM :=3D ae86544b39048a160f4db1c0653a79b40b6c1ee6
(...)
define $(PKG)_BUILD
(...)
    '$(TARGET)-gcc' \
        -W -Wall -disable-Werror -ansi -pedantic \
        '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-guile.exe' \
        `'$(TARGET)-pkg-config' guile-$(call SHORT_PKG_VERSION,$(PKG))
--cflags --libs` \ -DGUILE_MAJOR_MINOR=3D\"$(call
SHORT_PKG_VERSION,$(PKG))\" endef
\----------------

In addition I added "-disable-Werror". The original "-Werror" flag made
the build process exit at the config stage. It complained about the
type "long long", which allegedly is not supported in c90.

With this flag warnings are ignored and the build declares success.

However, I get immediate segfault if I start the resulting guile.exe with
wine32. This should bring up a simple command line environment. Instead,
I get:
/----------------------------
/usr/local/src/minipack/result/bin$ wine32 guile.exe=20
wine: Unhandled page fault on read access to 0x0000001d at address
0x709ca8eb (thread 0040), starting debugger... Unhandled exception: page
fault on read access to 0x0000001d in 32-bit code (0x709ca8eb). Register
dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:709ca8eb ESP:004327c0 EBP:00000015 EFLAGS:00010202(  R- --  I   - -
- ) EAX:00c7ffc0 EBX:709c2760 ECX:00000004 EDX:00000000
 ESI:00000000 EDI:00000000
(...)
00000022 (D) Z:\usr\local\src\minipack\result\bin\guile.exe
	00000033    0
	00000032    0
	00000021    0
	0000002e    0 <=3D=3D
\------------------------------

I am lost here. How would I debug this? Any lead? Would gdb be an option?
What would be the most likely culprit?

---<)kaimartin(>---
PS: My host system is on Debian/testing/jessie, fairly recently updated.
PPS: The main text of this post went to the MXE list, too. Maybe some of
the devs there points me to the right direction.
--=20
Kai-Martin Knaak

--=20
Kai-Martin Knaak

--Sig_/JoNv_=tV6g9EivWVl2g2NRF
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlQg4QMACgkQt9RkiGwLn1OTrgCfYbwf3x+KIfW97mpp/QeD7O1Y
yBYAnAlwUZHXVxh6m99r9fyUPa9F1Wc8
=HbCW
-----END PGP SIGNATURE-----

--Sig_/JoNv_=tV6g9EivWVl2g2NRF--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019