Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing '--all-static --no-dynaloader' options #11

Closed
fperrad opened this issue Oct 25, 2014 · 3 comments · Fixed by #12
Closed

failing '--all-static --no-dynaloader' options #11

fperrad opened this issue Oct 25, 2014 · 3 comments · Fixed by #12

Comments

@fperrad
Copy link
Contributor

fperrad commented Oct 25, 2014

an autobuilder of Buildroot detects a building issue with perl-5.20.1-cross-0.9.3 when configuring with --all-static --no-dynaloader, see http://autobuild.buildroot.net/results/057/057a4b9976fd6b9c5cddd117a3f29de51efe719f/build-end.log

with perl-5.18.2-cross-0.8.5, this kind of build is OK.
and Scalar-List-Utilsis a new core module with perl 5.20

during the configure step, cpan/Scalar-List-Utils is found:

Static modules: ext/arybase ext/attributes ext/B ext/Devel-Peek ext/Fcntl ext/File-DosGlob ext/File-Glob ext/Hash-Util ext/Hash-Util-FieldHash ext/I18N-Langinfo ext/mro ext/Opcode ext/PerlIO-encoding ext/PerlIO-mmap ext/PerlIO-scalar ext/PerlIO-via ext/POSIX ext/re ext/SDBM_File ext/Sys-Hostname ext/Tie-Hash-NamedCapture ext/XS-APItest ext/XS-Typemap cpan/Compress-Raw-Bzip2 cpan/Compress-Raw-Zlib cpan/Devel-PPPort cpan/Digest-MD5 cpan/Digest-SHA cpan/Encode cpan/Filter-Util-Call cpan/IPC-SysV cpan/MIME-Base64 cpan/Scalar-List-Utils cpan/Socket cpan/Sys-Syslog cpan/Time-HiRes cpan/Time-Piece cpan/Unicode-Collate cpan/Unicode-Normalize dist/Data-Dumper dist/IO dist/Math-BigInt-FastCalc dist/PathTools dist/Storable dist/threads dist/threads-shared 
Non-XS modules: ext/Errno ext/ExtUtils-Miniperl ext/FileCache ext/File-Find ext/IPC-Open3 ext/Pod-Functions ext/Pod-Html ext/Tie-Memoize cpan/Archive-Tar cpan/autodie cpan/AutoLoader cpan/B-Debug cpan/CGI cpan/Config-Perl-V cpan/CPAN cpan/CPAN-Meta cpan/CPAN-Meta-Requirements cpan/CPAN-Meta-YAML cpan/Digest cpan/encoding-warnings cpan/experimental cpan/ExtUtils-Constant cpan/ExtUtils-MakeMaker cpan/File-Fetch cpan/File-Path cpan/File-Temp cpan/Getopt-Long cpan/HTTP-Tiny cpan/IO-Compress cpan/IO-Socket-IP cpan/IO-Zlib cpan/IPC-Cmd cpan/JSON-PP cpan/libnet cpan/Locale-Codes cpan/Locale-Maketext-Simple cpan/Math-Complex cpan/Memoize cpan/Module-Build cpan/Module-Load cpan/Module-Load-Conditional cpan/Module-Loaded cpan/Module-Metadata cpan/NEXT cpan/Package-Constants cpan/Params-Check cpan/parent cpan/Parse-CPAN-Meta cpan/perlfaq cpan/PerlIO-via-QuotedPrint cpan/Perl-OSType cpan/Pod-Checker cpan/Pod-Escapes cpan/podlators cpan/Pod-Parser cpan/Pod-Perldoc cpan/Pod-Simple cpan/Pod-Usage cpan/Term-ANSIColor cpan/Term-Cap cpan/Test cpan/Test-Harness cpan/Test-Simple cpan/Text-Balanced cpan/Text-ParseWords cpan/Text-Tabs cpan/Tie-RefHash cpan/Time-Local cpan/version dist/Attribute-Handlers dist/autouse dist/base dist/bignum dist/Carp dist/constant dist/Devel-SelfStubber dist/Dumpvalue dist/Env dist/Exporter dist/ExtUtils-CBuilder dist/ExtUtils-Command dist/ExtUtils-Install dist/ExtUtils-Manifest dist/ExtUtils-ParseXS dist/Filter-Simple dist/I18N-Collate dist/I18N-LangTags dist/if dist/lib dist/Locale-Maketext dist/Math-BigInt dist/Math-BigRat dist/Module-CoreList dist/Net-Ping dist/Safe dist/Search-Dict dist/SelfLoader dist/Term-Complete dist/Term-ReadLine dist/Text-Abbrev dist/Thread-Queue dist/Thread-Semaphore dist/Tie-File dist/XSLoader 
Dynamic modules: 

the build step fails with:

./miniperl_top statars ext/arybase ext/attributes ext/B ext/Devel-Peek ext/Fcntl ext/File-DosGlob ext/File-Glob ext/Hash-Util ext/Hash-Util-FieldHash ext/I18N-Langinfo ext/mro ext/Opcode ext/PerlIO-encoding ext/PerlIO-mmap ext/PerlIO-scalar ext/PerlIO-via ext/POSIX ext/re ext/SDBM_File ext/Sys-Hostname ext/Tie-Hash-NamedCapture ext/XS-APItest ext/XS-Typemap cpan/Compress-Raw-Bzip2 cpan/Compress-Raw-Zlib cpan/Devel-PPPort cpan/Digest-MD5 cpan/Digest-SHA cpan/Encode cpan/Filter-Util-Call cpan/IPC-SysV cpan/MIME-Base64 cpan/Scalar-List-Utils cpan/Socket cpan/Sys-Syslog cpan/Time-HiRes cpan/Time-Piece cpan/Unicode-Collate cpan/Unicode-Normalize dist/Data-Dumper dist/IO dist/Math-BigInt-FastCalc dist/PathTools dist/Storable dist/threads dist/threads-shared > static.list
Can't find .a file for cpan/Scalar-List-Utils
@michaelforney
Copy link
Contributor

I also ran into this. I think the cause is that Scalar-List-Utils provides no Scalar::List::Utils module. There is also an issue with with PathTools, which provides no PathTools module.

This leads me to believe that "sed -e 's!(cpan|ext|dist)/!!g' -e 's/-/::/g'" is not sufficient to convert a distribution name to a module name. Maybe there is a way to get at the NAME make variable from cpan/Scalar-List-Utils/Makefile?

@arsv
Copy link
Owner

arsv commented Nov 1, 2014

Merged, seems to be working well for me.

@fperrad
Copy link
Contributor Author

fperrad commented Nov 1, 2014

Ok for me.
The problem seen on Buildroot is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants