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

freecad: fix by using python-enabled boost #43312

Closed
wants to merge 1 commit into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jul 11, 2018

Fixes #43305

  • 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.

@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: freecad

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 x86_64-linux (full log)

Attempted: freecad

Partial log (click to expand)

[ 27%] Built target Complete
[ 27%] Built target CompleteGui
[ 28%] Built target Test
[ 28%] Built target QtUnitGui
[ 29%] Built target Image
[ 29%] Built target ImageGui
[ 32%] Built target Mesh
[ 34%] Built target MeshGui
building of '/nix/store/chn6si2mi1y89vsyh5cmhhddy24dnnpz-freecad-0.17.drv' timed out after 1800 seconds
error: build of '/nix/store/chn6si2mi1y89vsyh5cmhhddy24dnnpz-freecad-0.17.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: freecad

Partial log (click to expand)

                          ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/Assign.h: In instantiation of 'struct Eigen::internal::assign_traits<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> > > >':
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/Assign.h:506:64:   required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> > >; Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>]'
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/Assign.h:527:123:   required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> > >]'
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/Assign.h:571:62:   required from 'Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> > >; Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>]'
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/GeneralProduct.h:266:138:   required from 'void Eigen::GeneralProduct<Lhs, Rhs, 2>::set::operator()(const Dst&, const Src&) const [with Dst = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; Src = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> > >; Lhs = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> >; Rhs = Eigen::Transpose<Eigen::Matrix<double, -1, 1> >]'
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/GeneralProduct.h:232:9:   required from 'void Eigen::internal::outer_product_selector_run(const ProductType&, Dest&, const Func&, const Eigen::internal::false_type&) [with ProductType = Eigen::GeneralProduct<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> >, Eigen::Transpose<Eigen::Matrix<double, -1, 1> >, 2>; Dest = Eigen::Matrix<double, -1, -1>; Func = Eigen::GeneralProduct<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> >, Eigen::Transpose<Eigen::Matrix<double, -1, 1> >, 2>::set]'
/nix/store/nlpznszsbhfys3vlmd2gzxmyh58qsmrn-eigen-3.2.10/include/eigen3/Eigen/src/Core/GeneralProduct.h:279:43:   required from 'void Eigen::GeneralProduct<Lhs, Rhs, 2>::evalTo(Dest&) const [with Dest = Eigen::Matrix<double, -1, -1>; Lhs = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -1, 1> >; Rhs = Eigen::Transpose<Eigen::Matrix<double, -1, 1> >]'
building of '/nix/store/kgpyaxw7rb65lybkdpf9zx69q1m7cpca-freecad-0.17.drv' timed out after 3600 seconds
error: build of '/nix/store/kgpyaxw7rb65lybkdpf9zx69q1m7cpca-freecad-0.17.drv' failed

@FRidh
Copy link
Member

FRidh commented Jul 11, 2018

I find this strange that this is needed. See

  # Build boost for this specific Python version
  # TODO: use separate output for libboost_python.so
  boost = toPythonModule (pkgs.boost.override {
    inherit (self) python numpy;
    enablePython = true;
  });

in python-packages.nix. I would expect that boost to be used, or is the with not shadowing the boost as I expected.

@FRidh
Copy link
Member

FRidh commented Jul 11, 2018

Also note that I recently added a patch to freecad for the newer boost.

@FRidh
Copy link
Member

FRidh commented Jul 11, 2018

Pushed f96c849

@FRidh FRidh closed this Jul 11, 2018
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

3 participants