Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.91k stars 542 forks source link

Error when compiling perl on windows 8.1 in lib\unicore\mktables #16402

Closed p5pRT closed 6 years ago

p5pRT commented 6 years ago

Migrated from rt.perl.org#132802 (status was 'rejected')

Searchable as RT132802$

p5pRT commented 6 years ago

From maxpucci@virgilio.it

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.--- Flags​:     category=core     severity=low


This perlbug was built using Perl 5.26.1 - Sun Sep 24 05​:36​:07 2017 It is being executed now by  Perl 5.27.9 - Fri Feb  2 11​:07​:37 2018.

Site configuration information for perl 5.27.9​:

Configured by massimo at Fri Feb  2 11​:07​:37 2018.

Summary of my perl5 (revision 5 version 27 subversion 9) configuration​:   Derived from​: 3093cd0531d6e17e80fd45b92f37e51f523b16b2   Platform​:     osname=MSWin32     osvers=6.3.9600     archname=MSWin32-x86-multi-thread     uname=''     config_args='undef'     hint=recommended     useposix=true     d_sigaction=undef     useithreads=define     usemultiplicity=define     use64bitint=undef     use64bitall=undef     uselongdouble=undef     usemymalloc=n     default_inc_excludes_dot=define     bincompat5005=undef   Compiler​:     cc='cl'     ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_WINSOCK_DEPRECATED_NO_WARNINGS -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS'     optimize='-O1 -MD -Zi -DNDEBUG -GL'     cppflags='-DWIN32'     ccversion='19.00.23026'     gccversion=''     gccosandvers=''     intsize=4     longsize=4     ptrsize=4     doublesize=8     byteorder=1234     doublekind=3     d_longlong=undef     longlongsize=8     d_longdbl=define     longdblsize=8     longdblkind=0     ivtype='long'     ivsize=4     nvtype='double'     nvsize=8     Off_t='__int64'     lseeksize=8     alignbytes=8     prototype=define   Linker and Libraries​:     ld='link'     ldflags ='-nologo -nodefaultlib -debug -opt​:ref\,icf -ltcg -libpath​:"c​:\perl\5.27.9\lib\MSWin32-x86-multi-thread\CORE" -machine​:x86 -subsystem​:console\,"5.01"'     libpth="C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\lib"     libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib    version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib vcruntime.lib ucrt.lib     perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib    netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib vcruntime.lib ucrt.lib     libc=ucrt.lib     so=dll     useshrplib=true     libperl=perl527.lib     gnulibc_version=''   Dynamic Linking​:     dlsrc=dl_win32.xs     dlext=dll     d_dlsymun=undef     ccdlflags=' '     cccdlflags=' '     lddlflags='-dll -nologo -nodefaultlib -debug -opt​:ref\,icf -ltcg -libpath​:"c​:\perl\5.27.9\lib\MSWin32-x86-multi-thread\CORE" -machine​:x86 -subsystem​:console\,"5.01"'

Locally applied patches​:     uncommitted-changes


@​INC for perl 5.27.9​:     C​:/Users/massimo/Desktop/prove/perl/lib


Environment for perl 5.27.9​:     HOME (unset)     LANG=IT     LANGUAGE (unset)     LD_LIBRARY_PATH (unset)     LOGDIR (unset)     PATH=C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C​:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\;C​:\Program Files (x86)\MSBuild\14.0\bin;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C​:\Windows\Microsoft.NET\Framework\v4.0.30319;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C​:\Program Files (x86)\HTML Help Workshop;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools;C​:\Program Files (x86)\Windows Kits\8.1\bin\x86;C​:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\;C​:\Windows\system32;C​:\Windows;C​:\Windows\System32\Wbem;C​:\Windows\System32\WindowsPowerShell\v1.0\;C​:\Windows\system32\config\systemprofile\.dnx\bin;C​:\Program Files\Microsoft DNX\Dnvm\;C​:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C​:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C​:\Strawberry\c\bin;C​:\Strawberry\perl\site\bin;C​:\Strawberry\perl\bin;C​:\Program Files (x86)\Vim\vim80;C​:\Program Files\Git\cmd;C​:\Program Files (x86)\nodejs\;C​:\Users\massimo\.dnx\bin;C​:\Users\massimo\AppData\Roaming\npm;C​:\Program Files\Microsoft VS Code\bin     PERL_BADLANG (unset)     SHELL (unset)

p5pRT commented 6 years ago

From @jkeenan

On Fri\, 02 Feb 2018 13​:28​:50 GMT\, maxpucci@​virgilio.it wrote​:

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.

Can you try the following?

1. Fetch the jkeenan/132802-mktables branch from the Perl 5 git repository.

2. Issue the following commands (changing from Unix to Win32 equivalents as needed).

git checkout jkeenan/132802-mktables git clean -dfx ./Configure -des -Dusedevel nmake

3. At the point where nmake fails\, try running this​:

./miniperl -Ilib lib/unicore/mktables -w -C lib/unicore -P pod -maketest -makelist 1>miniperl.output.txt 2>&1

4. On Linux\, if I run 'make' to conclusion then run the command above\, I get output like this​:

##### Finishing processing Unicode properties Compiling Perl properties XXX​: Match_Table|2.0 YYY​: Property 'Present_In'|2.0 XXX​: Match_Table|2.1 YYY​: Property 'Present_In'|2.1 XXX​: Match_Table|3.0 YYY​: Property 'Present_In'|3.0 XXX​: Match_Table|3.1 YYY​: Property 'Present_In'|3.1 XXX​: Match_Table|3.2 YYY​: Property 'Present_In'|3.2 XXX​: Match_Table|4.0 YYY​: Property 'Present_In'|4.0 XXX​: Match_Table|4.1 YYY​: Property 'Present_In'|4.1 XXX​: Match_Table|5.0 YYY​: Property 'Present_In'|5.0 XXX​: Match_Table|5.1 YYY​: Property 'Present_In'|5.1 XXX​: Match_Table|5.2 YYY​: Property 'Present_In'|5.2 XXX​: Match_Table|6.0 YYY​: Property 'Present_In'|6.0 XXX​: Match_Table|6.1 YYY​: Property 'Present_In'|6.1 XXX​: Match_Table|6.2 YYY​: Property 'Present_In'|6.2 XXX​: Match_Table|6.3 YYY​: Property 'Present_In'|6.3 XXX​: Match_Table|7.0 YYY​: Property 'Present_In'|7.0 XXX​: Match_Table|8.0 YYY​: Property 'Present_In'|8.0 XXX​: Match_Table|9.0 YYY​: Property 'Present_In'|9.0 XXX​: Match_Table|10.0 YYY​: Property 'Present_In'|10.0 XXX​: Match_Table|NA Creating Perl synonyms Writing tables Making pod file Making test script Updating 'mktables.lst' #####

That may or may not help with diagnosing this problem.

Thank you very much.

-- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 6 years ago

From maxpucci@virgilio.it

Il Fri\, 02 Feb 2018 05​:28​:50 -0800\, maxpucci@​virgilio.it ha scritto​:

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.--- Flags​:     category=core     severity=low --- This perlbug was built using Perl 5.26.1 - Sun Sep 24 05​:36​:07 2017 It is being executed now by  Perl 5.27.9 - Fri Feb  2 11​:07​:37 2018.

Site configuration information for perl 5.27.9​:

Configured by massimo at Fri Feb  2 11​:07​:37 2018.

Summary of my perl5 (revision 5 version 27 subversion 9) configuration​:   Derived from​: 3093cd0531d6e17e80fd45b92f37e51f523b16b2   Platform​:     osname=MSWin32     osvers=6.3.9600     archname=MSWin32-x86-multi-thread     uname=''     config_args='undef'     hint=recommended     useposix=true     d_sigaction=undef     useithreads=define     usemultiplicity=define     use64bitint=undef     use64bitall=undef     uselongdouble=undef     usemymalloc=n     default_inc_excludes_dot=define     bincompat5005=undef   Compiler​:     cc='cl'     ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_WINSOCK_DEPRECATED_NO_WARNINGS -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS'     optimize='-O1 -MD -Zi -DNDEBUG -GL'     cppflags='-DWIN32'     ccversion='19.00.23026'     gccversion=''     gccosandvers=''     intsize=4     longsize=4     ptrsize=4     doublesize=8     byteorder=1234     doublekind=3     d_longlong=undef     longlongsize=8     d_longdbl=define     longdblsize=8     longdblkind=0     ivtype='long'     ivsize=4     nvtype='double'     nvsize=8     Off_t='__int64'     lseeksize=8     alignbytes=8     prototype=define   Linker and Libraries​:     ld='link'     ldflags ='-nologo -nodefaultlib -debug -opt​:ref\,icf -ltcg -libpath​:"c​:\perl\5.27.9\lib\MSWin32-x86-multi-thread\CORE" -machine​:x86 -subsystem​:console\,"5.01"'     libpth="C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\lib"     libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib    version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib vcruntime.lib ucrt.lib     perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib    netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib vcruntime.lib ucrt.lib     libc=ucrt.lib     so=dll     useshrplib=true     libperl=perl527.lib     gnulibc_version=''   Dynamic Linking​:     dlsrc=dl_win32.xs     dlext=dll     d_dlsymun=undef     ccdlflags=' '     cccdlflags=' '     lddlflags='-dll -nologo -nodefaultlib -debug -opt​:ref\,icf -ltcg -libpath​:"c​:\perl\5.27.9\lib\MSWin32-x86-multi-thread\CORE" -machine​:x86 -subsystem​:console\,"5.01"'

Locally applied patches​:     uncommitted-changes

--- @​INC for perl 5.27.9​:     C​:/Users/massimo/Desktop/prove/perl/lib

--- Environment for perl 5.27.9​:     HOME (unset)     LANG=IT     LANGUAGE (unset)     LD_LIBRARY_PATH (unset)     LOGDIR (unset)     PATH=C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C​:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\;C​:\Program Files (x86)\MSBuild\14.0\bin;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C​:\Windows\Microsoft.NET\Framework\v4.0.30319;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C​:\Program Files (x86)\HTML Help Workshop;C​:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools;C​:\Program Files (x86)\Windows Kits\8.1\bin\x86;C​:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\;C​:\Windows\system32;C​:\Windows;C​:\Windows\System32\Wbem;C​:\Windows\System32\WindowsPowerShell\v1.0\;C​:\Windows\system32\config\systemprofile\.dnx\bin;C​:\Program Files\Microsoft DNX\Dnvm\;C​:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C​:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C​:\Strawberry\c\bin;C​:\Strawberry\perl\site\bin;C​:\Strawberry\perl\bin;C​:\Program Files (x86)\Vim\vim80;C​:\Program Files\Git\cmd;C​:\Program Files (x86)\nodejs\;C​:\Users\massimo\.dnx\bin;C​:\Users\massimo\AppData\Roaming\npm;C​:\Program Files\Microsoft VS Code\bin     PERL_BADLANG (unset)     SHELL (unset)

This is the output of the command .\miniperl -Ilib lib\unicore\mktables -w -C lib\unicore -P pod -maketest -makelist 1>miniperl.output.txt 2>&1​: XXX​: Match_Table|2.0 YYY​: Property 'Present_In'|2.0 XXX​: Match_Table|2.1 YYY​: Property 'Present_In'|2.1 XXX​: Match_Table|3.0 YYY​: Property 'Present_In'|3.0 XXX​: Match_Table|3.1 YYY​: Property 'Present_In'|3.1 XXX​: Match_Table|3.2 YYY​: Property 'Present_In'|3.2 XXX​: Match_Table|4.0 YYY​: Property 'Present_In'|4.0 XXX​: Match_Table|4.1 YYY​: Property 'Present_In'|4.1 XXX​: Match_Table|5.0 YYY​: Property 'Present_In'|5.0 XXX​: Match_Table|5.1 YYY​: Property 'Present_In'|5.1 XXX​: Match_Table|5.2 YYY​: Property 'Present_In'|5.2 XXX​: Match_Table|6.0 YYY​: Property 'Present_In'|6.0 XXX​: Match_Table|6.1 YYY​: Property 'Present_In'|6.1 XXX​: Match_Table|6.2 YYY​: Property 'Present_In'|6.2 XXX​: Match_Table|6.3 YYY​: Property 'Present_In'|6.3 XXX​: Match_Table|7.0 YYY​: Property 'Present_In'|7.0 XXX​: Match_Table|8.0 YYY​: Property 'Present_In'|8.0 XXX​: Match_Table|9.0 YYY​: Property 'Present_In'|9.0 XXX​: Match_Table|10.0 YYY​: Property 'Present_In'|10.0 XXX​: Match_Table|NA

p5pRT commented 6 years ago

From @jkeenan

On Fri\, 02 Feb 2018 13​:28​:50 GMT\, maxpucci@​virgilio.it wrote​:

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.

Also\, do you have any idea as to when you were last able to build perl successfully on this platform?

If so\, you could try bisecting with something like this (assuming you knew that tag v5.27.4 built okay)​: ##### perl Porting/bisect.pl --start=v5.27.4 #####

Thank you very much.

-- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

From maxpucci@virgilio.it

Il Fri\, 02 Feb 2018 15​:42​:25 -0800\, jkeenan ha scritto​:

On Fri\, 02 Feb 2018 13​:28​:50 GMT\, maxpucci@​virgilio.it wrote​:

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.

Also\, do you have any idea as to when you were last able to build perl successfully on this platform?

If so\, you could try bisecting with something like this (assuming you knew that tag v5.27.4 built okay)​: ##### perl Porting/bisect.pl --start=v5.27.4 #####

Thank you very much.

I've done a git reset --hard on the makefile I've used to build perl. Then I've created a new branch and rebuild perl again with\, I think\, the same modifications in the makefile. Now the compilation seems ok even though test fails. I don't know where the problem was\, maybe in the makefile. I'm sorry if you loose time with me but it's my first time i build perl from source.

p5pRT commented 6 years ago

From @jkeenan

On Sat\, 03 Feb 2018 14​:52​:13 GMT\, maxpucci@​virgilio.it wrote​:

Il Fri\, 02 Feb 2018 15​:42​:25 -0800\, jkeenan ha scritto​:

On Fri\, 02 Feb 2018 13​:28​:50 GMT\, maxpucci@​virgilio.it wrote​:

This is a bug report for perl from maxpucci@​virgilio.it\, generated with the help of perlbug 1.40 running under perl 5.27.9.

When I try to compile perl on windows 8.1 64bit with Microsoft visual studio 2015 I have this error​:

Processing VerticalOrientation.txt Finishing processing Unicode properties Compiling Perl properties NMAKE : fatal error U1077​: 'cd' : return code '0xff' Stop.

Debugging mktables I found the error is on line 15397​: $current_age->add_note("See also $in"); Commenting this line perl compiles.

Also\, do you have any idea as to when you were last able to build perl successfully on this platform?

If so\, you could try bisecting with something like this (assuming you knew that tag v5.27.4 built okay)​: ##### perl Porting/bisect.pl --start=v5.27.4 #####

Thank you very much.

I've done a git reset --hard on the makefile I've used to build perl. Then I've created a new branch and rebuild perl again with\, I think\, the same modifications in the makefile. Now the compilation seems ok even though test fails. I don't know where the problem was\, maybe in the makefile. I'm sorry if you loose time with me but it's my first time i build perl from source.

I've never tried to build perl from source on Windows\, but I've been building perl from source on various Unix-ish platforms for years. At no time have I ever had to tinker with the content of the makefile. I've rarely had to peer into the content of 'makefile' or 'Makefile'.

Moreover\, since the generated 'makefile' and 'Makefile' (on Linux\, at least) are not under version control\, I'm puzzled as to what effect 'git reset --hard' would have.

Thank you very much.

-- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

From @xenu

On Sat\, 03 Feb 2018 07​:45​:27 -0800 "James E Keenan via RT" \perlbug\-followup@​perl\.org wrote​:

I've never tried to build perl from source on Windows\, but I've been building perl from source on various Unix-ish platforms for years. At no time have I ever had to tinker with the content of the makefile. I've rarely had to peer into the content of 'makefile' or 'Makefile'.

Moreover\, since the generated 'makefile' and 'Makefile' (on Linux\, at least) are not under version control\, I'm puzzled as to what effect 'git reset --hard' would have.

Thank you very much.

Under Windows Makefile is *not* automatically generated and there's no such thing as 'Configure'. Makefile is located in win32/Makefile or win32/GNUMakefile.

Windows build process is documented in perlwin32

p5pRT commented 6 years ago

From maxpucci@virgilio.it

Il Sat\, 03 Feb 2018 12​:04​:33 -0800\, me@​xenu.pl ha scritto​:

On Sat\, 03 Feb 2018 07​:45​:27 -0800 "James E Keenan via RT" \perlbug\-followup@​perl\.org wrote​:

I've never tried to build perl from source on Windows\, but I've been building perl from source on various Unix-ish platforms for years. At no time have I ever had to tinker with the content of the makefile. I've rarely had to peer into the content of 'makefile' or 'Makefile'.

Moreover\, since the generated 'makefile' and 'Makefile' (on Linux\, at least) are not under version control\, I'm puzzled as to what effect 'git reset --hard' would have.

Thank you very much.

Under Windows Makefile is *not* automatically generated and there's no such thing as 'Configure'. Makefile is located in win32/Makefile or win32/GNUMakefile.

Windows build process is documented in perlwin32

Yes\, it's true. I think the ticket can be close. Maybe I did some mistakes in the Makefile.

p5pRT commented 6 years ago

From @jkeenan

Closed per request from original poster. -- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

@jkeenan - Status changed from 'open' to 'rejected'