unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Rainer Tammer <tammer@tammer.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-guile@gnu.org
Subject: Re: stack overflow / partial success
Date: Mon, 18 Feb 2008 10:56:52 +0100	[thread overview]
Message-ID: <47B95664.4070007@tammer.net> (raw)
In-Reply-To: <87ve4mu0ig.fsf@gnu.org>

Hello,

Ludovic Courtès wrote:
> Hi,
> [...]
>   
>>> Isn't it the `inline' thing that made it work?  You did not include
>>> `config.log' and `config.h': normally, these should already define
>>> `inline' as `__inline__'.
>>>   
>>>       
>> the inline to __inline__  mapping is needed for IBM XL C/C++. It is
>> not needed with gcc 4.2.2.
>>     
>
> Right, but doesn't `configure' detect this?  The output of
> "grep inline config.log" should show it.
>
>   
Unfortunately no ...
>>> And isn't `-O2' ignored by xlc?
>>>
>>>       
>> It is used if I specify it. I will try if configure finds this by itself.
>>     
>
> But what's its meaning then?  I thought `-qtune=auto' was roughly
> equivalent to GCC's `-O2'.
>
>   
Not really:

-qtune=<option> Specifies the architecture system for which the 
executable program is optimized.
Possible values: 403, 604, auto, balanced, ppc970, pwr3, pwr4, pwr5, 
pwr6, rs64a, rs64b, rs64c

auto is: Object code optimized for the hardware platform on which the 
program is compiled.
So this option only specifies the platform.

-O<level> specifies the optimizations used:

0 = quick
2 = Performs optimizations that the compiler developers considered the 
best combination for compilation speed and runtime performance.
3... 5 are potentially dangerous as the have the potential to change the 
semantics of the program
>> -brtl is for runtime linking of the executable.
>>     
> So what does it do precisely?  :-)
>   
OK, you want to know:

The -brtl dos the following:

Enables run-time linking for the output file. This option implies the 
rtllib and symbolic options.
When dynamic mode is in effect, the rtl option allows input files 
specified with the -l flag to end
 in .so as well as in .a. All input files that are shared objects are 
listed as dependents of your
program in the output files loader section. The shared objects are 
listed in the same order as
they were specified on the command line.

If you like more information I can send you a couple documents with 
detailed explanations.

>> So if I need herror() / hsterror() I need to define _USE_IRS ...
>>     
>
> There's only one place where `hstrerror ()' is used, and it's enclosed
> in `#if HAVE_STRERROR'. 
Unfortunately HAVE_STRERROR is defined to 1 ...
> Thus, if Guile is compiled without `_USE_IRS', the offending bit will be compiled out and no compilation error will
> occur I suppose.  IOW, you should be able to compile Guile without `_USE_IRS', right?
>
>   
No, because HAVE_STRERROR gets defined. The easiest solution wold be to 
define _USE_IRS if  HAVE_STRERROR and AIX is defined.
>>>   1. (strftime "%z" (gmtime 0))
>>>   
>>>       
>> guile> "GMT"
>>     
>
> The results you show here are vastly different from what we expect,
> which shows that AIX' `strftime' is not C99-compliant in its treatment
> of `%z' [0].  (Actually, it doesn't seem to be documented at all [1].)
>
> We'll have to update `have-strftime-%z' accordingly in `time.test'.
>
>   
OK
> Thanks,
> Ludovic.
>
> [0] http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html
> [1] http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.basetechref/doc/basetrf2/strftime.htm
>
>
>
>   
Bye
  Rainer





  reply	other threads:[~2008-02-18  9:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13  8:22 stack overflow Rainer Tammer
2008-02-13  9:05 ` Ludovic Courtès
2008-02-13  9:15   ` Ludovic Courtès
2008-02-13 11:46     ` Rainer Tammer
2008-02-13 12:49       ` Ludovic Courtès
2008-02-14  7:36         ` stack overflow / partial success Rainer Tammer
2008-02-14  8:38           ` Ludovic Courtès
2008-02-18  6:11             ` Rainer Tammer
2008-02-18  8:33               ` Ludovic Courtès
2008-02-18  9:56                 ` Rainer Tammer [this message]
2008-02-18 10:37                   ` Ludovic Courtès
2008-02-18 14:00                     ` Rainer Tammer
2008-02-18 14:11                       ` Ludovic Courtès
2008-02-19  7:15                         ` Rainer Tammer
2008-02-19 21:53                           ` Ludovic Courtès
2008-02-20  8:18                             ` Rainer Tammer
2008-02-20  9:28                             ` Rainer Tammer
2008-02-20 14:40                             ` GUILE 1.8.4 on AIX 6.1 Rainer Tammer
     [not found]         ` <87wsp83807.fsf@ossau.uklinux.net>
     [not found]           ` <871w7fore8.fsf@gnu.org>
     [not found]             ` <66e540fe0802140226k3cd96c46x286ac753bbb2b8b7@mail.gmail.com>
     [not found]               ` <87ejbfg4pr.fsf@gnu.org>
     [not found]                 ` <66e540fe0802140339n2121e1d9y85fcc9f019d8be0f@mail.gmail.com>
2008-02-25 21:52                   ` stack overflow Neil Jerram
2008-07-16 12:34                     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B95664.4070007@tammer.net \
    --to=tammer@tammer.net \
    --cc=bug-guile@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).