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

slic3r-prusa3d: 1.40.1 -> 1.41.0 #44077

Merged
merged 3 commits into from Oct 9, 2018
Merged

Conversation

Moredread
Copy link
Contributor

@Moredread Moredread commented Jul 25, 2018

Motivation for this change

1.41.0 isn't out yet, but I want to document what needs to be updated for the final release.

The latest alpha needs a few more dependencies. Also NLOPT needs to be set manually, as the package isn't found otherwise. :/

gtest is needed although it seems unittests aren't even build by default. Might be worth it to report that to upstream.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@Moredread
Copy link
Contributor Author

Moredread commented Aug 31, 2018

1.41.0 has been tagged upstream, just waiting till they release it officially.

edit it was released

@Moredread Moredread changed the title [WIP] slic3r-prusa3d: 1.40.1 -> 1.41.0 slic3r-prusa3d: 1.40.1 -> 1.41.0 Sep 2, 2018
@Moredread
Copy link
Contributor Author

@tweber Can you have look please?

@matthewbauer
Copy link
Member

@GrahamcOfBorg build slic3r-prusa3d

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: slic3r-prusa3d

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1000:72:   required from 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1180:33:   required from here
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:462:32: warning: unused variable 'mask' [-Wunused-variable]
             const std::string *mask     = nullptr;
                                ^~~~
[ 95%] Linking CXX static library liblibslic3r.a
[ 95%] Built target libslic3r
make: *** [Makefile:141: all] Error 2
builder for '/nix/store/9f338pkpvwvjn0n3xpjixlsc2hh4adcd-slic3r-prusa-edition-1.41.0.drv' failed with exit code 2
error: build of '/nix/store/9f338pkpvwvjn0n3xpjixlsc2hh4adcd-slic3r-prusa-edition-1.41.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0
shrinking /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0/lib/slic3r-prusa3d/auto/Slic3r/XS/XS.so
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0/lib  /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0/bin
patching script interpreter paths in /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0
/nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0/bin/.slic3r-prusa3d-wrapped: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/kdbzhdzm43r58smfx29x3233dagihxp5-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0...
/nix/store/n6p32swhj3p9ds0rn9n0i8zd7wbsc013-slic3r-prusa-edition-1.41.0

eigen
glew
gtest
makeWrapper
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in nativeBuildInputs since it is only used at build time, never at runtime.

Copy link
Contributor Author

@Moredread Moredread Oct 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved them, as well as cmake. I'm not sure though if this is the cause for failing on aarch64.

pkgs/applications/misc/slic3r/prusa3d.nix Show resolved Hide resolved
@Moredread Moredread force-pushed the slic3r-prusa3d/1.41.0 branch 2 times, most recently from 4bd1073 to 9b7a15a Compare October 2, 2018 19:46
@timokau
Copy link
Member

timokau commented Oct 2, 2018

@GrahamcOfBorg build slic3r-prusa3d

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: slic3r-prusa3d

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1000:72:   required from 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1180:33:   required from here
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:462:32: warning: unused variable 'mask' [-Wunused-variable]
             const std::string *mask     = nullptr;
                                ^~~~
[ 95%] Linking CXX static library liblibslic3r.a
[ 95%] Built target libslic3r
make: *** [Makefile:141: all] Error 2
builder for '/nix/store/z0my0l3v811ivgjsi7l589szcmg1yvbv-slic3r-prusa-edition-1.41.0.drv' failed with exit code 2
error: build of '/nix/store/z0my0l3v811ivgjsi7l589szcmg1yvbv-slic3r-prusa-edition-1.41.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
shrinking /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib/slic3r-prusa3d/auto/Slic3r/XS/XS.so
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib  /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin
patching script interpreter paths in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin/.slic3r-prusa3d-wrapped: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/hjn5kq7yq18z31ajq7lfd6imjwz21lh6-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0...
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0

@timokau
Copy link
Member

timokau commented Oct 3, 2018

Any idea regarding the aarch64 failure?

@Moredread
Copy link
Contributor Author

@timokau Sadly no, but it seems to happen during linking of libslic3r.a

Likely the problem has been happening in earlier versions though. #43102 also failed.

I've marked aarch64-linux as unsupported for now.

@timokau
Copy link
Member

timokau commented Oct 3, 2018

@GrahamcOfBorg build slic3r-prusa3d

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: slic3r-prusa3d

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1000:72:   required from 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:1180:33:   required from here
/build/source/xs/src/libslic3r/PlaceholderParser.cpp:462:32: warning: unused variable 'mask' [-Wunused-variable]
             const std::string *mask     = nullptr;
                                ^~~~
[ 95%] Linking CXX static library liblibslic3r.a
[ 95%] Built target libslic3r
make: *** [Makefile:141: all] Error 2
builder for '/nix/store/z0my0l3v811ivgjsi7l589szcmg1yvbv-slic3r-prusa-edition-1.41.0.drv' failed with exit code 2
error: build of '/nix/store/z0my0l3v811ivgjsi7l589szcmg1yvbv-slic3r-prusa-edition-1.41.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
shrinking /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib/slic3r-prusa3d/auto/Slic3r/XS/XS.so
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib  /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin
patching script interpreter paths in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin/.slic3r-prusa3d-wrapped: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/hjn5kq7yq18z31ajq7lfd6imjwz21lh6-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0...
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0

@timokau
Copy link
Member

timokau commented Oct 3, 2018

Seems like that didn't work. I'm not sure what the best way to remove aarch64 from the platforms is. I've seen people explicitly specifying x86 and x86_64 explicitly, which doesn't really seem right to me either.

@Moredread
Copy link
Contributor Author

Moredread commented Oct 3, 2018

@timokau I've posted on discourse (https://discourse.nixos.org/t/marking-a-package-broken-for-certain-platforms/1057) regarding this question.

@Moredread Moredread mentioned this pull request Oct 6, 2018
4 tasks
@Moredread
Copy link
Contributor Author

Moredread commented Oct 8, 2018

@timokau I've marked it as broken now. On my system it shows as broken when cross compiling. I have to wait for access to the aarch64 build host before I can work on that issue and would advocate for merging this PR in the meantime, as 1.41.0 is the first version that supports the Prusa MMU 2.0.

For that reason I would also like to backport this to 18.09.

@timokau
Copy link
Member

timokau commented Oct 9, 2018

@GrahamcOfBorg build slic3r-prusa3d

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: slic3r-prusa3d

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: slic3r-prusa3d

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slic3r-prusa3d

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
shrinking /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib/slic3r-prusa3d/auto/Slic3r/XS/XS.so
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/lib  /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin
patching script interpreter paths in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0/bin/.slic3r-prusa3d-wrapped: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/hjn5kq7yq18z31ajq7lfd6imjwz21lh6-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0...
/nix/store/dbxa9wbqdr0ckfzd0qh89kgv6pvw8fc5-slic3r-prusa-edition-1.41.0

@timokau
Copy link
Member

timokau commented Oct 9, 2018

Thank you, looks good! The aarch64 support probably isn't so essential that you must spent much time on it if you don't want to.

would advocate for merging this PR in the meantime, as 1.41.0 is the first version that supports the Prusa MMU 2.0.

The policy is to backport bug fixes and maybe additions, but not simply features. The reason for that is that every new feature has the potential to break something and the releases are supposed to be as stable as possible. You can however easily have a system based on the stable release and still install the latest version of some software from the unstable channel. The wiki has more info on that.

@timokau timokau merged commit 9fcfcf5 into NixOS:master Oct 9, 2018
@Moredread Moredread deleted the slic3r-prusa3d/1.41.0 branch November 18, 2018 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants