Front page | perl.perl5.porters |
Postings from April 2018
[perl #133152] Cygwin build failure with v5.27.11-16-g71e845c342
Thread Previous
|
Thread Next
From:
Tony Cook
Date:
April 25, 2018 00:18
Subject:
[perl #133152] Cygwin build failure with v5.27.11-16-g71e845c342
Message ID:
rt-4.0.24-12021-1524615504-875.133152-75-0@perl.org
# New Ticket Created by Tony Cook
# Please include the string: [perl #133152]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=133152 >
A vanilla build of blead on:
$ uname -a
CYGWIN_NT-6.1 phobos 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64 Cygwin
Fails with:
$ make locale.o
gcc -c -DPERL_CORE -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -std=c89 -O3 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings locale.c
In file included from /usr/include/ssp/stdlib.h:4:0,
from /usr/include/stdlib.h:338,
from perl.h:819,
from locale.c:49:
/usr/include/ssp/wchar.h:78:1: error: conflicting types for ‘fgetws’
__ssp_decl(wchar_t *, fgetws, (wchar_t *__restrict __buf, int __wlen, FILE *__restrict __fp))
^
In file included from locale.c:54:0:
/usr/include/wchar.h:228:10: note: previous declaration of ‘fgetws’ was here
wchar_t *fgetws (wchar_t *__restrict, int, __FILE *__restrict);
^~~~~~
In file included from /usr/include/ssp/stdlib.h:4:0,
from /usr/include/stdlib.h:338,
from perl.h:819,
from locale.c:49:
/usr/include/ssp/wchar.h:86:1: error: conflicting types for ‘fgetws_unlocked’
__ssp_decl(wchar_t *, fgetws_unlocked, (wchar_t *__buf, int __wlen, FILE *__fp))
^
In file included from locale.c:54:0:
/usr/include/wchar.h:261:10: note: previous declaration of ‘fgetws_unlocked’ was here
wchar_t *fgetws_unlocked (wchar_t *__restrict, int, __FILE *__restrict);
^~~~~~~~~~~~~~~
make: *** [GNUmakefile:245: locale.o] Error 1
If I modify locale.c to skip the brokeness that is nostdio.h then
locale.o builds successfully:
tony@phobos ~/dev/perl/git/perl
$ make locale.o
gcc -c -DPERL_CORE -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -std=c89 -O3 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings locale.c
tony@phobos ~/dev/perl/git/perl
$ git diff
diff --git a/locale.c b/locale.c
index 7653340477..f6e946fe15 100644
--- a/locale.c
+++ b/locale.c
@@ -43,6 +43,7 @@
* this end, and is retained, #ifdef'd out.
*/
+#define PERLIO_NOT_STDIO 0
#include "EXTERN.h"
#define PERL_IN_LOCALE_C
#include "perl_langinfo.h"
But POSIX.o fails with the same problem:
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings -DUSEIMPORTLIB -O3 -DVERSION=\"1.84\" -DXS_VERSION=\"1.84\" "-I../.." POSIX.c
In file included from /usr/include/sys/time.h:268:0,
from /usr/include/sys/resource.h:12,
from /usr/include/sys/wait.h:13,
from ../../perl.h:842,
from POSIX.xs:19:
POSIX.xs:1351:7: warning: ‘_tzname’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
char *tzname[] = { "" , "" };
^
POSIX.xs:1351:20: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
char *tzname[] = { "" , "" };
^~
POSIX.xs:1351:25: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
char *tzname[] = { "" , "" };
^~
In file included from /usr/include/ssp/stdlib.h:4:0,
from /usr/include/stdlib.h:338,
from ../../perl.h:819,
from POSIX.xs:19:
/usr/include/ssp/wchar.h:78:1: error: conflicting types for ‘fgetws’
__ssp_decl(wchar_t *, fgetws, (wchar_t *__restrict __buf, int __wlen, FILE *__restrict __fp))
^
In file included from POSIX.c:4457:0:
/usr/include/wchar.h:228:10: note: previous declaration of ‘fgetws’ was here
wchar_t *fgetws (wchar_t *__restrict, int, __FILE *__restrict);
^~~~~~
In file included from /usr/include/ssp/stdlib.h:4:0,
from /usr/include/stdlib.h:338,
from ../../perl.h:819,
from POSIX.xs:19:
/usr/include/ssp/wchar.h:86:1: error: conflicting types for ‘fgetws_unlocked’
__ssp_decl(wchar_t *, fgetws_unlocked, (wchar_t *__buf, int __wlen, FILE *__fp))
^
In file included from POSIX.c:4457:0:
/usr/include/wchar.h:261:10: note: previous declaration of ‘fgetws_unlocked’ was here
wchar_t *fgetws_unlocked (wchar_t *__restrict, int, __FILE *__restrict);
^~~~~~~~~~~~~~~
POSIX.xs: In function ‘XS_POSIX_cuserid’:
POSIX.xs:3712:12: warning: implicit declaration of function ‘cuserid’ [-Wimplicit-function-declaration]
RETVAL = cuserid(s);
^~~~~~~
POSIX.xs:3712:10: warning: assignment makes pointer from integer without a cast -Wint-conversion]
RETVAL = cuserid(s);
^
POSIX.xs: In function ‘my_rint’:
POSIX.xs:1082:1: warning: control reaches end of non-void function [-Wreturn-typ ]
}
^
make[1]: *** [Makefile:335: POSIX.o] Error 1
make[1]: Leaving directory '/home/tony/dev/perl/git/perl/ext/POSIX'
Unsuccessful make(ext/POSIX): code=512 at make_ext.pl line 570.
make: *** [GNUmakefile:585: lib/auto/POSIX/POSIX.dll] Error 2
Tony
$ ./miniperl -Ilib -V
Summary of my perl5 (revision 5 version 28 subversion 0) configuration:
Derived from: 71e845c3420f2496b845cf717d584dcaa063f4bf
Platform:
osname=cygwin
osvers=2.10.0(0.32553)
archname=cygwin-thread-multi
uname='cygwin_nt-6.1 phobos 2.10.0(0.32553) 2018-02-02 15:16 x86_64 cygwin '
config_args='-des -Dusedevel'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='gcc'
ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2'
optimize='-O3'
cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong'
ccversion=''
gccversion='6.4.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='g++'
ldflags =' -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../lib/../include/w32api /usr/local/lib /lib
libs=-lpthread -ldl
perllibs=-lpthread -ldl
libc=/usr/lib/libc.a
so=dll
useshrplib=true
libperl=cygperl5_28_0.dll
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=dll
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_EXTERNAL_GLOB
PERL_IMPLICIT_CONTEXT
PERL_IS_MINIPERL
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_DEVEL
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
USE_SITECUSTOMIZE
Built under cygwin
Compiled at Apr 25 2018 10:01:22
@INC:
/home/tony/dev/perl/git/perl/cpan/AutoLoader/lib
/home/tony/dev/perl/git/perl/dist/Carp/lib
/home/tony/dev/perl/git/perl/dist/PathTools
/home/tony/dev/perl/git/perl/dist/PathTools/lib
/home/tony/dev/perl/git/perl/cpan/ExtUtils-Install/lib
/home/tony/dev/perl/git/perl/cpan/ExtUtils-MakeMaker/lib
/home/tony/dev/perl/git/perl/cpan/ExtUtils-Manifest/lib
/home/tony/dev/perl/git/perl/cpan/File-Path/lib
/home/tony/dev/perl/git/perl/ext/re
/home/tony/dev/perl/git/perl/dist/Term-ReadLine/lib
/home/tony/dev/perl/git/perl/dist/Exporter/lib
/home/tony/dev/perl/git/perl/ext/File-Find/lib
/home/tony/dev/perl/git/perl/cpan/Text-Tabs/lib
/home/tony/dev/perl/git/perl/dist/constant/lib
/home/tony/dev/perl/git/perl/cpan/version/lib
/home/tony/dev/perl/git/perl/lib
.
Thread Previous
|
Thread Next