Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RPerl compiler problems:
- Installed RPerl via cpanm --verbose --force using:
- ==================================================
- This is perl 5, version 24, subversion 1 (v5.24.1) built for i686-linux-thread-multi
- (with 1 registered patch, see perl -V for more detail)
- With gcc version:
- =================
- Reading specs from /usr/lib/gcc/i486-slackware-linux/4.7.1/specs
- COLLECT_GCC=gcc
- COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.7.1/lto-wrapper
- Target: i486-slackware-linux
- Configured with: ../gcc-4.7.1/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-
- languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib/p
- ython2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-java-home --with
- -java-home=/usr/lib/jvm/jre --with-jvm-root-dir=/usr/lib/jvm --with-jvm-jar-dir=/usr/lib/jvm/jvm-exports --with-arch-directory=i386 --with-antlr-jar=/root
- /slackware-current/source/d/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --with-arch=i486 --target=i486-slackware-linux --build=i486-
- slackware-linux --host=i486-slackware-linux
- Thread model: posix
- gcc version 4.7.1 (GCC)
- I'm trying to run your Learning RPerl example which looks like this:
- ====================================================================
- #!/usr/bin/perl
- # Foo Bar Arithmetic Example
- # [[[ HEADER ]]]
- use RPerl;
- use strict;
- use warnings;
- our $VERSION = 0.001_000;
- # [[[ CRITICS ]]]
- ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
- ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
- # [[[ OPERATIONS ]]]
- my integer $foo = 21 + 12;
- my integer $bar = 23 * 42 * 2;
- my number $baz = to_number($bar) / $foo;
- print 'have $foo = ', to_string($foo), "\n";
- print 'have $bar = ', to_string($bar), "\n";
- print 'have $baz = ', to_string($baz), "\n";
- And this is the output I get with rperl -D rperl_test.pl
- ========================================================
- rperl -D rperl_test2.pl:
- in rperl, have $RPerl::DEBUG = 1
- in rperl, have $RPerl::VERBOSE = 0
- g++ -pthread -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -xc++ -I"/root/perl5/perlbrew/perls/perl-5.24.1" -I"/root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1" -Ilib -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved-user-defined-literal -Wno-literal-suffix -D__CPP__TYPES -D__TYPE__INTEGER__LONG -D__TYPE__NUMBER__DOUBLE -O3 -fomit-frame-pointer -march=native -g -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/i686-linux-thread-multi/CORE" ./rperl_test2.cpp -o ./rperl_test2 -lperl
- [[[ SUBCOMPILE STDERR ]]]
- In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.h:10:0,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:6,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
- from ./rperl_test2.cpp:6:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp: In function ‘void integer_arrayref_arrayref_CHECK(SV*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:30:261: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:31:262: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:46:253: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:47:252: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp: In function ‘void integer_arrayref_arrayref_CHECKTRACE(SV*, const char*, const char*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:72:267: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:73:268: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:88:256: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:89:255: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp: In function ‘integer_arrayref_arrayref XS_unpack_integer_arrayref_arrayref(SV*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:116:115: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:136:113: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:151:161: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array/SubTypes.cpp:157:139: error: unable to find string literal operator ‘operator"" INTEGER’
- In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13:0,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
- from ./rperl_test2.cpp:6:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void integer_arrayref_CHECK(SV*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:41:232: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:42:228: error: unable to find string literal operator ‘operator"" INTEGER’
- In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13:0,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
- from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
- from ./rperl_test2.cpp:6:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void integer_arrayref_CHECKTRACE(SV*, const char*, const char*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:63:232: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:64:228: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void number_arrayref_CHECK(SV*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:85:230: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:86:267: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void number_arrayref_CHECKTRACE(SV*, const char*, const char*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:107:230: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:108:267: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void string_arrayref_CHECK(SV*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:129:230: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:130:225: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp: In function ‘void string_arrayref_CHECKTRACE(SV*, const char*, const char*)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:151:230: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:152:225: error: unable to find string literal operator ‘operator"" INTEGER’
- In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22:0,
- from ./rperl_test2.cpp:6:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__diag(string)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:98:81: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__verbose(string)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:117:84: error: unable to find string literal operator ‘operator"" INTEGER’
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__warning(string)’:
- /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:136:84: error: unable to find string literal operator ‘operator"" INTEGER’
- At global scope:
- cc1plus: warning: unrecognized command line option "-Wno-literal-suffix" [enabled by default]
- cc1plus: warning: unrecognized command line option "-Wno-reserved-user-defined-literal" [enabled by default]
- BAILING OUT: One or more problems encountered, see error messages above for details, dying
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement