-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Comments
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 It is highly recommended to check if the problem persists without those first. Think I need help! |
Might be fixed now. Can you confirm? |
@alexrj I tried to test the latest master, but still the build fails with these errors:
Switched to stable branch now which I got working, but it showed some error during build as well:
Anyway, the missing infill problems seem to be solved in stable, thanks a lot! |
sudo perl Build.PL --gui App::cpanminus is up to date. (1.7001) Then I try running it I get this: 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. Not sure what’s causing this still need help. |
@jonaskuehling, yeah sorry, I fixed that one now. @megalomaniac, try:
If the Slic3r-XS step fails, please do |
mega@mas: IT JUST HANGS HERE FOR EVER Slic3r$ sudo cpanm -v ./xs Written by John Gilmore and Jay Fenlason. Maybe my perl is broken somehow? |
@alexrj looks good, stable builds an runs without errors so far! |
@jonaskuehling, perfect! I can break it again now. :-P @megalomaniac, try now. |
On same configuration 13.10 64bit, I obtain: in the build.log at end: Using Mipmap Hold down arrow keys to rotate, 'r' to reverse, 's' to stop. Idle timeout; completing test I would rather not use --force. |
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 Hope you guys can help me! |
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 |
Still can't compile. |
Trying to build on OSX Mavericks, getting:
|
It'd help if you included the contents of /Users/leroux/.cpanm/work/ "Nothing unreal exists." - Kiri-kin-tha's First Law of Metaphysics. On Fri, Mar 27, 2015 at 2:26 PM, Le Roux Bodenstein <
|
That IS the contents of that file. It just happens to reference itself at the end. |
@lerouxb, try manually:
If it fails, post output here... |
I'm on Fedora 22, when I try When I do what alexrj said I get no output whatsoever. |
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 |
Ah, CPAN hell. Yeah, the basic compile instructions tend to make your perl
|
@gralco, no output while typing the three commands above? I can't really believe that... |
@alexrj Also, when I perform Take a look:
|
@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 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 😄. |
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. |
I'm on Perl v5.12.5 on OSX Mavericks and having this issue, so I'm not convinced that's the problem. |
@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 @lerouxb So,,, maybe your version is too old? |
@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? |
I have pulled the latest changes and ran the install again as specified in the wiki: (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: The attached build.log is the contents of the build.log file. |
@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 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, 😢 . |
In my experience, perl 5.20.1 compiles Slic3r 1.2.x fine on Linux (and 5.14 was released 2 years ago and is EOL'd (and isn't even shipped by "Nothing unreal exists." - Kiri-kin-tha's First Law of Metaphysics. On Mon, Jun 29, 2015 at 7:24 AM, HustLion [email protected] wrote:
|
Actually, Slic3r works fine with all Perl versions except for 5.16. |
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. |
Yeah, odds are your exact version of Perl is misconfigured or not
|
My strawberry Pearl 5.14. On 5/9/2016 9:33 PM, Joseph Lenox wrote:
|
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 Complete documentation for Perl, including FAQ lists, should be found on I use the 32 bit version of Perl v5.22 and everything complies well. |
What kind of installer did you use? On 5/10/2016 2:03 AM, a4jp-com wrote:
|
I have made it working. On 5/10/2016 5:03 PM, a4jp-com wrote:
|
Closing the issue then. |
Fixed with:
|
Thanks. @dergrunepunkt solution is working. |
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.
The text was updated successfully, but these errors were encountered: