Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

[perl #112786] build broken under clang++

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perlbug-followup at perl

May 6, 2012, 7:29 AM

Post #1 of 1 (36 views)
Permalink
[perl #112786] build broken under clang++

# New Ticket Created by Craig A. Berry
# Please include the string: [perl #112786]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112786 >


A line of code in sv.c last modified at <http://perl5.git.perl.org/perl.git/commit/c6fb3f6e3e5160581b78d87d4c62f42ef3cc0db5?f=sv.c> causes clang++ to fall down hard when building blead:

sv.c:13969:32: error: unexpected ':' in nested name specifier
CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
^
::
sv.c:13969:34: error: no member named 'Perl_find_runcv' in 'gv'
CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
~~~~ ^
./embed.h:137:24: note: expanded from macro 'find_runcv'
#define find_runcv(a) Perl_find_runcv(aTHX_ a)
^
sv.c:13969:50: error: expected ':'
CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
^
:
sv.c:13969:21: note: to match this '?'
CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
^
sv.c:13969:50: error: expected expression
CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
^
14 warnings and 4 errors generated.
make: *** [sv.o] Error 1


No -V output because I didn't get that far, but I configured with:

% ./Configure -Dcc=clang++ -Dusedevel -des && make

and here's the cranky compiler:

% clang++ --version
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix

________________________________________
Craig A. Berry
mailto:craigberry [at] mac

"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.