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

closure-size: Cross compiled simple C++ application depends on gcc & host libs #58981

Closed
Thra11 opened this issue Apr 4, 2019 · 7 comments
Closed
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: closure size The final size of a derivation, including its dependencies 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@Thra11
Copy link
Member

Thra11 commented Apr 4, 2019

Issue description

This is possibly an instance of this issue: #53424
With glibc dontStrip = true commented out as described in #35251, The dependencies of a simple C program, when cross compiled, are fairly minimal (Throughout this issue report, host architecture is aarch64, so armv7l target is cross compiled):

% nix-store -q --tree $(nix eval nixpkgs.pkgsCross.armv7l-hf-multiplatform.hello.outPath | tr -d '"') 
/nix/store/76inxagd7vkgz947nc5arf7vghsad03a-hello-2.10-armv7l-unknown-linux-gnueabihf
+---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf
|   +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
+---/nix/store/76inxagd7vkgz947nc5arf7vghsad03a-hello-2.10-armv7l-unknown-linux-gnueabihf [...]

However, if you cross compile a very simple C++ application (I created a trivial C++ hello world package, hello-cpp), it has a massive closure:

% nix-store -q --tree $(nix eval nixpkgs.pkgsCross.armv7l-hf-multiplatform.hello-cpp.outPath | tr -d '"')
/nix/store/m20s5wffs450mgw8q135976anlxhcwc3-hello-cpp-2-armv7l-unknown-linux-gnueabihf
+---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf
|   +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
+---/nix/store/8kv91ppvnwj8hi0l6d4ra4gjc5x03h9b-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0
    +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib [...]
    +---/nix/store/q9ni562liz1zm9f88jg5vjabqx23xbcm-gmp-6.1.2
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib [...]
    |   +---/nix/store/q9ni562liz1zm9f88jg5vjabqx23xbcm-gmp-6.1.2 [...]
    +---/nix/store/6gj04mgnm65xmmpszk7z0lwdldn1xvas-isl-0.17.1
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/q9ni562liz1zm9f88jg5vjabqx23xbcm-gmp-6.1.2 [...]
    |   +---/nix/store/6gj04mgnm65xmmpszk7z0lwdldn1xvas-isl-0.17.1 [...]
    +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
    +---/nix/store/dsrq1pnw5rds171r372m648rcm24nmbw-mpfr-4.0.2
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/q9ni562liz1zm9f88jg5vjabqx23xbcm-gmp-6.1.2 [...]
    |   +---/nix/store/dsrq1pnw5rds171r372m648rcm24nmbw-mpfr-4.0.2 [...]
    +---/nix/store/dpdd5nbxbbgz150d0w1fpy12msxxw281-libmpc-1.1.0
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/q9ni562liz1zm9f88jg5vjabqx23xbcm-gmp-6.1.2 [...]
    |   +---/nix/store/dsrq1pnw5rds171r372m648rcm24nmbw-mpfr-4.0.2 [...]
    |   +---/nix/store/dpdd5nbxbbgz150d0w1fpy12msxxw281-libmpc-1.1.0 [...]
    +---/nix/store/i5g3si45gdydzw1d0pc28sq4l0y84ksd-zlib-1.2.11
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    +---/nix/store/j2aqqxr88lqzmhy0k0qi1q70vk5ds0xi-linux-headers-4.19.16
    +---/nix/store/sln9iyq2pqmim16pxyigjj5jqlfqi8fb-glibc-2.27-armv7l-unknown-linux-gnueabihf-dev
    |   +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
    |   +---/nix/store/j2aqqxr88lqzmhy0k0qi1q70vk5ds0xi-linux-headers-4.19.16 [...]
    |   +---/nix/store/ywxknjr31nap2lmbyj7l5y8b1cgzv8jh-glibc-2.27-armv7l-unknown-linux-gnueabihf-bin
    |       +---/nix/store/0s6yah4v71z5jqvsp1l8zvssjv1xka1l-bash-4.4-p23
    |       |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |       |   +---/nix/store/0s6yah4v71z5jqvsp1l8zvssjv1xka1l-bash-4.4-p23 [...]
    |       +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
    +---/nix/store/yjdmhmgapqz2jhx0b6paavv40rk70gvl-armv7l-unknown-linux-gnueabihf-binutils-wrapper-2.31.1
    |   +---/nix/store/0s6yah4v71z5jqvsp1l8zvssjv1xka1l-bash-4.4-p23 [...]
    |   +---/nix/store/3acia3jhcddv25hak7z73yh6adnyl0vz-expand-response-params
    |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf [...]
    |   +---/nix/store/cib5daqwbsbk6009r7pcpkd0snsf8brx-coreutils-8.30
    |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   +---/nix/store/2ddlh6qy4qgzcdlh3lj44ynrbivr59fj-attr-2.4.48
    |   |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   |   +---/nix/store/2ddlh6qy4qgzcdlh3lj44ynrbivr59fj-attr-2.4.48 [...]
    |   |   +---/nix/store/lf7vr1lrzs8nnclhl85gl502sa17cb0b-acl-2.2.53
    |   |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   |   +---/nix/store/2ddlh6qy4qgzcdlh3lj44ynrbivr59fj-attr-2.4.48 [...]
    |   |   |   +---/nix/store/lf7vr1lrzs8nnclhl85gl502sa17cb0b-acl-2.2.53 [...]
    |   |   +---/nix/store/cib5daqwbsbk6009r7pcpkd0snsf8brx-coreutils-8.30 [...]
    |   +---/nix/store/hlxjrcf60czf8h7a43x0ryy5wj912i89-armv7l-unknown-linux-gnueabihf-binutils-2.31.1
    |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   +---/nix/store/i5g3si45gdydzw1d0pc28sq4l0y84ksd-zlib-1.2.11 [...]
    |   |   +---/nix/store/84q5kyffv30hbw80ywh05m4b18s0vhza-zlib-1.2.11-dev
    |   |   |   +---/nix/store/i5g3si45gdydzw1d0pc28sq4l0y84ksd-zlib-1.2.11 [...]
    |   |   |   +---/nix/store/84q5kyffv30hbw80ywh05m4b18s0vhza-zlib-1.2.11-dev [...]
    |   |   +---/nix/store/9lqrs6ii8nzq58j62slwgmp6mmg9kyff-glibc-2.27-dev
    |   |   |   +---/nix/store/6dc1i53b00gqdp6mvav4f574admb38fl-linux-headers-4.19.16
    |   |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   |   +---/nix/store/9320a08ll4vw3226xb9bkjg4rd202n0c-glibc-2.27-bin
    |   |   |       +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   |       +---/nix/store/9320a08ll4vw3226xb9bkjg4rd202n0c-glibc-2.27-bin [...]
    |   |   +---/nix/store/93c3l5pdxnmnrq8ryh0jaln7npp343ip-gcc-7.4.0
    |   |   |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   |   |   +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib [...]
    |   |   |   +---/nix/store/9lqrs6ii8nzq58j62slwgmp6mmg9kyff-glibc-2.27-dev [...]
    |   |   |   +---/nix/store/i5g3si45gdydzw1d0pc28sq4l0y84ksd-zlib-1.2.11 [...]
    |   |   |   +---/nix/store/93c3l5pdxnmnrq8ryh0jaln7npp343ip-gcc-7.4.0 [...]
    |   |   +---/nix/store/hlxjrcf60czf8h7a43x0ryy5wj912i89-armv7l-unknown-linux-gnueabihf-binutils-2.31.1 [...]
    |   +---/nix/store/ywxknjr31nap2lmbyj7l5y8b1cgzv8jh-glibc-2.27-armv7l-unknown-linux-gnueabihf-bin [...]
    |   +---/nix/store/sln9iyq2pqmim16pxyigjj5jqlfqi8fb-glibc-2.27-armv7l-unknown-linux-gnueabihf-dev [...]
    |   +---/nix/store/yjdmhmgapqz2jhx0b6paavv40rk70gvl-armv7l-unknown-linux-gnueabihf-binutils-wrapper-2.31.1 [...]
    +---/nix/store/z63cy9y7d2gha1rw7d7aswzrfp4f98ia-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0-lib
    |   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    |   +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib [...]
    |   +---/nix/store/z63cy9y7d2gha1rw7d7aswzrfp4f98ia-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0-lib [...]
    +---/nix/store/8kv91ppvnwj8hi0l6d4ra4gjc5x03h9b-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0 [...]

We can see that the actual dependencies of the hello-cpp binary are quite reasonable: It needs the linker, libc, libm from the cross-glibc package, but also needs libstdc++ and libgcc_s.

% /nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf/lib/ld-linux-armhf.so.3 --list /nix/store/m20s5wffs450mgw8q135976anlxhcwc3-hello-cpp-2-armv7l-unknown-linux-gnueabihf/bin/hello-cpp 
        libstdc++.so.6 => /nix/store/8kv91ppvnwj8hi0l6d4ra4gjc5x03h9b-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0/armv7l-unknown-linux-gnueabihf/lib/libstdc++.so.6 (0xf6fa2000)
        libm.so.6 => /nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf/lib/libm.so.6 (0xf6f1c000)
        libgcc_s.so.1 => /nix/store/8kv91ppvnwj8hi0l6d4ra4gjc5x03h9b-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0/armv7l-unknown-linux-gnueabihf/lib/libgcc_s.so.1 (0xf6eed000)
        libc.so.6 => /nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf/lib/libc.so.6 (0xf6dac000)
        /nix/store/8yanx7clq5050zf3ikyjrbivshzhvhp1-glibc-2.27-armv7l-unknown-linux-gnueabihf/lib/ld-linux-armhf.so.3 (0xaae1e000)

However, it appears, libstdc++ and libgcc are bundled up with lots of other libs and binaries in the *-armv7l-unknown-linux-gnueabihf-stage-final-gcc-7.4.0 output. Since these binaries include the cross compiler, they depend on various host packages such as glibc.

I notice that if I compile hello-cpp for the native platform, it instead depends on gcc-7.4.0-libs, which includes only the libraries. Is there a reason the cross-toolchain C++ libraries aren't split into their own output?

% nix-store -q --tree $(nix eval nixpkgs.hello-cpp.outPath | tr -d '"')      
/nix/store/x4jwbn4zbhd9gvsfaxlzfp44mcc64jva-hello-cpp-2
+---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27
|   +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
+---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib
    +---/nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27 [...]
    +---/nix/store/2g7qg3dmmv863jjmbqb1gj5nnpr165f7-gcc-7.4.0-lib [...]

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

  • system: "aarch64-linux"
  • host os: Linux 3.10.104, Ubuntu, 18.04.2 LTS (Bionic Beaver)
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.2
  • nixpkgs: /home/thrall/nixpkgs
@Thra11 Thra11 changed the title closure-size: Cross compiled simple C++ application depends on gcc closure-size: Cross compiled simple C++ application depends on gcc & host libs Apr 4, 2019
@Thra11
Copy link
Member Author

Thra11 commented Apr 4, 2019

I didn't manage to find it at the time, but it looks like this is probably the same issue as #58501. I'll test the PR linked to that one...

@Thra11
Copy link
Member Author

Thra11 commented Apr 18, 2019

After rebasing #58606 onto master post-#59787, this is the situation:

 % nix why-depends --all nixpkgs.pkgsCross.armv7l-hf-multiplatform.hello-cpp nixpkgs.glibc                
/nix/store/2khc5pggvzv83hcxwknz72vmnpkxbb7r-hello-cpp-2-armv7l-unknown-linux-gnueabihf
╚═══bin/hello-cpp: …-linux-gnueabihf/lib:/nix/store/7sbk4y7qf1pah2bdilhwh1dwjsn18s32-armv7l-unknown-linux-gnueabihf-…
    => /nix/store/7sbk4y7qf1pah2bdilhwh1dwjsn18s32-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-7.4.0-lib
    ╚═══lib/libgcc_s.so.1: …ld/build/gcc/include./nix/store/97kxpc2dwrxxrqcda1f2c5h5mirh2kwl-glibc-2.27-armv7l-unknown-linux…
        lib/libgomp.so.1.0.0: …ld/build/gcc/include./nix/store/97kxpc2dwrxxrqcda1f2c5h5mirh2kwl-glibc-2.27-armv7l-unknown-linux…
        => /nix/store/97kxpc2dwrxxrqcda1f2c5h5mirh2kwl-glibc-2.27-armv7l-unknown-linux-gnueabihf-dev
        ╚═══nix-support/propagated-build-inputs: … /nix/store/ri18sgsg3h0rlq13yslcbrpl3y2bsvsb-glibc-2.27-armv7l-unknown-linux…
            => /nix/store/ri18sgsg3h0rlq13yslcbrpl3y2bsvsb-glibc-2.27-armv7l-unknown-linux-gnueabihf-bin
            ╚═══bin/sotruss: …#!/nix/store/09d09d9jx9fhlxxy1dkjvxjhwwy0cakh-bash-4.4-p23/bin/sh.# Copyright…
                => /nix/store/09d09d9jx9fhlxxy1dkjvxjhwwy0cakh-bash-4.4-p23
                ╚═══bin/bash: ….....`&............../nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib/ld-linux-aarch64…
                    lib/bash/basename: ….basename.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/dirname: …6.dirname.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/finfo: …o.1.finfo.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/head: …so.6.head.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/id: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/ln: …4.so.1.ln.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/logname: …6.logname.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/mkdir: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/mypid: …o.6.mypid.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/pathchk: …1.pathchk.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/print: …o.1.print.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/printenv: ….printenv.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/push: …so.6.push.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/realpath: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/rmdir: …libc.so.6.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/setpgid: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/sleep: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/strftime: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/sync: …libc.so.6.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/tee: ….so.6.tee.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/truefalse: …truefalse.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/tty: ….so.6.tty.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/uname: …ch64.so.1.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/unlink: …libc.so.6.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    lib/bash/whoami: ….6.whoami.GLIBC_2.17./nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27/lib.XXXXXXXXXXXXXXXX…
                    => /nix/store/m6bmjrz6zqp95qaj2jimyqyq65azis8v-glibc-2.27

@Thra11
Copy link
Member Author

Thra11 commented Apr 18, 2019

Looks like sotruss is possibly the weak link. It's a bash script, so it depends on bash, but as part of glibc-2.27-armv7l-unknown-linux-gnueabihf-dev, it should probably depend on something like bash-4.4-p23-armv7l-unknown-linux-gnueabihf instead of the host bash.

However, hello-cpp is just a binary, so it shouldn't really need the -dev package in the first place.

@danbst danbst added 6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: closure size The final size of a derivation, including its dependencies labels Jan 6, 2020
@stale
Copy link

stale bot commented Jul 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2020
@teburd
Copy link
Contributor

teburd commented Dec 16, 2020

this isn't stale for me, and I ran into this similar problem recently

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 16, 2020
@stale
Copy link

stale bot commented Jun 16, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 16, 2021
@Artturin
Copy link
Member

can't repro with cppcheck

@Artturin Artturin closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: closure size The final size of a derivation, including its dependencies 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

No branches or pull requests

4 participants