Solving gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ in Ubuntu
Hi! This Tip Try to Solve gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ in Ubuntu GNU/Linux.
The Issue is due to a missing GCC 12 on System.
Finally, this Setup is valid for all the Ubuntu-based Distros like:
- Linux Mint
- Zorin OS
- Lubuntu
- Elementary OS
- Kde Neon
- Pop_OS!
- Xubuntu
- Linux Lite
- Bodhi
- Kubuntu
- LXLE
- Trisquel
- Voyager Ubuntu
- feren OS
- Peppermint
- Linux Ultimate Edition (You may just need to Discover what’s the Parent Release)
Fixing System
Then to Solve gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ in Ubuntu
See: How to Install GCC 12 Compiler Guide