pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
asm/ia64regs.h not found on FreeBSD 8.1 IA64
8+ messages / 3 participants
[nested] [flat]

* asm/ia64regs.h not found on FreeBSD 8.1 IA64
@ 2011-01-27 17:03 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 8+ messages in thread

From: Frank Brendel @ 2011-01-27 17:03 UTC (permalink / raw)
  To: pgsql-admin

Hi list,

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

There is no ia64regs.h in the file system. I guess this is a Linux 
header file.

Do I have to install some additional ports?


Many thanks
Frank



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
@ 2011-01-27 17:25 ` Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-27 17:40   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
  2011-01-28 08:54   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Tom Lane @ 2011-01-27 17:25 UTC (permalink / raw)
  To: Frank Brendel <Frank.Brendel@eurolog.com>; +Cc: pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-01-27 17:40   ` ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
  2011-01-27 17:52     ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 8+ messages in thread

From: ๏̯͡๏ Guido Barosio @ 2011-01-27 17:40 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Frank Brendel <Frank.Brendel@eurolog.com>; pgsql-admin

FYI the url returned 404

"404 - No such project "

gb.-

On Thu, Jan 27, 2011 at 2:25 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "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
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-27 17:40   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
@ 2011-01-27 17:52     ` Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-27 18:37       ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Tom Lane @ 2011-01-27 17:52 UTC (permalink / raw)
  To: ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>; +Cc: Frank Brendel <Frank.Brendel@eurolog.com>; pgsql-admin

=?UTF-8?B?4LmPzK/NoeC5jyBHdWlkbyBCYXJvc2lv?= <gbarosio@gmail.com> writes:
> FYI the url returned 404
> "404 - No such project "

Really?  Works for me.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-27 17:40   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
  2011-01-27 17:52     ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-01-27 18:37       ` ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
  0 siblings, 0 replies; 8+ messages in thread

From: ๏̯͡๏ Guido Barosio @ 2011-01-27 18:37 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Frank Brendel <Frank.Brendel@eurolog.com>; pgsql-admin

This one works fine:

http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;

gb.-

On Thu, Jan 27, 2011 at 2:52 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> =?UTF-8?B?4LmPzK/NoeC5jyBHdWlkbyBCYXJvc2lv?= <gbarosio@gmail.com> writes:
>> FYI the url returned 404
>> "404 - No such project "
>
> Really?  Works for me.
>
>                        regards, tom lane
>



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-01-28 08:54   ` Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-28 15:17     ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 8+ messages in thread

From: Frank Brendel @ 2011-01-28 08:54 UTC (permalink / raw)
  To: pgsql-admin

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
>



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-28 08:54   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
@ 2011-01-28 15:17     ` Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-28 15:27       ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Tom Lane @ 2011-01-28 15:17 UTC (permalink / raw)
  To: Frank Brendel <Frank.Brendel@eurolog.com>; +Cc: pgsql-admin

"Frank Brendel" <Frank.Brendel@eurolog.com> writes:
> I've removed the line
> #include <asm/ia64regs.h>
> and it compiles now.

OK, thanks for confirming that.

> Since this is not the default behavior are there any concerns to install 
> this version into production?

No, it will be the default behavior come Monday ;-)
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=67dbe720f6ba18393cd85574718aa2683b7...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64
  2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-27 17:25 ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-28 08:54   ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
  2011-01-28 15:17     ` Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-01-28 15:27       ` Frank Brendel <Frank.Brendel@eurolog.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Frank Brendel @ 2011-01-28 15:27 UTC (permalink / raw)
  To: pgsql-admin

Cool!

Thanks a lot!
Frank


Am 28.01.2011 16:17, schrieb Tom Lane:
> "Frank Brendel"<Frank.Brendel@eurolog.com>  writes:
>> I've removed the line
>> #include<asm/ia64regs.h>
>> and it compiles now.
> OK, thanks for confirming that.
>
>> Since this is not the default behavior are there any concerns to install
>> this version into production?
> No, it will be the default behavior come Monday ;-)
> http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=67dbe720f6ba18393cd85574718aa2683b7...
>
> 			regards, tom lane



^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2011-01-28 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27 17:03 asm/ia64regs.h not found on FreeBSD 8.1 IA64 Frank Brendel <Frank.Brendel@eurolog.com>
2011-01-27 17:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-01-27 17:40   ` ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
2011-01-27 17:52     ` Tom Lane <tgl@sss.pgh.pa.us>
2011-01-27 18:37       ` ๏̯͡๏ Guido Barosio <gbarosio@gmail.com>
2011-01-28 08:54   ` Frank Brendel <Frank.Brendel@eurolog.com>
2011-01-28 15:17     ` Tom Lane <tgl@sss.pgh.pa.us>
2011-01-28 15:27       ` Frank Brendel <Frank.Brendel@eurolog.com>

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