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

init bulletml and rrootage #35482

Merged
merged 2 commits into from Jun 1, 2018
Merged

init bulletml and rrootage #35482

merged 2 commits into from Jun 1, 2018

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Feb 24, 2018

Motivation for this change

I'm packaging some of the awesome games by Kenta Cho. This is the first.

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

@Mic92
Copy link
Member

Mic92 commented Mar 4, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

make[1]: Entering directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src/tinyxml'
g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O2   tinyxml.cpp -o tinyxml.o
/nix/store/pkjmwq7sqrvjg7cjiph6hq0khsmfl6p8-bash-4.4-p12/bin/bash: g++: command not found
make[1]: *** [Makefile:109: tinyxml.o] Error 127
make[1]: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src/tinyxml'
make: *** [Makefile:33: tinyxml/tinyxml.o] Error 2
make: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src'
builder for '/nix/store/w7p1018kvp5rchnvx70msk0zamkdq441-bulletml-0.0.6.drv' failed with exit code 2
cannot build derivation '/nix/store/va4kvckq9zff6pvxm1q1ar93awv9xxqp-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/va4kvckq9zff6pvxm1q1ar93awv9xxqp-rrootage-0.23a.drv', '/nix/store/w7p1018kvp5rchnvx70msk0zamkdq441-bulletml-0.0.6.drv' failed

(debianPatch "warnings" "18px79x4drvm6dy6w6js53nzlyvha7qaxhz5a99b97pyk3qc7i9g")
(debianPatch "makefile" "0z6yxanxmarx0s08gh12pk2wfqjk8g797wmfcqczdv1i6xc7nqzp")
(debianPatch "includes" "1n11j5695hs9pspslf748w2cq5d78s6bwhyl476wp6gcq6jw20bw")
(debianPatch "get-rid-of-boost" "1wc8jxlxmdx53mhgx55wzysxxbbrdmq6dpfbb8rrrbkdz5b59hjm")
Copy link
Member

Choose a reason for hiding this comment

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

Have those patches been reviewed if they apply to Nixos as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not individually. I know that without them it does not compile and with all of them it works fine. I'll review them one by one and remove the unnecessary ones.

sha256 = "01zzg4ih3kmbhsn1p9zr7g8srv1d2dhrp8cdd86y9qq233idnkln";
};

patches = [
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm checking right now, but I'm unsure about some.

For example removing this patch seems to have no effect on the runtime behavior of rrootage, but looking at the description it makes sense to include it anyway.

What do you think I should do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or the "high res by default" patch or the "windowed mode" patch, which are both really useful but not strictly necessary

Copy link
Member Author

Choose a reason for hiding this comment

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

@Mic92 ping?

Maybe I should just fork that repository and apply those patches...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a
shrinking /nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a/bin/rrootage
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a
checking for references to /build in /nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a...
/nix/store/9h7xv8b4spm5lp5s6p42drdm7w0s74m0-bulletml-0.0.6
/nix/store/gvxqlw2vxcgan3rgav9z51848x73h5s9-rrootage-0.23a

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)


  0 3819k    0 16384    0     0  20505      0  0:03:10 --:--:--  0:03:10 20505
100 3819k  100 3819k    0     0  2845k      0  0:00:01  0:00:01 --:--:-- 7004k
building path(s) ‘/nix/store/smavjxhx7mx35w1gc2cmh1r8a1kqigp6-warnings.patch’

trying https://sources.debian.org/data/main/b/bulletml/0.0.6-7/debian/patches/warnings.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1511  100  1511    0     0  14254      0 --:--:-- --:--:-- --:--:-- 14121
cannot build derivation ‘/nix/store/99qv03iqvvn92i2a3vsvx0gfnl48dk4i-bulletml-0.0.6.drv’: 2 dependencies couldn't be built
cannot build derivation ‘/nix/store/4fhpslkxh0jp1m10srpikq75p31cscvs-rrootage-0.23a.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/4fhpslkxh0jp1m10srpikq75p31cscvs-rrootage-0.23a.drv’, ‘/nix/store/99qv03iqvvn92i2a3vsvx0gfnl48dk4i-bulletml-0.0.6.drv’ failed

Copy link
Member

@matthewbauer matthewbauer left a comment

Choose a reason for hiding this comment

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

See @GrahamcOfBorg build log

@fgaz
Copy link
Member Author

fgaz commented Apr 25, 2018

@matthewbauer I can't see the full log. I think it got deleted. I only see

Subscribing to "nixos/nixpkgs.35482"...

@Mic92
Copy link
Member

Mic92 commented May 7, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

make[1]: Entering directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src/tinyxml'
g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O2   tinyxml.cpp -o tinyxml.o
/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash: g++: command not found
make[1]: *** [Makefile:109: tinyxml.o] Error 127
make[1]: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src/tinyxml'
make: *** [Makefile:33: tinyxml/tinyxml.o] Error 2
make: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src'
builder for '/nix/store/801aqgampdr1zs3hszq8n0qgbbp4v85k-bulletml-0.0.6.drv' failed with exit code 2
cannot build derivation '/nix/store/80jhnmglywlad132gb0jq3aa7cd3dp61-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/801aqgampdr1zs3hszq8n0qgbbp4v85k-bulletml-0.0.6.drv', '/nix/store/80jhnmglywlad132gb0jq3aa7cd3dp61-rrootage-0.23a.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a
shrinking /nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a/bin/rrootage
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a
checking for references to /build in /nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a...
/nix/store/p7ra211xz1lrgr46hrs3c2084l7pg94w-bulletml-0.0.6
/nix/store/jx5cdlkyllrrgpc3zajzxfdzl6lfjxgf-rrootage-0.23a

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a
shrinking /nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a/bin/rrootage
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a
checking for references to /build in /nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a...
/nix/store/5vz2a0xkryqp2qy2xh0c93a82zzcdap8-bulletml-0.0.6
/nix/store/pwi2xgqky5c91iby4fdmbaspm2xdvz4z-rrootage-0.23a

(debianPatch "get-rid-of-boost" "1wc8jxlxmdx53mhgx55wzysxxbbrdmq6dpfbb8rrrbkdz5b59hjm")
];

makeFlags = [ "-C src" ];
Copy link
Member

@Mic92 Mic92 May 7, 2018

Choose a reason for hiding this comment

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

Adding "CC=c++" to makeFlags hopefully fixes the macOS build.

@fgaz fgaz force-pushed the kenta-cho branch 2 times, most recently from b46e8bf to c0e23d4 Compare May 7, 2018 14:18
@fgaz
Copy link
Member Author

fgaz commented May 7, 2018

@Mic92 could you trigger a rebuild?

@Mic92
Copy link
Member

Mic92 commented May 8, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

copying path '/nix/store/y9qb0d91hqbzfpbyj6dni4dvr615g5a2-apple-framework-Carbon' from 'https://cache.nixos.org'...
copying path '/nix/store/adzfilxh0kbf997f2lra7fq9zb7qnhyr-apple-framework-AudioUnit' from 'https://cache.nixos.org'...
copying path '/nix/store/svzj6cghlv8racrv60lzb1qnp6i091hx-apple-framework-AudioToolbox' from 'https://cache.nixos.org'...
copying path '/nix/store/lps88rxfw6ys98yajnszy5h4kgd7wnv4-apple-framework-AppKit' from 'https://cache.nixos.org'...
copying path '/nix/store/jqy9pna6kb19wxfw4cjim7ajvqc5487k-apple-framework-Cocoa' from 'https://cache.nixos.org'...
copying path '/nix/store/abldjv9ykqqsgh8pax2imv5g2aa3k8zb-SDL-1.2.15-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/w4xpcvgnnw16y4ij9l2wvwdriynpgdh9-smpeg-svn390' from 'https://cache.nixos.org'...
copying path '/nix/store/6sbwx27x5xb65pcs1675cmdy2dvnm9ka-SDL_mixer-1.2.12' from 'https://cache.nixos.org'...
cannot build derivation '/nix/store/ai7li3dd08jrqcbpzisrzmi4y6pfsnvq-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/ai7li3dd08jrqcbpzisrzmi4y6pfsnvq-rrootage-0.23a.drv', '/nix/store/cxj0wcz35ih42p5simdnaiyk6pj4q4ak-bulletml-0.0.6.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a
shrinking /nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a/bin/rrootage
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a
checking for references to /build in /nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a...
/nix/store/cvbc3hzjwx0bljbczsnkk6q0n55yqzlj-bulletml-0.0.6
/nix/store/axdmwlwpx1f6vifjjydw503k72jvnbby-rrootage-0.23a

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:09 --:--:--     0curl: (7) Failed to connect to shinh.skr.jp port 80: Connection timed out
error: cannot download libbulletml-0.0.6.tar.bz2 from any mirror
builder for '/nix/store/2x1b6i0sxq1lsv9d8q1qbbz9c7g7qd47-libbulletml-0.0.6.tar.bz2.drv' failed with exit code 1
cannot build derivation '/nix/store/jq7c7m0h400wkggjw187abd4qh1s88k3-bulletml-0.0.6.drv': 2 dependencies couldn't be built
copying path '/nix/store/v25cw2l4vdnqa9v04gih6mqfly8rvhdr-smpeg-svn390' from 'https://cache.nixos.org'...
copying path '/nix/store/v97w9lmrdjy4wc5z7cnfg0054zdsmdiq-SDL_mixer-1.2.12' from 'https://cache.nixos.org'...
cannot build derivation '/nix/store/4awihn55mmq7fslcyp30jag7yg0s3ipb-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/4awihn55mmq7fslcyp30jag7yg0s3ipb-rrootage-0.23a.drv', '/nix/store/jq7c7m0h400wkggjw187abd4qh1s88k3-bulletml-0.0.6.drv' failed


makeFlags = [
"-C src"
"CC=c++" # Needed for darwin
Copy link
Member

Choose a reason for hiding this comment

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

My bad CXX=c++ and CC=cc hopefully produce better results.

@Mic92
Copy link
Member

Mic92 commented May 8, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

c++ -c -Wall -Wno-unknown-pragmas -Wno-format -O2   tinyxmlerror.cpp -o tinyxmlerror.o
g++ -o xmltest  tinyxml.o tinyxmlparser.o xmltest.o tinyxmlerror.o
/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash: g++: command not found
make[1]: *** [Makefile:101: xmltest] Error 127
make[1]: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src/tinyxml'
make: *** [Makefile:33: tinyxml/tinyxml.o] Error 2
make: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src'
builder for '/nix/store/skgk5qsa8ia66gv89z7al0iiba29zqc2-bulletml-0.0.6.drv' failed with exit code 2
cannot build derivation '/nix/store/bav2spdqnyjfijwqjjmny2yyb0k0779s-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/bav2spdqnyjfijwqjjmny2yyb0k0779s-rrootage-0.23a.drv', '/nix/store/skgk5qsa8ia66gv89z7al0iiba29zqc2-bulletml-0.0.6.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a
shrinking /nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a/bin/rrootage
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a
checking for references to /build in /nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a...
/nix/store/5sgd5m5fp2zv3p0bipnqzgmzld1wl4il-bulletml-0.0.6
/nix/store/gmz311f195x0dnvzk9xhcrj7h7wivfz7-rrootage-0.23a

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a
shrinking /nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a/bin/rrootage
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a
checking for references to /build in /nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a...
/nix/store/1pdm2g9kx1d4p1c812ycjpghx7360b9s-bulletml-0.0.6
/nix/store/vkhpjz1lzk35lblxw3pfbwb0n96i4cby-rrootage-0.23a

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a
shrinking /nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a/bin/rrootage
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a
checking for references to /build in /nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a...
/nix/store/vsfpknvyvikb4ipmg4qb9766xhjlshdk-bulletml-0.0.6
/nix/store/f9gfd1pv384q9qbx3mnh9jgl7iybh976-rrootage-0.23a

@Mic92
Copy link
Member

Mic92 commented May 8, 2018

Looks good to me now. If you could squash my trial and errors back into the bulletml commit this pull request should be good to go.

@Mic92
Copy link
Member

Mic92 commented May 8, 2018

Ah no. now we see more c++ legacy stuff: cuberite/cuberite#424

@fgaz
Copy link
Member Author

fgaz commented May 8, 2018

cuberite/cuberite#464 (comment) seems to suggest exporting those values rather than passing them to make... is that the same thing?

Or maybe we should patch the c file like cuberite/cuberite#424 (comment)

@Mic92
Copy link
Member

Mic92 commented May 8, 2018

environment or not is the same thing in make. tr1/memory can be changed to memory on all platforms I think.

@fgaz
Copy link
Member Author

fgaz commented May 8, 2018

Patch it is then

@fgaz
Copy link
Member Author

fgaz commented May 8, 2018

I just discovered that it was the remove-boost debian patch that introduced the tr1/memory include. I removed that patch and installed the boost files too.

Could you try to rebuild now, @Mic92 ?

@Mic92
Copy link
Member

Mic92 commented May 9, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:17: libbulletml.so] Error 1
make: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src'
builder for '/nix/store/dcvyh3nd7v6mxqdyp1cgdzky58z1szcr-bulletml-0.0.6.drv' failed with exit code 2
copying path '/nix/store/jqy9pna6kb19wxfw4cjim7ajvqc5487k-apple-framework-Cocoa' from 'https://cache.nixos.org'...
copying path '/nix/store/abldjv9ykqqsgh8pax2imv5g2aa3k8zb-SDL-1.2.15-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/w4xpcvgnnw16y4ij9l2wvwdriynpgdh9-smpeg-svn390' from 'https://cache.nixos.org'...
copying path '/nix/store/6sbwx27x5xb65pcs1675cmdy2dvnm9ka-SDL_mixer-1.2.12' from 'https://cache.nixos.org'...
cannot build derivation '/nix/store/yrd2pijx9q9sd5is4jqibrsq1m4h4fk7-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dcvyh3nd7v6mxqdyp1cgdzky58z1szcr-bulletml-0.0.6.drv', '/nix/store/yrd2pijx9q9sd5is4jqibrsq1m4h4fk7-rrootage-0.23a.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a
shrinking /nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a/bin/rrootage
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a
checking for references to /build in /nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a...
/nix/store/5flspkl3z9jb3x7wa3vdb0pryv41aicx-bulletml-0.0.6
/nix/store/j0x6m18gqxx67va7h5qfzphwap5hqhpk-rrootage-0.23a

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)


trying http://shinh.skr.jp/libbulletml/libbulletml-0.0.6.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:10 --:--:--     0curl: (7) Failed to connect to shinh.skr.jp port 80: Connection timed out
error: cannot download libbulletml-0.0.6.tar.bz2 from any mirror
builder for '/nix/store/2x1b6i0sxq1lsv9d8q1qbbz9c7g7qd47-libbulletml-0.0.6.tar.bz2.drv' failed with exit code 1
cannot build derivation '/nix/store/mr4i4qv9k5rpnmgnkmnq41m5q4zc0cn4-bulletml-0.0.6.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/2af3g8m97praqhq4yk8ngsaj0dy172gx-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/2af3g8m97praqhq4yk8ngsaj0dy172gx-rrootage-0.23a.drv', '/nix/store/mr4i4qv9k5rpnmgnkmnq41m5q4zc0cn4-bulletml-0.0.6.drv' failed

@fgaz
Copy link
Member Author

fgaz commented May 9, 2018

The x86_64-linux failure is spurious.

darwin says ld: unknown option: -soname. From what I found it seems to require -install_name instead of -soname

@fgaz
Copy link
Member Author

fgaz commented May 21, 2018

@Mic92 last try, could you trigger a rebuild?

If that fails can we merge this as is? Maybe with platforms=linux and a comment referencing this discussion.

Without a darwin machine to edit-test-iterate this on, fixing it is a long and painful process

@fgaz
Copy link
Member Author

fgaz commented May 21, 2018

I'm not even sure if that builtins.currentSystem comparison does what I think it does

@Mic92
Copy link
Member

Mic92 commented May 22, 2018

@GrahamcOfBorg build bulletml rrootage

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a
shrinking /nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a/bin/rrootage
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a
checking for references to /build in /nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a...
/nix/store/qgmkv0rx49khjm00nrnbfrx51jzngrc4-bulletml-0.0.6
/nix/store/hn85bav1mn2fhqvz6zdzn2x7dfwy66ab-rrootage-0.23a

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

        -Wl,-soname,libbulletml.so.0d2 \
        -o libbulletml.so.0d2.0 \
        *.o tinyxml/tiny*.o
ld: unknown option: -soname
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:17: libbulletml.so] Error 1
make: Leaving directory '/private/tmp/nix-build-bulletml-0.0.6.drv-0/bulletml/src'
builder for '/nix/store/dcvyh3nd7v6mxqdyp1cgdzky58z1szcr-bulletml-0.0.6.drv' failed with exit code 2
cannot build derivation '/nix/store/y7y7jbs412qk87jzch7ck6v1rjlzshq0-rrootage-0.23a.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dcvyh3nd7v6mxqdyp1cgdzky58z1szcr-bulletml-0.0.6.drv', '/nix/store/y7y7jbs412qk87jzch7ck6v1rjlzshq0-rrootage-0.23a.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: bulletml, rrootage

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a
shrinking /nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a/bin/rrootage
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a/bin
patching script interpreter paths in /nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a
checking for references to /build in /nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a...
/nix/store/h92gsy48lv442hsga8dyfxzzcdnbk5wn-bulletml-0.0.6
/nix/store/hnf9lqjds04h4k8zdywqjg97mmnzh4n6-rrootage-0.23a

@Mic92
Copy link
Member

Mic92 commented May 22, 2018

Then please disable macOS as platform.

@fgaz fgaz force-pushed the kenta-cho branch 2 times, most recently from 4febc9c to 3455420 Compare June 1, 2018 12:29
@fgaz
Copy link
Member Author

fgaz commented Jun 1, 2018

@Mic92 done & removed the commits relevant to darwin.

For anyone that comes across this and wants to fix the darwin build here's what was tried:

+  postPatch = if builtins.currentSystem == stdenv.lib.platforms.darwin
+              then "substituteInPlace Makefile --replace soname install_name"
+              else null;
 
   makeFlags = [
     "-C src"
+    # Needed for darwin
+    "CC=cc"
+    "CXX=c++"
+    "LD=c++"
   ];

But the currentSystem comparison is always false for some reason

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