Git Product home page Git Product logo

Comments (5)

caugner avatar caugner commented on May 31, 2024
$ nix-locate -w libstdc++.so.6
# ...
(gcc45.out)                                           0 s /nix/store/6v26wdxwsb4zpdv6a2h51ap3xmqc8hxx-gcc-4.5.4/lib/libstdc++.so.6
(gcc6.out)                                            0 s /nix/store/g9vzssx7j2rabwgqwp7zfpx8kfl7jdmn-gcc-6.4.0-lib/lib/libstdc++.so.6
(gccgo.out)                                           0 s /nix/store/lq0nclmp3bmdk1zp193kwnnyz802mld6-gccgo6-6.4.0/lib/libstdc++.so.6
(gcc_debug.out)                                       0 s /nix/store/9bakzmnahi9vpx0snprnvq9gcxbycxga-gcc-debug-6.4.0-lib/lib/libstdc++.so.6
gcc-unwrapped.lib                                     0 s /nix/store/1fw5cgb5fi5aihs8hqqy0jbarbvkan1c-gcc-6.4.0-lib/lib/libstdc++.so.6
# ...

from nixpkgs-mozilla.

caugner avatar caugner commented on May 31, 2024

To reproduce in a fresh environment:

$ mkdir /tmp/gecko
$ cd /tmp/gecko
$ git clone --depth 1 https://github.com/mozilla/nixpkgs-mozilla.git
$ git clone --depth 1 https://github.com/mozilla/gecko-dev.git
$ cd gecko-dev
$ nix-shell ../nixpkgs-mozilla/release.nix -A gecko.x86_64-linux.gcc --run './mach build && ./mach run'

from nixpkgs-mozilla.

caugner avatar caugner commented on May 31, 2024

@garbas I tried adding gcc-unwrapped.lib to buildInputs in pkgs/gecko/default.nix as well as in compiler-overlay.nix, but unfortunately it didn't have any effect. I assume the libstdc++.so.6 library has to be available both at build and run time?

from nixpkgs-mozilla.

nbp avatar nbp commented on May 31, 2024

@caugner I made a bunch of changes to the Gecko expression today.
While I never saw this issue before, you might try the changes I made.

Running the same command out-side the nix-shell gives me the correct bindings.

$ ldd ~/mozilla/_build/firefox/bugzil.la/1104647/wip/x64/gcc/dbg/dist/bin/firefox
        linux-vdso.so.1 (0x00007ffdf1d7e000)
        libpthread.so.0 => /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libpthread.so.0 (0x00007f5e965d9000)
        libdl.so.2 => /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libdl.so.2 (0x00007f5e963d5000)
        libstdc++.so.6 => /nix/store/vzbrk9ic04h3243rk8ymckb611pkjkkd-gcc-5.4.0-lib/lib/libstdc++.so.6 (0x00007f5e9605d000)
        libm.so.6 => /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libm.so.6 (0x00007f5e95d4b000)
        libgcc_s.so.1 => /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libgcc_s.so.1 (0x00007f5e95b35000)
        libc.so.6 => /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libc.so.6 (0x00007f5e95798000)
        /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/ld-linux-x86-64.so.2 (0x00007f5e967f7000)

Firefox even starts properly when running the binary by hand.

I will try the minimal command, and see if I can reproduce the issue. Still, I doubt you are getting the expected result, as the non-pure environment is likely taking the clang installation you have on your system.

from nixpkgs-mozilla.

nbp avatar nbp commented on May 31, 2024

@caugner Can you try https://github.com/nbp/nixpkgs-mozilla , which is currently waiting for approval in PR #76 ?
The documentation added in the README is working for me.

from nixpkgs-mozilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.