Welcome to the CHICKEN Scheme pasting service

mingw xcompile added by utz on Sat Apr 9 14:07:54 2022

$ cat t_basic.scm
(import scheme chicken.base)

(print "hello")


$ $CHICKENS/5.3.0.cross/bin/mingw-csc -v -static t_basic.scm
'/home/heinz/chickens/5.3.0.cross/bin/mingw-chicken' 't_basic.scm' -output-file 't_basic.c' -static -verbose -emit-link-file t_basic.link
'x86_64-w64-mingw32-gcc' 't_basic.c' -o 't_basic.o' -c  -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -I/home/heinz/chickens/5.3.0.mingw/include/chicken
rm t_basic.c
'x86_64-w64-mingw32-gcc' 't_basic.o' -o 't_basic' -L/home/heinz/chickens/5.3.0.mingw/lib -Wl,-rpath=/home/heinz/chickens/5.3.0.mingw/lib /home/heinz/chickens/5.3.0.mingw/lib/libchicken.a -lm -lws2_32
rm t_basic.o


$ file t_basic.exe
t_basic.exe: PE32+ executable (console) x86-64, for MS Windows


$ wine64 t_basic.exe
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
0024:err:unwind:RtlUnwindEx invalid frame 0000000000220008 (0000000000022000-0000000000220000)
hello


Win10 error report:

Faulting application name: t_basic.exe, version: 0.0.0.0, time stamp: 0x625167b5
Faulting module name: ntdll.dll, version: 10.0.17763.348, time stamp: 0xca65c822
Exception code: 0xc0000028
Fault offset: 0x000000000009ea88
Faulting process id: 0x19a8
Faulting application start time: 0x01d84c04e89d353f
Faulting application path: C:\Users\IEUser\Documents\t_basic.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 2bc35ea4-ad64-408b-8703-6c67f5f32839
Faulting package full name:
Faulting package-relative application ID: %

(Exn code 0xc0000028 = STATUS_BAD_STACK)

$ x86_64-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-w64-mingw32/11.1.0/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../gcc-11.1.0/configure --prefix=/usr --with-sysroot=/usr/x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-werror --disable-nls --disable-multilib --disable-gcov --disable-libcc1 --enable-lto --enable-shared --enable-static --enable-threads=posix --with-system-zlib --enable-languages=c,c++,lto
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.0 (GCC)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Proper ... recursion is required by the Scheme specification.
Visually impaired? Let me spell it for you (wav file) download WAV