develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123831] 5.21.8 fails compiling with icc

Thread Previous
From:
Jens Rehsack
Date:
February 14, 2015 18:39
Subject:
[perl #123831] 5.21.8 fails compiling with icc
Message ID:
rt-4.0.18-11878-1423911951-982.123831-75-0@perl.org
# New Ticket Created by  Jens Rehsack 
# Please include the string:  [perl #123831]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123831 >



This is a bug report for perl from rehsack@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.20.1.


-----------------------------------------------------------------
[Please describe your issue here]

To prove my XS code with additional compilers, I retry compiling dev-perl using icc.
I hoped get improved results since 44b62df7 ...

Unfortunately, I got:
icc -c -DPERL_CORE -fno-common -DPERL_DARWIN -O3 util.c
util.c(4556): warning #69: integer conversion resulted in truncation
      u += SEED_C5 * (U32)PTR2UV(&when);
                     ^

icc -c -DPERL_CORE -fno-common -DPERL_DARWIN -O3 sv.c
sv.c(3162): error: expression must be an integral constant expression
                      SNPRINTF_G(SvNVX(sv), s, SvLEN(sv), NV_DIG);
                      ^

sv.c(11300): error: expression must be an integral constant expression
                          SNPRINTF_G(nv, ebuf, size, digits);
                          ^

sv.c(12284): error: expression must be an integral constant expression
                      SNPRINTF_G(fv, PL_efloatbuf, PL_efloatsize, precis);
                      ^

compilation aborted for sv.c (code 2)


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl 5.20.1:

Configured by sno at Mon Dec  8 12:39:24 CET 2014.

Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=13.4.0, archname=darwin-2level
    uname='darwin ernie.muppets.liwing.de 13.4.0 darwin kernel version 13.4.0: sun aug 17 19:50:11 pdt 2014; root:xnu-2422.115.4~1release_x86_64 x86_64 '
    config_args='-de -Dprefix=/Users/sno/perl5/perlbrew/perls/perl-5.20.1 -Aeval:scriptdir=/Users/sno/perl5/perlbrew/perls/perl-5.20.1/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector'
    ccversion='', gccversion='4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector'
    libpth=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -fstack-protector'


---
@INC for perl 5.20.1:
    /Users/sno/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/darwin-2level
    /Users/sno/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1
    /Users/sno/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/darwin-2level
    /Users/sno/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1
    .

---
Environment for perl 5.20.1:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/sno
    LANG=de_DE.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/sno/perl5/perlbrew/bin:/Users/sno/perl5/perlbrew/perls/perl-5.20.1/bin:/Users/sno/bin:/opt/pkg/bin:/opt/pkg/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
    PERLBREW_BASHRC_VERSION=0.54
    PERLBREW_HOME=/Users/sno/.perlbrew
    PERLBREW_MANPATH=/Users/sno/perl5/perlbrew/perls/perl-5.20.1/man
    PERLBREW_PATH=/Users/sno/perl5/perlbrew/bin:/Users/sno/perl5/perlbrew/perls/perl-5.20.1/bin
    PERLBREW_PERL=perl-5.20.1
    PERLBREW_ROOT=/Users/sno/perl5/perlbrew
    PERLBREW_VERSION=0.64
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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