From: Frank Brendel <Frank.Brendel@eurolog.com>
To: pgsql-admin@postgresql.org
Subject: Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
Date: Fri, 28 Jan 2011 09:54:05 +0100
Message-ID: <55FFF8CD182C864DA8F1C9BA0D63AB8006F251@elomail.eurolog.com> (raw)
In-Reply-To: <19278.1296149115@sss.pgh.pa.us>
References: <55FFF8CD182C864DA8F1C9BA0D63AB8006F250@elomail.eurolog.com>
<19278.1296149115@sss.pgh.pa.us>
Hi Tom,
thanks for this really fast reply.
I've removed the line
#include <asm/ia64regs.h>
and it compiles now.
The function __getReg(_IA64_REG_AR_BSP) In postgres.c seems to be called
only on Intel compilers.
And I see in asm/ia64regs.h (found on a Linux box)
#define _IA64_REG_AR_BSP 3089
in a section
/*
* Register Names for getreg() and setreg().
*
* The "magic" numbers happen to match the values used by the Intel
compiler's
* getreg()/setreg() intrinsics.
*/
So I assume asm/ia64regs.h is only needed for Intel compilers on Linux.
Since this is not the default behavior are there any concerns to install
this version into production?
I'm thinking of stability or future updates.
Many thanks
Frank
Am 27.01.2011 18:25, schrieb Tom Lane:
> "Frank Brendel"<Frank.Brendel@eurolog.com> writes:
>> I can't compile PostgreSQL 9.0.2 on FreeBSD 8.1 for IA64.
>> The error message is
>> postgres.c:2998:26: error: asm/ia64regs.h: No such file or directory
> Hmm, the need for that header file is a very recent addition. I'm not
> very surprised to hear of portability issues around it. What you need
> to look into is what's needed to compile this patch:
> http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=ba007262a7661234588b1ebe297e3a95924...
>
> If you're using gcc it's quite possible you don't need the header file
> at all --- try just diking it out. Please report back.
>
> regards, tom lane
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: Frank.Brendel@eurolog.com
Subject: Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
In-Reply-To: <55FFF8CD182C864DA8F1C9BA0D63AB8006F251@elomail.eurolog.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox