Skip to content

Instantly share code, notes, and snippets.

@sirkha
Last active April 28, 2024 02:53
Show Gist options
  • Save sirkha/8c6b8f23008baa1ee83cae193e728c77 to your computer and use it in GitHub Desktop.
Save sirkha/8c6b8f23008baa1ee83cae193e728c77 to your computer and use it in GitHub Desktop.
gem5 shell env
with import <nixpkgs>{};
stdenv.mkDerivation rec {
name = "gem5-git";
env = buildEnv { name = name; paths = buildInputs; };
zlib-dev = lib.getDev zlib;
zlib-lib = lib.getLib zlib;
buildInputs = [
mercurial
git
gcc
scons
gnum4
swig
pythonFull
gperftools
pcre
zlib-dev
zlib-lib
];
}
@hakan-demirli
Copy link

hakan-demirli commented Sep 26, 2023

it might be useful to someone :)

Thank you.

I have been struggling with static glibc while compiling m5:

/nix/store/rhhll3vwpj38ri72ahrrrvcbkhz4fhh6-binutils-2.40/bin/ld: cannot find -lm: No such file or directory
/nix/store/rhhll3vwpj38ri72ahrrrvcbkhz4fhh6-binutils-2.40/bin/ld: cannot find -lc: No such file or directory

Changing the SConstruct file of m5 did it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment