fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
8.44k stars 350 forks source link

Warnings while compiling #182

Closed MenacingPerson closed 2 years ago

MenacingPerson commented 2 years ago

General description of bug:

[ 97%] Building C object CMakeFiles/libfastfetch.dir/src/modules/opencl.c.o
[ 97%] Built target libfastfetch
[ 98%] Building C object CMakeFiles/fastfetch.dir/src/fastfetch.c.o
[100%] Linking C executable fastfetch
lto-wrapper: warning: using serial compilation of 4 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
[100%] Built target fastfetch
Consolidate compiler generated dependencies of target libfastfetch
[ 97%] Built target libfastfetch
[ 98%] Building C object CMakeFiles/flashfetch.dir/src/flashfetch.c.o
[100%] Linking C executable flashfetch
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
[100%] Built target flashfetch

Using the AUR package on Arch Linux. These didn't happen before.

Often helpful questions:

Output of fastfetch --version:

//paste here

Output of fastfetch --load-config devinfo:

//paste here

Output of fastfetch --load-config devinfo-verbose:

//paste here

Output of fastfetch --list-features:

//paste here
LinusDierheimer commented 2 years ago

From StackOverflow:

gcc was also upgraded from v11.2 to v12.1

you can try -flto=1 or -flto=auto to get rid of the warning

So a pretty recent change to the gcc compiler. -flto is added to the compile flags using CMakes INTERPROCEDURAL_OPTIMIZATION property, and there is no way to modify it (yet). So i guess we have to wait for CMake to catch up.

But as far as i understand it, this isn't a problem, because it uses auto by default, and just tells us that we can explicitly specify the amount of parallel jobs to compile.

LinusDierheimer commented 2 years ago

https://gitlab.kitware.com/cmake/cmake/-/issues/23640

LinusDierheimer commented 2 years ago

For completeness: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7400. I think it will be included in 3.24.