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

The XS/C++ code failed to compile #1690

Closed
megalomaniac opened this issue Jan 10, 2014 · 40 comments
Closed

The XS/C++ code failed to compile #1690

megalomaniac opened this issue Jan 10, 2014 · 40 comments

Comments

@megalomaniac
Copy link

I'm using ubuntu 13.10 64bit was a fresh install.

followed the instructions on https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux
Didn't work I thought it was a perl problem so I then installed perlbrew perl-5.16.0

After installing perlberw lots of things failed after trying sudo perl Build.PL --gui

Then I Tried perl Build.PL everything tested ok except 'The XS/C++ code failed to compile'
Then I tried with the following --force command and got this:

:~/Slic3r$ sudo perl Build.PL --force
App::cpanminus is up to date. (1.7001)
Class::XSAccessor is up to date. (1.19)
Encode::Locale is up to date. (1.03)
ExtUtils::MakeMaker is up to date. (6.86)
ExtUtils::ParseXS is up to date. (3.22)
skipping R/RJ/RJBS/perl-5.18.2.tar.bz2
File::Spec is up to date. (3.40)
Getopt::Long is up to date. (2.42)
IO::Scalar is up to date. (2.110)
Math::Geometry::Voronoi is up to date. (1.3)
Math::PlanePath is up to date. (113)
Module::Build::WithXSpp is up to date. (0.14)
Moo is up to date. (1.004002)
Scalar::Util is up to date. (1.35)
Storable is up to date. (2.45)
Test::Harness is up to date. (3.30)
Test::More is up to date. (1.001002)
Time::HiRes is up to date. (1.9726)
XML::SAX::ExpatXS is up to date. (1.33)
Cleaning up build files
Cleaning up configuration files
--> Working on ./xs
Configuring /home/mega/Slic3r/xs ... OK
Building and testing Slic3r-XS-0.01 ... FAIL
! Installing ./xs failed. See /home/mega/.cpanm/work/1389327043.19782/build.log for details. Retry with --force to force install it.
The XS/C++ code failed to compile, aborting

Then when I try this
./slic3r.pl
Can't locate Slic3r/XS.pm in @inc (@inc contains: /home/mega/Slic3r/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/mega/Slic3r/lib/Slic3r.pm line 38.
BEGIN failed--compilation aborted at /home/mega/Slic3r/lib/Slic3r.pm line 38.
Compilation failed in require at ./slic3r.pl line 14.
BEGIN failed--compilation aborted at ./slic3r.pl line 14.

Don't know what to try now.

@megalomaniac
Copy link
Author

I just restarted my computer and now I get

The crashed program seems to use third-party or local libraries:

/home/megalomaniac/.cpanm/work/1389325632.15343/OpenGL-0.6703/blib/arch/auto/OpenGL/OpenGL.so
/usr/local/lib/perl/5.14.2/auto/Time/HiRes/HiRes.so

It is highly recommended to check if the problem persists without those first.

Think I need help!

@alranel
Copy link
Member

alranel commented Jan 10, 2014

Might be fixed now. Can you confirm?

@jonaskuehling
Copy link

@alexrj I tried to test the latest master, but still the build fails with these errors:

t/angles.t ........... ok     
t/arcs.t ............. skipped: arcs are currently disabled
t/clean_polylines.t .. 1/6 
#   Failed test 'gear simplified to a single polygon'
#   at t/clean_polylines.t line 65.
Can't use an undefined value as an ARRAY reference at t/clean_polylines.t line 67.
# Looks like you planned 6 tests but ran 3.
# Looks like you failed 1 test of 3 run.
# Looks like your test exited with 255 just after 3.
t/clean_polylines.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/6 subtests 
t/clipper.t .......... ok   
t/collinear.t ........ ok     
t/combineinfill.t .... Failed 2/2 subtests 
t/cooling.t .......... Failed 3/11 subtests 
t/custom_gcode.t ..... *** Error in `/usr/bin/perl': corrupted double-linked list: 0x0a3e1ce0 ***

Switched to stable branch now which I got working, but it showed some error during build as well:

t/angles.t ........... ok     
t/arcs.t ............. skipped: arcs are currently disabled
t/clean_polylines.t .. 1/10 Error in function from_SV_check at src/Polygon.cpp:134: Not a valid Slic3r::Polygon object
     at /home/jonas/RepRap/Slic3r/dev-git-new/Slic3r/t/../lib/Slic3r/Polygon.pm line 45
    Slic3r::Polygon::simplify('Slic3r::Polygon=SCALAR(0x9ceef34)') called at t/clean_polylines.t line 77
# Looks like you planned 10 tests but ran 4.
# Looks like your test exited with 255 just after 4.
t/clean_polylines.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/10 subtests 
t/clipper.t .......... ok   
t/collinear.t ........ ok     
t/combineinfill.t .... ok   
t/cooling.t .......... ok     
t/custom_gcode.t ..... ok   
t/dynamic.t .......... skipped: variable-width paths are currently disabled
t/fill.t ............. ok     
t/gcode.t ............ ok   
t/geometry.t ......... ok     
t/layers.t ........... ok   
t/loops.t ............ skipped: temporarily disabled
t/multi.t ............ ok   
t/perimeters.t ....... ok   
t/polyclip.t ......... ok     
t/print.t ............ ok   
t/retraction.t ....... ok     
t/shells.t ........... ok     
t/skirt_brim.t ....... ok   
t/slice.t ............ skipped: temporarily disabled
t/support.t .......... ok     
t/svg.t .............. ok   
t/threads.t .......... ok   
t/vibrationlimit.t ... ok   

Test Summary Report
-------------------
t/clean_polylines.t (Wstat: 65280 Tests: 4 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 10 tests but ran 4.
Files=26, Tests=227, 159 wallclock secs ( 0.16 usr  0.03 sys + 167.71 cusr  2.02 csys = 169.92 CPU)
Result: FAIL
Some tests failed. Please report the failure to the author!

Anyway, the missing infill problems seem to be solved in stable, thanks a lot!

@megalomaniac
Copy link
Author

sudo perl Build.PL --gui

App::cpanminus is up to date. (1.7001)
Growl::GNTP is up to date. (0.20)
--> Working on OpenGL
Fetching http://www.cpan.org/authors/id/C/CH/CHM/OpenGL-0.6703.tar.gz ... OK
Configuring OpenGL-0.6703 ... OK
Building and testing OpenGL-0.6703 ... FAIL
! Installing OpenGL failed. See /home/mega/.cpanm/work/1389583790.3983/build.log for details. Retry with --force to force install it.
Don't worry, this module is optional.
Wx is up to date. (0.9922)
Wx::GLCanvas is up to date. (0.09)

Then I try running it I get this:
mega@ma:~/Slic3r$ ./slic3r.pl

Can't locate Slic3r/XS.pm in @inc (@inc contains: /home/mega/Slic3r/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/mega/Slic3r/lib/Slic3r.pm line 38.
BEGIN failed--compilation aborted at /home/mega/Slic3r/lib/Slic3r.pm line 38.
Compilation failed in require at ./slic3r.pl line 14.
BEGIN failed--compilation aborted at ./slic3r.pl line 14.

Not sure what’s causing this still need help.

@alranel
Copy link
Member

alranel commented Jan 14, 2014

@jonaskuehling, yeah sorry, I fixed that one now.

@megalomaniac, try:

git pull
sudo perl Build.PL

If the Slic3r-XS step fails, please do sudo cpanm -v ./xs and report the output here.

@megalomaniac
Copy link
Author

mega@mas:/Slic3r$ git pull
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 6), reused 3 (delta 0)
Unpacking objects: 100% (9/9), done.
From https://github.com/alexrj/Slic3r
fcaa3a0..66045fa master -> origin/master
a64f7aa..4da71e8 stable -> origin/stable
Updating fcaa3a0..66045fa
Fast-forward
t/support.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mega@mas:
/Slic3r$ sudo perl Build.PL
[sudo] password for mega:
App::cpanminus is up to date. (1.7001)
Class::XSAccessor is up to date. (1.19)
Encode::Locale is up to date. (1.03)
ExtUtils::MakeMaker is up to date. (6.86)
ExtUtils::ParseXS is up to date. (3.22)
skipping R/RJ/RJBS/perl-5.18.2.tar.bz2
File::Spec is up to date. (3.40)
Getopt::Long is up to date. (2.42)
IO::Scalar is up to date. (2.110)
Math::Geometry::Voronoi is up to date. (1.3)
Math::PlanePath is up to date. (113)
Module::Build::WithXSpp is up to date. (0.14)
Moo is up to date. (1.004002)
Scalar::Util is up to date. (1.35)
Test::Harness is up to date. (3.30)
Test::More is up to date. (1.001002)
Time::HiRes is up to date. (1.9726)
XML::SAX::ExpatXS is up to date. (1.33)
--> Working on ./xs
Configuring /home/mega/Slic3r/xs ... OK
Building and testing Slic3r-XS-0.01 ... OK
Successfully installed Slic3r-XS-0.01
1 distribution installed
t/angles.t ........... ok
t/arcs.t ............. skipped: arcs are currently disabled
t/clean_polylines.t .. ok
t/clipper.t .......... ok
t/collinear.t ........ ok
t/combineinfill.t .... Failed 2/2 subtests
t/cooling.t .......... 1/11 *** Error in `/usr/bin/perl': corrupted double-linked list: 0x0000000002d3e710 ***

IT JUST HANGS HERE FOR EVER

Slic3r$ sudo cpanm -v ./xs
cpanm (App::cpanminus) 1.7001 on perl 5.014002 built for x86_64-linux-gnu-thread-multi
Work directory is /home/mega/.cpanm/work/1389753789.3764
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on ./xs
Entering /home/mega/Slic3r/xs
Checking if you have Module::Build 0.36 ... Yes (0.4203)
Running Build.PL
Configuring /home/mega/Slic3r/xs ... Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Slic3r-XS' version '0.01'
OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::Typemaps::Default 1.03 ... Yes (1.05)
Checking if you have Test::More 0 ... Yes (1.001002)
Checking if you have ExtUtils::ParseXS 3.18 ... Yes (3.22)
Checking if you have ExtUtils::XSpp 0.18 ... Yes (0.18)
Checking if you have Module::Build 0.3601 ... Yes (0.4203)
Checking if you have ExtUtils::Typemap 1.00 ... Yes (1.00)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280212)
Building and testing Slic3r-XS-0.01 ... Building Slic3r-XS
t/01_trianglemesh.t ............. ok
t/03_point.t .................... ok
t/04_expolygon.t ................ ok
t/05_surface.t .................. ok
t/06_polygon.t .................. ok
t/07_extrusionpath.t ............ ok
t/08_extrusionloop.t ............ ok
t/09_polyline.t ................. ok
t/10_line.t ..................... ok
t/11_clipper.t .................. ok
t/12_extrusionpathcollection.t .. ok
t/13_polylinecollection.t ....... ok
t/14_geometry.t ................. ok
t/15_config.t ................... ok
t/16_flow.t ..................... ok
t/17_boundingbox.t .............. ok
All tests successful.
Files=16, Tests=258, 1 wallclock secs ( 0.07 usr 0.02 sys + 0.42 cusr 0.06 csys = 0.57 CPU)
Result: PASS
Building Slic3r-XS
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
OK
Successfully installed Slic3r-XS-0.01
1 distribution installed

Maybe my perl is broken somehow?

@jonaskuehling
Copy link

@alexrj looks good, stable builds an runs without errors so far!

@alranel
Copy link
Member

alranel commented Jan 15, 2014

@jonaskuehling, perfect! I can break it again now. :-P

@megalomaniac, try now.

@bmcage
Copy link

bmcage commented Jan 16, 2014

On same configuration 13.10 64bit, I obtain:
--> Working on OpenGL
Fetching http://www.cpan.org/authors/id/C/CH/CHM/OpenGL-0.6703.tar.gz ... OK
Configuring OpenGL-0.6703 ... OK
Building and testing OpenGL-0.6703 ... FAIL
! Installing OpenGL failed. See /home/benny/.cpanm/work/1389867136.12967/build.log for details. Retry with --force to force install it.
Don't worry, this module is optional.
Wx is up to date. (0.9922)
Wx::GLCanvas is up to date. (0.09)

in the build.log at end:

Using Mipmap

Hold down arrow keys to rotate, 'r' to reverse, 's' to stop.
Page up/down will move cube away from/towards camera.
Use first letter of shown display mode settings to alter.
Press 'g' to toggle fullscreen mode (not supported on all platforms).
Press 'c' to capture/save a RGBA targa file.
'q' or [Esc] to quit; OpenGL window must have focus for input.

Idle timeout; completing test
pure virtual method called
terminate called without an active exception
Aborted (core dumped)
make: *** [test_dynamic] Error 134
-> FAIL Installing OpenGL failed. See /home/benny/.cpanm/work/1389867136.12967/build.log for details. Retry with --force to force install it.

I would rather not use --force.
Well, it seems this bug contains two different issues, but as you seem to try to fix both, I added this comment here instead of a new ticket.

@RobotDave
Copy link

I'm on windows I've got the same XS/C++ problem. Here's the build.log file:

cpanm (App::cpanminus) 1.7001 on perl 5.014003 built for MSWin32-x64-multi-thread
Work directory is C:\Users\dama/.cpanm/work/1392344773.7116
You have make C:\strawberry\c\bin\dmake.exe
You have LWP 6.04
Falling back to Archive::Tar 1.90
--> Working on ./xs
Entering C:/Users/dama/Documents/GitHub/Slic3r/Slic3r/xs
Checking if you have Module::Build 0.36 ... Yes (0.4003)
Configuring C:/Users/dama/Documents/GitHub/Slic3r/Slic3r/xs
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Slic3r-XS' version '0.01'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::Typemaps::Default 1.03 ... Yes (1.05)
Checking if you have Test::More 0 ... Yes (1.001002)
Checking if you have ExtUtils::ParseXS 3.18 ... Yes (3.22)
Checking if you have ExtUtils::XSpp 0.18 ... Yes (0.18)
Checking if you have Module::Build 0.3601 ... Yes (0.4003)
Checking if you have ExtUtils::Typemap 1.00 ... Yes (1.00)
Building and testing Slic3r-XS-0.01
Building Slic3r-XS
Processing XS typemap files...
Generating main XS file...
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -xc++ -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -s -O2 -I"C:\strawberry\perl\lib\CORE" -I"C:\strawberry\c\include" -o "src\Point.o" "src\Point.cpp"
In file included from src\Point.cpp:4:0:
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ')' before '' token
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ')' before '
' token
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ')' before '' token
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ')' before '
' token
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ';' at end of member declaration
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected unqualified-id before ')' token
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected ';' at end of member declaration
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:198:7: error: expected unqualified-id before ')' token
src\Point.cpp:235:1: error: expected '}' at end of input
In file included from src\Point.cpp:4:0:
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream: In member function 'virtual std::streamsize std::basic_stringbuf<_CharT, _Traits, _Alloc>::showmanyc()':
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:171:22: error: there are no arguments to '_M_update_egptr' that depend on a template parameter, so a declaration of '_M_update_egptr' must be available [-fpermissive]
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:171:22: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream: At global scope:
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:175:7: error: expected unqualified-id at end of input
c:\strawberry\c\bin../lib/gcc/x86_64-w64-mingw32/4.6.3/include/c++/sstream:175:7: error: expected '}' at end of input
error building dll file from 'src\Point.cpp' at C:/strawberry/perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 130.
-> FAIL Installing ./xs failed. See C:\Users\dama.cpanm\work\1392344773.7116\build.log for details. Retry with --force to force install it.

Hope you guys can help me!

@bmcage
Copy link

bmcage commented Aug 8, 2014

XS fails again in stable branch. Error now is:

cc -I/usr/lib/perl/5.18/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o buildtmp/XS.o buildtmp/XS.c
buildtmp/XS.c: In function ‘void XS_Slic3r__Point_projection_onto_polygon(PerlInterpreter_, CV_)’:
buildtmp/XS.c:777:2: error: ‘Polygon’ was not declared in this scope
Polygon* polygon;
^
buildtmp/XS.c:777:11: error: ‘polygon’ was not declared in this scope
Polygon* polygon;
^
buildtmp/XS.c:777:11: note: suggested alternative:
In file included from src/boost/polygon/polygon.hpp:12:0,
from src/Point.hpp:93,
from buildtmp/XS.c:183:
src/boost/polygon/isotropy.hpp:110:36: note: ‘boost::polygon’
namespace boost { namespace polygon{
^
buildtmp/XS.c:794:35: error: expected primary-expression before ‘)’ token
polygon = (Polygon )SvIV((SV)SvRV( ST(1) ));
^
buildtmp/XS.c: In function ‘void XS_Slic3r__Point_projection_onto_polyline(PerlInterpreter_, CV_)’:
buildtmp/XS.c:823:2: error: ‘Polyline’ was not declared in this scope
Polyline* polyline;
^
buildtmp/XS.c:823:12: error: ‘polyline’ was not declared in this scope
Polyline* polyline;
^
buildtmp/XS.c:840:37: error: expected primary-expression before ‘)’ token
polyline = (Polyline )SvIV((SV)SvRV( ST(1) ));
^
error building buildtmp/XS.o from 'buildtmp/XS.c' at /usr/share/perl/5.18/ExtUtils/CBuilder/Base.pm line 177.
FAIL
! Installing ./xs failed. See /home/benny/.cpanm/work/1407509576.18571/build.log for details. Retry with --force to force install it.
The XS/C++ code failed to compile, aborting

@cjlawson02
Copy link

Still can't compile.

@lerouxb
Copy link

lerouxb commented Mar 27, 2015

Trying to build on OSX Mavericks, getting:

cpanm (App::cpanminus) 1.7027 on perl 5.016002 built for darwin-thread-multi-2level
Work directory is /Users/leroux/.cpanm/work/1427484056.10688
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
--> Working on ./xs
Entering /Users/leroux/src/Slic3r/xs
Checking if you have Module::Build 0.36 ... Yes (0.4211)
Configuring /Users/leroux/src/Slic3r/xs
Running Build.PL
-> N/A
-> FAIL Configure failed for ./xs. See /Users/leroux/.cpanm/work/1427484056.10688/build.log for details.

@lordofhyphens
Copy link
Member

It'd help if you included the contents of /Users/leroux/.cpanm/work/
1427484056.10688/build.log

"Nothing unreal exists." - Kiri-kin-tha's First Law of Metaphysics.

On Fri, Mar 27, 2015 at 2:26 PM, Le Roux Bodenstein <
[email protected]> wrote:

Trying to build on OSX Mavericks, getting:

cpanm (App::cpanminus) 1.7027 on perl 5.016002 built for darwin-thread-multi-2level
Work directory is /Users/leroux/.cpanm/work/1427484056.10688
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
--> Working on ./xs
Entering /Users/leroux/src/Slic3r/xs
Checking if you have Module::Build 0.36 ... Yes (0.4211)
Configuring /Users/leroux/src/Slic3r/xs
Running Build.PL
-> N/A
-> FAIL Configure failed for ./xs. See /Users/leroux/.cpanm/work/1427484056.10688/build.log for details.


Reply to this email directly or view it on GitHub
#1690 (comment).

@lerouxb
Copy link

lerouxb commented Mar 27, 2015

That IS the contents of that file. It just happens to reference itself at the end.

@alranel
Copy link
Member

alranel commented May 25, 2015

@lerouxb, try manually:

cd xs
sudo perl Build.PL
sudo ./Build install

If it fails, post output here...

@gralco
Copy link

gralco commented Jun 5, 2015

I'm on Fedora 22, when I try perl Build.PL --sudo just inside ./Slic3r/ I get the same The XS/C++ code failed to compile, aborting

When I do what alexrj said I get no output whatsoever.

@Tuxomx
Copy link

Tuxomx commented Jun 22, 2015

Hi all. I had the same problem, then used strace to check perl compiling xs. Perl was searching for some files, so I installed them and no luck. On a second view of the strace I found perl was using some files from /usr/local/lib64 remaining from fedora 20 (upgraded to 22 today), erasing all of the /usr/local/lib65/perl5/ files allowed me to run "stock" slic3r (the one installed by default) and compile current version (got with git clone https://github.com/alexrj/Slic3r.git as stated on README.md).

SALUDOS
ALVARO

@lordofhyphens
Copy link
Member

Ah, CPAN hell. Yeah, the basic compile instructions tend to make your perl
install fragile w/r/t package managers in distros. You really should be
using your package manager (that is, building an rpm from slic3r source
and installing that). A shortcut if someone has already packaged an older
version of slic3r is to grab the source for that package and unpack the new
slic3r source into it (on top of the old package source) and then run the
package build scripts.
On Jun 22, 2015 12:57 AM, "Tuxomx" [email protected] wrote:

Hi all. I had the same problem, then used strace to check perl compiling
xs. Perl was searching for some files, so I installed them and no luck. On
a second view of the strace I found perl was using some files from
/usr/local/lib64 remaining from fedora 20 (upgraded to 22 today), erasing
all of the /usr/local/lib65/perl5/ files allowed me to run "stock" slic3r
(the one installed by default) and compile current version (got with git
clone https://github.com/alexrj/Slic3r.git as stated on README.md).

SALUDOS
ALVARO


Reply to this email directly or view it on GitHub
#1690 (comment).

@alranel
Copy link
Member

alranel commented Jun 22, 2015

@gralco, no output while typing the three commands above? I can't really believe that...

@gralco
Copy link

gralco commented Jun 24, 2015

@alexrj
No output.

Also, when I perform sudo perl Build.PL there is no generated "Build" file.

Take a look:

[ekuzmenko@localhost Slic3r]$ cd xs
[ekuzmenko@localhost xs]$ sudo perl Build.PL 
[ekuzmenko@localhost xs]$ sudo ./Build install
sudo: ./Build: command not found
[ekuzmenko@localhost xs]$ sudo ./Build.PL install
sudo: ./Build.PL: command not found
[ekuzmenko@localhost xs]$ sudo chmod 777 ./Build.PL 
[ekuzmenko@localhost xs]$ sudo ./Build.PL install
[ekuzmenko@localhost xs]$ ls
Build.PL  lib  MANIFEST  MANIFEST.SKIP  src  t  xsp

@HustLion
Copy link

@alexrj I guess the user can't build slic3r with perl 5.16 or higher, recommend use Perl-5.14.4

Those people above used high version perl, such as the first one @megalomaniac with perl-5.16.0, which definitely can't work. And @bmcage used 5.18 I guess ( in this comment there is a line cc -I/usr/lib/perl/5.18/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -xc++

Actually the newer version of Linux the new developers are using, the higher the possiblity they will encounter this problem and get upset. Because newer linux distributions ship perl 5.16 or even 5.18.

curl -L http://xrl.us/perlbrewinstall | bash
source ~/perl5/perlbrew/etc/bashrc
perlbrew install 5.14.4
perlbrew switch perl-5.14.4
perlbrew install-cpanm
git clone https://github.com/alexrj/Slic3r.git
cd Slic3r
CPANM=/home/hustlion/perl5/perlbrew/bin/cpanm perl Build.PL
CPANM=/home/hustlion/perl5/perlbrew/bin/cpanm perl Build.PL --gui
./slic3r.pl

I have updated the wiki page accroding to this. The CPANM path is changed (replace /home/hustlion/ by ~/).

Hope this can be helpful 😄.

@bmcage
Copy link

bmcage commented Jun 29, 2015

Asking people to use 5.14 via perlbrew with no automatic updates??? That is not a solution.

Sofware should be able to use Ubuntu 14.04 default packages. It has been a long time that I used Slic3r, but I got it running on Ubuntu 14.04 with perl 5.18 from one of the devel branches.

@lerouxb
Copy link

lerouxb commented Jun 29, 2015

I'm on Perl v5.12.5 on OSX Mavericks and having this issue, so I'm not convinced that's the problem.

@HustLion
Copy link

@bmcage Oh, I'm just offering a way to run the one on the master branch. Yes I'm thinking Slic3r should be able to run with the default one not just 5.14. Acutally two months ago I cloned Slic3r and can't compile it and finally found out that it's the version that I was using that caused the problem. Actually I found it out from the source code, I can't remember where it is. But the prompt was Running Slic3r under Perl >= 5.16 is not supported nor recommended (found from my notes). If you are still not convinced then I may find the exact line for you 😝 .

@lerouxb So,,, maybe your version is too old?

@HustLion
Copy link

@lerouxb By the way, I only tested the method with Ubuntu 14.04. So I don't know if it will work for you on OSX Mavericks. And your case meets the requirement that Perl <5.16, so,,, maybe you can try again and give some feedback about it?

@lerouxb
Copy link

lerouxb commented Jun 29, 2015

I have pulled the latest changes and ran the install again as specified in the wiki:
https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-OS-X

(Note that the wiki tells you that 5.16 won't work, so it tells you to set the default to 5.12 which I did, but then the error mentions 5.16 again, so I don't know what's going on there or how to force it to use the right version of perl.)

Here is the result of running it:
https://gist.github.com/lerouxb/bbe62b83e09ff5175779

The attached build.log is the contents of the build.log file.

@HustLion
Copy link

@lerouxb That wiki page you mentioned is not updated by me. And this is the one: https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux

Anyway, from your description, I can only offer a way to easily choose the version of perl that you wish to run.

The solution is to use perlbrew. With perlbrew, you can use perlbrew available to check the version of perl that is available for installation. And use perlbrew install 5.14.4 to install the version you choose (I use perl-5.14.4 as an example). This may take a while. After the installation is complete, you can use perlbrew switch perl-5.14.4 to change the version of perl to 5.14.4. Now use perl -v to check the version of your perl, it should be 5.14.4. If you want to switch back, you can just turn off perlbrew by perlbrew off, at this time if you run perl -v, it should be the version of perl that ships with your system.

To sum it up, use perlbrew to switch between different versions of perl. And try to compile again with perl-5.14.4. You can find the installation instructions on perlbrew homepage. I suggest you read how I deal with it on Ubuntu https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux. The solution may be similar.

And, sorry that I can't open the gist link that you provided due to our Great Fire Wall (Chinese,, hmm, 😢 .

@lordofhyphens
Copy link
Member

In my experience, perl 5.20.1 compiles Slic3r 1.2.x fine on Linux (and
Windows via StrawberryPerl). That's what I use for the basis of my Debian
bleeding-edge package (source is available on my fork, binary package at
https://drive.google.com/drive/u/1/folders/0B3aPl7CmzLRvfjBaQmNXNUFlbXlHNHhlLWQxMjQ3X0NjX2p3V3k1LU9EWktkTXNDcWgxeG8).
I am more likely to believe that issues compiling are related to other
issues in the system (libraries, broken CPAN, etc).

5.14 was released 2 years ago and is EOL'd (and isn't even shipped by
Debian Stable, one of the crustiest distros in terms of package age).

"Nothing unreal exists." - Kiri-kin-tha's First Law of Metaphysics.

On Mon, Jun 29, 2015 at 7:24 AM, HustLion [email protected] wrote:

@lerouxb https://github.com/lerouxb That wiki page you mentioned is not
updated by me. And this is the one:
https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux

Anyway, from your description, I can only offer a way to easily choose the
version of perl that you will to run.

The solution is to use perlbrew http://perlbrew.pl/. With perlbrew, you
can use perlbrew available to check the version of perl that is available
for installation. And use perlbrew install 5.14.4 to install the version
you choose (I use perl-5.14.4 as an example). This may take a while. After
the installation is complete, you can use perlbrew switch perl-5.14.4 to
change the version of perl to 5.14.4. Now use perl -v to check the
version of your perl, it should be 5.14.4. If you want to switch back, you
can just turn off perlbrew by perlbrew off, at this time if you run perl
-v, it should be the version of perl that ships with your system.

To sum it up, use perlbrew to switch between different versions of perl.
And try to compile again with perl-5.14.4. You can find the installation
instructions on perlbrew homepage http://perlbrew.pl/. I suggest you
read how I deal with it in Ubuntu
https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux.
The solution may be similar.

And, sorry that I can't open the gist link that you provided due to our
Great Fire Wall (Chinese,, hmm, [image: 😢] .


Reply to this email directly or view it on GitHub
#1690 (comment).

@alranel
Copy link
Member

alranel commented Jun 29, 2015

Actually, Slic3r works fine with all Perl versions except for 5.16.

@alranel
Copy link
Member

alranel commented Jun 29, 2015

Unfortunately, I don't have access to a Maverick machine so I can't test myself. Maybe a user-land perl installed with perlbrew helps.

@demolition602099
Copy link

image

Hi!,

I am having trouble compiling the slic3r. I have used Strawberry Pearl and Citrus Perl.

Thank you in advance

@lordofhyphens
Copy link
Member

Yeah, odds are your exact version of Perl is misconfigured or not
compatible. Gg.
On May 9, 2016 10:00 PM, "demolition602099" [email protected]
wrote:

[image: image]
https://cloud.githubusercontent.com/assets/19219093/15134382/76792356-1620-11e6-99fa-ec9896046a92.png

Hi!,

I am having trouble compiling the slic3r. I have used Strawberry Pearl and
Citrus Perl.

Thank you in advance


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1690 (comment)

@demolition602099
Copy link

My strawberry Pearl 5.14.
How can i change my configuration?
Thank You for the reply

On 5/9/2016 9:33 PM, Joseph Lenox wrote:

Yeah, odds are your exact version of Perl is misconfigured or not
compatible. Gg.
On May 9, 2016 10:00 PM, "demolition602099" [email protected]
wrote:

[image: image]

https://cloud.githubusercontent.com/assets/19219093/15134382/76792356-1620-11e6-99fa-ec9896046a92.png

Hi!,

I am having trouble compiling the slic3r. I have used Strawberry
Pearl and
Citrus Perl.

Thank you in advance


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1690 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1690 (comment)

@a4jp-com
Copy link

Microsoft Windows Version 10.0.10586 2015 Microsoft Corporation. All rights reserved.

C:\Users\design>perl -v

This is perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

I use the 32 bit version of Perl v5.22 and everything complies well.

@demolition602099
Copy link

What kind of installer did you use?
Strawberry? or something?
Thanks

On 5/10/2016 2:03 AM, a4jp-com wrote:

Microsoft Windows Version 10.0.10586 <c> 2015 Microsoft
Corporation. All rights reserved.

C:\Users\design>perl -v

This is perl 5, version 22, subversion 0 (v5.22.0) built for
MSWin32-x86-multi-thread-64int

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

I use the 32 bit version of Perl v5.22 and everything complies well.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1690 (comment)

@demolition602099
Copy link

I have made it working.
Mine was Windows 10 64bit.
Strawberry 5.22.1.3 64Bit Version
MingW 64 for perl ( Downloaded at source forge)

On 5/10/2016 5:03 PM, a4jp-com wrote:

of Perl v5.22 and every

@lordofhyphens
Copy link
Member

Closing the issue then.

@dergrunepunkt
Copy link

Fixed with:

perl -MCPAN -e shell
CPAN> o conf make /usr/bin/make

@robbycandra
Copy link

Thanks. @dergrunepunkt solution is working.

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

No branches or pull requests