develooper Front page | perl.perl5.porters | Postings from April 2023

Re: [perl #134375] When running Configure, clang and clang++ producedifferent results

Thread Previous
From:
perl5
Date:
April 29, 2023 13:54
Subject:
Re: [perl #134375] When running Configure, clang and clang++ producedifferent results
Message ID:
20230429155342.2eaeac46@pc09
On Thu, 22 Aug 2019 11:51:54 -0400, Andy Dougherty <doughera@lafayette.edu> wrote:

1346 days passed by (3 y, 8 m, 7 d)

Is this something that still needs attention?

If you have work in a usable state, can I get it to finish it?

> On Sun, Aug 18, 2019 at 08:04:43AM -0700, James E Keenan (via RT) wrote:
> > # New Ticket Created by  James E Keenan 
> > # Please include the string:  [perl #134375]
> > # in the subject line of all future correspondence about this issue. 
> > # <URL: https://rt.perl.org/Ticket/Display.html?id=134375 >
> > 
> > 
> > [The following is probably relevant to 
> > https://rt.perl.org/Ticket/Display.html?id=134371, but I'm filing it 
> > separately as it may be a more general problem.]
> > 
> > When I select '-Dcc=clang++', as distinct from '-Dcc=clang', ./Configure 
> > produces different results.  This difference appears to be independent 
> > of both operating system and other configuration options.  
> 
> > Is this a bug in clang++?  Or is it a bug in ./Configure?  
> 
> It is a bug in Configure.  The 'checkit()' program is declared to return
> an integer, but actually returns nothing.  (The return value is never used.)
> This is undefined behavior in C++, but apparently not in C.  See
>     https://bugs.llvm.org/show_bug.cgi?id=43075
> for a simple test case and explanation.
> 
> There are probably other such C vs. C++ bugs in Configure, including 
> possibly the detection of 
> 
>     d_futimes
>     d_lchown
>     d_strtoll
>     d_strtoul
>     d_strtoull
>     d_strtouq
> 
> I will leave this bug open as I work on those.  Thank you for noticing 
> this issue in the first place!
> 


-- 
H.Merijn Brand  https://tux.nl   Perl Monger   http://amsterdam.pm.org/
using perl5.00307 .. 5.37        porting perl5 on HP-UX, AIX, and Linux
https://tux.nl/email.html http://qa.perl.org https://www.test-smoke.org
                           

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About