Skip Menu |
 

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 131609
Status: open
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: phoenyx33 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Moose::Exporter failing to compile
From: phoenyx33 [...] gmail.com
Download (untitled) / with headers
text/plain 1.7k
This is what happens when I try to install it. cpan[1]> install Moose::Exporter Reading '/home/Kenneth/.cpan/Metadata' Database was generated on Wed, 29 Jan 2020 21:17:03 GMT Running install for module 'Moose::Exporter' Checksum for /home/Kenneth/.cpan/sources/authors/id/E/ET/ETHER/Moose-2.2012.tar.gz ok Scanning cache /home/Kenneth/.cpan/build for sizes ............................................................................DONE Configuring E/ET/ETHER/Moose-2.2012.tar.gz with Makefile.PL HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): undefined reference to `Perl_newSViv' HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `Perl_newSViv' HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): undefined reference to `Perl_sv_2mortal' HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `Perl_sv_2mortal' HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): undefined reference to `Perl_newXS' HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `Perl_newXS' collect2: error: ld returned 1 exit status Couldn't execute g++ HASCOMPILERi5VF/TESTVg7e.o -o HASCOMPILERi5VF/TESTVg7e.dll --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong : at Makefile.PL line 12. This distribution requires a working compiler at Makefile.PL line 12. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] ETHER/Moose-2.2012.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Failed during this command: ETHER/Moose-2.2012.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256
Download (untitled) / with headers
text/plain 2.1k
On 2020-01-29 14:44:19, phoenyx33@gmail.com wrote: Show quoted text
> This is what happens when I try to install it. > > cpan[1]> install Moose::Exporter > Reading '/home/Kenneth/.cpan/Metadata' > Database was generated on Wed, 29 Jan 2020 21:17:03 GMT > Running install for module 'Moose::Exporter' > Checksum for /home/Kenneth/.cpan/sources/authors/id/E/ET/ETHER/Moose- > 2.2012.tar.gz ok > Scanning cache /home/Kenneth/.cpan/build for sizes > ............................................................................DONE > Configuring E/ET/ETHER/Moose-2.2012.tar.gz with Makefile.PL > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): undefined > reference to `Perl_newSViv' > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): relocation > truncated to fit: R_X86_64_PC32 against undefined symbol > `Perl_newSViv' > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): undefined > reference to `Perl_sv_2mortal' > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): relocation > truncated to fit: R_X86_64_PC32 against undefined symbol > `Perl_sv_2mortal' > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): undefined > reference to `Perl_newXS' > HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): relocation > truncated to fit: R_X86_64_PC32 against undefined symbol `Perl_newXS' > collect2: error: ld returned 1 exit status > Couldn't execute g++ HASCOMPILERi5VF/TESTVg7e.o -o > HASCOMPILERi5VF/TESTVg7e.dll --shared -Wl,--enable-auto-import > -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack- > protector-strong : at Makefile.PL line 12. > This distribution requires a working compiler at Makefile.PL line 12. > Warning: No success on command[/usr/bin/perl Makefile.PL > INSTALLDIRS=site] > ETHER/Moose-2.2012.tar.gz > /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK > Failed during this command: > ETHER/Moose-2.2012.tar.gz : writemakefile NO > '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256
There is insufficient information to even begin debugging this. Just to start: - what compiler do you have installed? - what is the operating system and architecture? - what version of perl is this? the output of 'perl -V' is needed to see what options perl itself was built with.
Subject: Re: [rt.cpan.org #131609] Moose::Exporter failing to compile
Date: Thu, 30 Jan 2020 17:18:13 -0500
To: bug-Moose [...] rt.cpan.org
From: Kenneth Benson <phoenyx33 [...] gmail.com>
Download (untitled) / with headers
text/plain 2.6k
On 1/29/2020 7:37 PM, Karen Etheridge via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=131609 > > > On 2020-01-29 14:44:19, phoenyx33@gmail.com wrote:
>> This is what happens when I try to install it. >> >> cpan[1]> install Moose::Exporter >> Reading '/home/Kenneth/.cpan/Metadata' >> Database was generated on Wed, 29 Jan 2020 21:17:03 GMT >> Running install for module 'Moose::Exporter' >> Checksum for /home/Kenneth/.cpan/sources/authors/id/E/ET/ETHER/Moose- >> 2.2012.tar.gz ok >> Scanning cache /home/Kenneth/.cpan/build for sizes >> ............................................................................DONE >> Configuring E/ET/ETHER/Moose-2.2012.tar.gz with Makefile.PL >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): undefined >> reference to `Perl_newSViv' >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x21): relocation >> truncated to fit: R_X86_64_PC32 against undefined symbol >> `Perl_newSViv' >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): undefined >> reference to `Perl_sv_2mortal' >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x37): relocation >> truncated to fit: R_X86_64_PC32 against undefined symbol >> `Perl_sv_2mortal' >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): undefined >> reference to `Perl_newXS' >> HASCOMPILERi5VF/TESTVg7e.o:TESTVg7e.c:(.text+0x6b): relocation >> truncated to fit: R_X86_64_PC32 against undefined symbol `Perl_newXS' >> collect2: error: ld returned 1 exit status >> Couldn't execute g++ HASCOMPILERi5VF/TESTVg7e.o -o >> HASCOMPILERi5VF/TESTVg7e.dll --shared -Wl,--enable-auto-import >> -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack- >> protector-strong : at Makefile.PL line 12. >> This distribution requires a working compiler at Makefile.PL line 12. >> Warning: No success on command[/usr/bin/perl Makefile.PL >> INSTALLDIRS=site] >> ETHER/Moose-2.2012.tar.gz >> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK >> Failed during this command: >> ETHER/Moose-2.2012.tar.gz : writemakefile NO >> '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256
> > There is insufficient information to even begin debugging this. Just to start: > - what compiler do you have installed? > - what is the operating system and architecture? > - what version of perl is this? the output of 'perl -V' is needed to see what options perl itself was built with. > > > >
Ok, I've managed to tighten it down to the Moose-2.2012 package, my compiler is g++ and it's leaving a g++.exe.stackdump (attached) in the build folder for that package. Not that it tells me anything. Would it be better if I used an older version of Moose? Perl is 5..30.1 and g++ is 9.1.0...
Download g++.exe.stackdump
text/plain 1012b

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 276b
Yes, that stacktrace isn't very helpful. :) Could you please provide the output of "perl -V" on this system? the 'V' must be uppsercase -- it is likely significant what compile options your perl was built with, and the value of various environment variables such as PERL5LIB.
Subject: Re: [rt.cpan.org #131609] Moose::Exporter failing to compile
Date: Sun, 12 Apr 2020 12:50:37 -0400
To: bug-Moose [...] rt.cpan.org
From: Kenneth Benson <phoenyx33 [...] gmail.com>
Download (untitled) / with headers
text/plain 3.8k
On 4/11/2020 8:45 PM, Karen Etheridge via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=131609 > > > Yes, that stacktrace isn't very helpful. :) > > Could you please provide the output of "perl -V" on this system? the 'V' must be uppsercase -- it is likely significant what compile options your perl was built with, and the value of various environment variables such as PERL5LIB. >
Here's the perl -V output. I hope it helps to figure this out. Kenneth Kenneth@PhoenyxFire1 MINGW64 ~ $ perl -V Summary of my perl5 (revision 5 version 30 subversion 1) configuration: Platform: osname=msys osvers=3.0.7-338.x86_64 archname=x86_64-msys-thread-multi uname='msys_nt-6.1-7601 warlock 3.0.7-338.x86_64 2019-07-11 10:58 utc x86_64 msys ' config_args='-des -Dusethreads -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dscriptdir=/usr/bin/core_perl -Dsitescript=/usr/bin/site_perl -Dvendorscript=/usr/bin/vendor_perl -Dinc_version_list=none -Dman1ext=1perl -Dman3ext=3perl -Darchname=-msys-threads -Dmyarchname=-msys -Dlibperl=msys-perl5_30.dll -Dcc=gcc -Dld=g++ -Accflags=-march=x86-64 -mtune=generic -O2 -pipe -fwrapv' 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 -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong' optimize='-march=x86-64 -mtune=generic -O2 -pipe' cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong' ccversion='' gccversion='9.1.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' libpth=/usr/lib libs=-lpthread -lgdbm -ldb -ldl -lcrypt -lgdbm_compat perllibs=-lpthread -ldl -lcrypt libc=/usr/lib/libmsys-2.0.a so=dll useshrplib=true libperl=msys-perl5_30.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 -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_IMPLICIT_CONTEXT PERL_OP_PARENT PERL_PRESERVE_IVUV 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_THREAD_SAFE_LOCALE Built under msys Compiled at Nov 12 2019 08:19:15 %ENV: PERL_CPANM_OPT=" -f -n" @INC: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl Kenneth@PhoenyxFire1 MINGW64 ~ $


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.