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

[perl #133039] ALL_STATIC build is broken on MSVC

Thread Next
From:
bulk88 via RT
Date:
April 3, 2018 01:32
Subject:
[perl #133039] ALL_STATIC build is broken on MSVC
Message ID:
rt-4.0.24-23960-1522719138-1006.133039-15-0@perl.org
Some details I forgot to post, for historical reasons.


BEFORE

Generating a gmake-style Makefile
Writing Makefile for Storable
gmake[1]: Entering directory 'C:/perl521/srcnew/dist/Storable'
"..\..\miniperl.exe" "-I..\..\lib" Storable.pm.PL
"..\..\miniperl.exe" "-I..\..\lib" "..\..\lib\ExtUtils/xsubpp"  -typemap C:\perl
521\srcnew\lib\ExtUtils\typemap  Storable.xs > Storable.xsc
C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e mv -- Storab
le.xsc Storable.c
cl -c   -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DWIN32_NO_R
EGISTRY -DUSE_PERLIO -D_USE_32BIT_TIME_T -DPERLDLL -O1 -MD -Zi -DNDEBUG -GL   -D
VERSION=\"3.06\" -DXS_VERSION=\"3.06\"  "-I..\..\lib\CORE"   Storable.c
Storable.c
C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e rm_f -- "..\
..\lib\auto\Storable\Storable.lib"
lib -ltcg -out:..\..\lib\auto\Storable\Storable.lib Storable.obj
Microsoft (R) Library Manager Version 7.10.6030
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e chmod -- 755
 ..\..\lib\auto\Storable\Storable.lib
gmake[1]: Leaving directory 'C:/perl521/srcnew/dist/Storable'
gmake[1]: Entering directory 'C:/perl521/srcnew/ext/Sys-Hostname'
gmake[1]: Leaving directory 'C:/perl521/srcnew/ext/Sys-Hostname'
***********CUT***more modules and  static perl gets linked together***********
gmake -C ..\dist\Storable lib\Storable\Limit.pm
gmake[1]: Entering directory 'C:/perl521/srcnew/dist/Storable'
"..\..\miniperl.exe" "-I..\..\lib" -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"Storable\", 'DLBASE' => 'Storable', 'DL_FUNCS' =>
{  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
link -out:..\..\lib\auto\Storable\Storable.dll -dll -nologo -nodefaultlib -debug
 -opt:ref,icf -ltcg -libpath:"c:\perl\lib\CORE" -machine:x86 Storable.obj   "..\
..\lib\CORE\perl527.lib" oldnames.lib kernel32.lib user32.lib gdi32.lib winspool
.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib u
uid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl3
2.lib msvcrt.lib -def:Storable.def
   Creating library ..\..\lib\auto\Storable\Storable.lib and object ..\..\lib\au
to\Storable\Storable.exp
Storable.obj : error LNK2001: unresolved external symbol _PL_sv_placeholder
..\..\lib\auto\Storable\Storable.dll : fatal error LNK1120: 1 unresolved externa
ls
makefile:486: recipe for target '..\..\lib\auto\Storable\Storable.dll' failed
gmake[1]: *** [..\..\lib\auto\Storable\Storable.dll] Error 1120
gmake[1]: Leaving directory 'C:/perl521/srcnew/dist/Storable'
GNUmakefile:1618: recipe for target '..\lib\Storable\Limit.pm' failed
gmake: *** [..\lib\Storable\Limit.pm] Error 2



AFTER


Generating a gmake-style Makefile
Writing Makefile for Storable
gmake[1]: Entering directory 'C:/perl521/srcnew/dist/Storable'
"..\..\miniperl.exe" "-I..\..\lib" Storable.pm.PL
"..\..\miniperl.exe" "-I..\..\lib" "..\..\lib\ExtUtils/xsubpp"  -typemap C:\perl
521\srcnew\lib\ExtUtils\typemap  Storable.xs > Storable.xsc
C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e mv -- Storab
le.xsc Storable.c
cl -c   -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DWIN32_NO_R
EGISTRY -DUSE_PERLIO -D_USE_32BIT_TIME_T -DPERLDLL -O1 -MD -Zi -DNDEBUG -GL   -D
VERSION=\"3.06\" -DXS_VERSION=\"3.06\"  "-I..\..\lib\CORE"   Storable.c
Storable.c
C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e rm_f -- "..\
..\lib\auto\Storable\Storable.lib"
lib -ltcg -out:..\..\lib\auto\Storable\Storable.lib Storable.obj
Microsoft (R) Library Manager Version 7.10.6030
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e chmod -- 755
 ..\..\lib\auto\Storable\Storable.lib
gmake[1]: Leaving directory 'C:/perl521/srcnew/dist/Storable'
gmake[1]: Entering directory 'C:/perl521/srcnew/ext/Sys-Hostname'
gmake[1]: Leaving directory 'C:/perl521/srcnew/ext/Sys-Hostname'
***********CUT***more modules and  static perl gets linked together***********
gmake -C ..\dist\Storable lib\Storable\Limit.pm
gmake[1]: Entering directory 'C:/perl521/srcnew/dist/Storable'
C:\perl521\srcnew\miniperl.exe "-I..\..\lib" -MExtUtils::Command -e mkpath -- ..
\..\lib
"..\..\perl.exe" "-I..\..\lib" "-I..\..\lib" stacksize --core
probe for max. stack sizes...
Storable: determining recursion limit: 65000 too big, try less 32550 ...
Storable: determining recursion limit: 32550 too big, try less 16325 ...
Storable: determining recursion limit: 16325 too big, try less 8213 ...
Storable: determining recursion limit: 8213 too big, try less 4157 ...
Storable: determining recursion limit: 4157 passed, try more 6185 ...
Storable: determining recursion limit: 6185 passed, try more 7199 ...
Storable: determining recursion limit: 7199 too big, try less 6692 ...
Storable: determining recursion limit: 6692 passed, try more 6945 ...
Storable: determining recursion limit: 6945 too big, try less 6819 ...
Storable: determining recursion limit: 6819 too big, try less 6756 ...
Storable: determining recursion limit: 6756 passed, try more 6787 ...
Storable: determining recursion limit: 6787 passed, try more 6803 ...
Storable: determining recursion limit: 6803 passed, try more 6811 ...
Storable: determining recursion limit: 6811 passed, try more 6815 ...
Storable: determining recursion limit: 6815 too big, try less 6813 ...
Storable: determining recursion limit: 6813 passed, try more 6814 ...
Storable: determining recursion limit: 6814 passed, try more 6814 ...
MAX_DEPTH = 6814
Storable: determining recursion limit: 3000 passed, try more 3000 ...
MAX_DEPTH_HASH = 3000
gmake[1]: Leaving directory 'C:/perl521/srcnew/dist/Storable'
if not exist ..\lib\Storable mkdir ..\lib\Storable
copy ..\dist\Storable\lib\Storable\Limit.pm ..\lib\Storable\Limit.pm
        1 file(s) copied.



---
via perlbug:  queue: perl5 status: pending release
https://rt.perl.org/Ticket/Display.html?id=133039

Thread Next


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