Advertisement
Guest User

building_with_RPerl

a guest
Apr 10th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.93 KB | None | 0 0
  1. RPerl compiler problems:
  2. Installed RPerl via cpanm --verbose --force using:
  3. ==================================================
  4.  
  5. This is perl 5, version 24, subversion 1 (v5.24.1) built for i686-linux-thread-multi
  6. (with 1 registered patch, see perl -V for more detail)
  7.  
  8. With gcc version:
  9. =================
  10.  
  11. Reading specs from /usr/lib/gcc/i486-slackware-linux/4.7.1/specs
  12. COLLECT_GCC=gcc
  13. COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.7.1/lto-wrapper
  14. Target: i486-slackware-linux
  15. Configured with: ../gcc-4.7.1/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-
  16. 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
  17. ython2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-java-home --with
  18. -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
  19. /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-
  20. slackware-linux --host=i486-slackware-linux
  21. Thread model: posix
  22. gcc version 4.7.1 (GCC)
  23.  
  24. I'm trying to run your Learning RPerl example which looks like this:
  25. ====================================================================
  26.  
  27. #!/usr/bin/perl
  28.  
  29. # Foo Bar Arithmetic Example
  30.  
  31. # [[[ HEADER ]]]
  32. use RPerl;
  33. use strict;
  34. use warnings;
  35. our $VERSION = 0.001_000;
  36.  
  37. # [[[ CRITICS ]]]
  38. ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  39. ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  40.  
  41. # [[[ OPERATIONS ]]]
  42. my integer $foo = 21 + 12;
  43. my integer $bar = 23 * 42 * 2;
  44. my number $baz = to_number($bar) / $foo;
  45. print 'have $foo = ', to_string($foo), "\n";
  46. print 'have $bar = ', to_string($bar), "\n";
  47. print 'have $baz = ', to_string($baz), "\n";
  48.  
  49. And this is the output I get with rperl -D rperl_test.pl
  50. ========================================================
  51.  
  52. rperl -D rperl_test2.pl:
  53.  
  54. in rperl, have $RPerl::DEBUG = 1
  55. in rperl, have $RPerl::VERBOSE = 0
  56.  
  57.  
  58. 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
  59.  
  60.  
  61. [[[ SUBCOMPILE STDERR ]]]
  62.  
  63. In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.h:10:0,
  64. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl/DataStructure/Array.cpp:6,
  65. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13,
  66. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
  67. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
  68. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
  69. from ./rperl_test2.cpp:6:
  70. /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*)’:
  71. /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’
  72. /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’
  73. /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’
  74. /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’
  75. /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*)’:
  76. /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’
  77. /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’
  78. /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’
  79. /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’
  80. /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*)’:
  81. /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’
  82. /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’
  83. /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’
  84. /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’
  85. In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13:0,
  86. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
  87. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
  88. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
  89. from ./rperl_test2.cpp:6:
  90. /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*)’:
  91. /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’
  92. /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’
  93. In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperltypes.h:13:0,
  94. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.h:10,
  95. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp:4,
  96. from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22,
  97. from ./rperl_test2.cpp:6:
  98. /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*)’:
  99. /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’
  100. /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’
  101. /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*)’:
  102. /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’
  103. /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’
  104. /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*)’:
  105. /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’
  106. /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’
  107. /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*)’:
  108. /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’
  109. /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’
  110. /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*)’:
  111. /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’
  112. /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’
  113. In file included from /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/rperlstandalone.h:22:0,
  114. from ./rperl_test2.cpp:6:
  115. /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__diag(string)’:
  116. /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’
  117. /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__verbose(string)’:
  118. /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’
  119. /root/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/RPerl.cpp: In function ‘integer RPerl__warning(string)’:
  120. /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’
  121. At global scope:
  122. cc1plus: warning: unrecognized command line option "-Wno-literal-suffix" [enabled by default]
  123. cc1plus: warning: unrecognized command line option "-Wno-reserved-user-defined-literal" [enabled by default]
  124.  
  125.  
  126. BAILING OUT: One or more problems encountered, see error messages above for details, dying
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement