guile-devel
[Top][All Lists]
Advanced

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

Re: Portability fixes for win32 cross compiling


From: Volker Grabsch
Subject: Re: Portability fixes for win32 cross compiling
Date: Wed, 21 Apr 2010 22:22:48 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Volker Grabsch <address@hidden> schrieb:
> Or, what about changing the generated code? Why does the generator
> have to determine a number to be written into the generated code?
> Instead, the generated "scmconfig.h" could contain code like this:
> 
>     #include <uniconv.h>
> 
>     ...
> 
>     #define SCM_ICONVEH_ERROR iconveh_error

Okay, I just implemented that approach and it seems to work fine.
There were several other issues I had to fix. Please have a look
at the attached patches (6 in total). All of them seem to be needed
to cross-compile guile for mingw32.

In the end, I'm struck with the following error that I don't
know how to fix.

It would be great if you could have a look at my patches, and if
you could either include them, or tell me what's wrong with them.


-------------------------------------------------------------------
i686-pc-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. 
-I../lib -I../lib -I/.../i686-pc-mingw32/lib/libffi-3.0.9/include 
-I/.../i686-pc-mingw32/include -I/.../i686-pc-mingw32/include -Wall 
-Wmissing-prototypes -Wdeclaration-after-statement -Wundef -Wswitch-enum 
-fvisibility=hidden -I/.../i686-pc-mingw32/include -g -O2 -MT 
libguile_2.0_la-foreign.lo -MD -MP -MF .deps/libguile_2.0_la-foreign.Tpo -c 
foreign.c -o libguile_2.0_la-foreign.o
foreign.c: In function 'scm_foreign_to_bytevector':
foreign.c:252: error: 'SCM_FOREIGN_TYPE_void' undeclared (first use in this 
function)
foreign.c:252: error: (Each undeclared identifier is reported only once
foreign.c:252: error: for each function it appears in.)
foreign.c: In function 'scm_foreign_set_finalizer_x':
foreign.c:371: error: 'SCM_FOREIGN_TYPE_void' undeclared (first use in this 
function)
foreign.c: In function 'scm_make_foreign_function':
foreign.c:678: error: 'SCM_FOREIGN_TYPE_void' undeclared (first use in this 
function)
foreign.c: In function 'scm_i_foreign_call':
foreign.c:993: warning: implicit declaration of function 'alloca'
foreign.c:993: warning: incompatible implicit declaration of built-in function 
'alloca'
make[3]: *** [libguile_2.0_la-foreign.lo] Error 1
make[3]: Leaving directory `/home/vog/mingw-cross-env/Guile/guile/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vog/mingw-cross-env/Guile/guile/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vog/mingw-cross-env/Guile/guile'
make: *** [all] Error 2
-------------------------------------------------------------------


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR

Attachment: 0001-add-pdcurses-to-the-list-of-termlibs.patch
Description: Text Data

Attachment: 0002-don-t-run-the-pthread_att_get_stack-check-when-cross.patch
Description: Text Data

Attachment: 0003-fix-gen-scmconfig-for-cross-compiling.patch
Description: Text Data

Attachment: 0004-remove-an-unused-and-dangling-include-directive.patch
Description: Text Data

Attachment: 0005-don-t-fail-when-HAVE_STAT64-is-undefined.patch
Description: Text Data

Attachment: 0006-disable-thread-redirects-of-bdw-gc.patch
Description: Text Data


reply via email to

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