Re: BUG #3818: Cross compilation problems

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Richard Evans <richard(dot)evans(at)blueallegro(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3818: Cross compilation problems
Date: 2008-03-18 17:55:39
Message-ID: 200803181755.m2IHtdD11784@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Richard, would you send us patches for the cross compile variables you
needed changed? Thanks.

---------------------------------------------------------------------------

Richard Evans wrote:
>
> The following bug has been logged online:
>
> Bug reference: 3818
> Logged by: Richard Evans
> Email address: richard(dot)evans(at)blueallegro(dot)net
> PostgreSQL version: 8.3beta
> Operating system: Linux/windows
> Description: Cross compilation problems
> Details:
>
> I've been investigating cross-compiling for mingw32 on a linux build system.
> I used the current snapshot since it has a fix for the gettimeofday problem
> with new mingw installs.
>
> Mostly it worked, but there were a few problems which I think can all be
> fixed in the configure script:
>
> 1. The configure script does not check for cross-compile installs of ar,
> dlltool, dllwrap and windres. It manages to find the cross compile gcc
> (mingw32-gcc in my install), but does not check for mingw32-dlltool, etc.
> You work round this by setting AR= DLLTOOL= and DLLWRAP= on the make line
> but ideally it should be done in the configure stage.
>
> 2. The Makefile in pgevent/bin refers to dllwrap directly, not $(DLLWRAP).
>
> 3. Several makefiles use windres directly; there is no $(WINDRES) variable
> which can be set.
>
> 4. The zic problem in make install - see bug #1311. Simple solution here is
> to have a configure option which allows the use of the build systems own zic
> command.
>
> I may try coming up with some patches to configure to check for dlltool, etc
> but I haven't edited configure files before.
>
> Once I worked round these problems I was able to cross compile a working
> postgres for mingw32 on a linux host.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2008-03-18 18:24:57 Re: BUG #4043: Unrecognized node type: using plpgsql
Previous Message Reinier Suurenbroek 2008-03-18 16:38:42 BUG #4043: Unrecognized node type: using plpgsql