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

gecode_3: use bash to run "configure", fix error #36171

Merged
merged 1 commit into from Mar 4, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Mar 1, 2018

Error:

/configure: ./configure.lineno: line 11561: syntax error: unexpected "("

Likely is specific to builder's /bin/sh.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

Error:

/configure: ./configure.lineno: line 11561: syntax error: unexpected "("
@dtzWill
Copy link
Member Author

dtzWill commented Mar 1, 2018

@GrahamcOfBorg build gecode_3

@dtzWill
Copy link
Member Author

dtzWill commented Mar 1, 2018

Err I assumed perl was a nativeBuildInput? Not sure though.

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

mkdir -p /nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3/bin; \
for_exampleexe="examples/alpha examples/bacp examples/bibd examples/donald examples/efpa examples/eq20 examples/golomb-ruler examples/graph-color examples/grocery examples/ind-set examples/magic-sequence examples/magic-square examples/money examples/ortho-latin examples/partition examples/photo examples/queens examples/sudoku examples/kakuro examples/nonogram examples/pentominoes examples/crowded-chess examples/black-hole examples/minesweeper examples/domino examples/steel-mill examples/sports-league examples/all-interval examples/langford-number examples/warehouses examples/radiotherapy examples/word-square examples/crossword examples/open-shop examples/car-sequencing examples/sat examples/bin-packing examples/knights examples/tsp examples/perfect-square examples/schurs-lemma examples/dominating-queens examples/crew examples/golf examples/hamming examples/steiner examples/queen-armies" ; \
for f in $for_exampleexe; do cp $f /nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3/bin; done \

post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3/lib  /nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3/bin
patching script interpreter paths in /nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3
/nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3/bin/mzn-gecode: interpreter directive changed from "/bin/sh" to "/nix/store/pkjmwq7sqrvjg7cjiph6hq0khsmfl6p8-bash-4.4-p12/bin/sh"
/nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

/nix/store/7akqw8r50x96l6s1vp3gqiky34yqwcm6-gecode-3.7.3

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeset.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeminimodel.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodesearch.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeflatzinc.so.32.0
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib  /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/bin 
patching script interpreter paths in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3
/nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/bin/mzn-gecode: interpreter directive changed from "/bin/sh" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/sh"
checking for references to /tmp/nix-build-gecode-3.7.3.drv-0 in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3...
/nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeset.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeminimodel.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodeflatzinc.so.32.0
shrinking /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib/libgecodesupport.so.32.0
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/lib  /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/bin 
patching script interpreter paths in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3
/nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3/bin/mzn-gecode: interpreter directive changed from "/bin/sh" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/sh"
checking for references to /tmp/nix-build-gecode-3.7.3.drv-0 in /nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3...
/nix/store/y5pfahhmbm8r8bjph7vqgslz05bjjx63-gecode-3.7.3

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

./gecode/support/thread/pthreads.hpp:109:71: warning: throw will always call terminate() [-Wterminate]
       throw OperatingSystemError("Event::~Event[pthread_cond_destroy]");
                                                                       ^
./gecode/support/thread/pthreads.hpp:109:71: note: in C++11 destructors default to noexcept
./gecode/support/thread/pthreads.hpp:111:72: warning: throw will always call terminate() [-Wterminate]
       throw OperatingSystemError("Event::~Event[pthread_mutex_destroy]");
                                                                        ^
./gecode/support/thread/pthreads.hpp:111:72: note: in C++11 destructors default to noexcept
building of '/nix/store/ap820p2vpjskpfc5k3shdwzf98spd64d-gecode-3.7.3.drv' timed out after 3600 seconds
�[31;1merror:�[0m build of '/nix/store/ap820p2vpjskpfc5k3shdwzf98spd64d-gecode-3.7.3.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

./gecode/support/thread/pthreads.hpp:109:71: warning: throw will always call terminate() [-Wterminate]
       throw OperatingSystemError("Event::~Event[pthread_cond_destroy]");
                                                                       ^
./gecode/support/thread/pthreads.hpp:109:71: note: in C++11 destructors default to noexcept
./gecode/support/thread/pthreads.hpp:111:72: warning: throw will always call terminate() [-Wterminate]
       throw OperatingSystemError("Event::~Event[pthread_mutex_destroy]");
                                                                        ^
./gecode/support/thread/pthreads.hpp:111:72: note: in C++11 destructors default to noexcept
building of '/nix/store/ap820p2vpjskpfc5k3shdwzf98spd64d-gecode-3.7.3.drv' timed out after 3600 seconds
�[31;1merror:�[0m build of '/nix/store/ap820p2vpjskpfc5k3shdwzf98spd64d-gecode-3.7.3.drv' failed

@dtzWill dtzWill requested a review from cstrahan March 1, 2018 17:40
@Mic92 Mic92 merged commit 0ea54b1 into NixOS:master Mar 4, 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