Discussion:
GCC Cross Compiler Version
(too old to reply)
Angelo Bulfone
2017-06-12 17:56:35 UTC
Permalink
Hello,

I'm trying to make a nix expression to build bare metal cross compilers for
operating system development, but I would like to use a target that is only
available with GCC7. I was able to build a cross compiler with
gccCrossStageStatic, but that's restricted to GCC5.
The closest I've gotten has been using wrapCCCross with gcc = pkgs.gcc7,
but then it complains about attribute 'langCC' missing, which appears to be
an argument to gcc, but is not stored in the set.
Does anyone know the best way to make a bare metal cross compiler for a
specific gcc version and target?

Thank you for any assistance.
Angelo
John Ericson
2017-06-14 18:30:59 UTC
Permalink
You need to edit gccCrossStageStatic so gcc7, and not gcc is being overridden
Post by Angelo Bulfone
Hello,
I'm trying to make a nix expression to build bare metal cross compilers for
operating system development, but I would like to use a target that is only
available with GCC7. I was able to build a cross compiler with
gccCrossStageStatic, but that's restricted to GCC5.
The closest I've gotten has been using wrapCCCross with gcc = pkgs.gcc7, but
then it complains about attribute 'langCC' missing, which appears to be an
argument to gcc, but is not stored in the set.
Does anyone know the best way to make a bare metal cross compiler for a
specific gcc version and target?
Thank you for any assistance.
Angelo
_______________________________________________
nix-dev mailing list
https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Angelo Bulfone
2017-06-14 18:32:54 UTC
Permalink
I eventually solved my problem and realized that I ended up with a
reimplementation of gccCrossStageStatic.
Post by John Ericson
You need to edit gccCrossStageStatic so gcc7, and not gcc is being overridden
Post by Angelo Bulfone
Hello,
I'm trying to make a nix expression to build bare metal cross compilers
for
Post by Angelo Bulfone
operating system development, but I would like to use a target that is
only
Post by Angelo Bulfone
available with GCC7. I was able to build a cross compiler with
gccCrossStageStatic, but that's restricted to GCC5.
The closest I've gotten has been using wrapCCCross with gcc = pkgs.gcc7,
but
Post by Angelo Bulfone
then it complains about attribute 'langCC' missing, which appears to be
an
Post by Angelo Bulfone
argument to gcc, but is not stored in the set.
Does anyone know the best way to make a bare metal cross compiler for a
specific gcc version and target?
Thank you for any assistance.
Angelo
_______________________________________________
nix-dev mailing list
https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Loading...