Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error: lto1: fatal error #154

Open
Crtomir4 opened this issue Aug 13, 2024 · 0 comments
Open

Compile Error: lto1: fatal error #154

Crtomir4 opened this issue Aug 13, 2024 · 0 comments

Comments

@Crtomir4
Copy link

I get the following error when trying to compile BRL-CAD on Ubuntu 22.04 LTS with gcc version 11.4.0 using the "make" command. It seems time64.c.o was generated with a different version of LTO than the one that is being used for compilation. Any ideas how to fix this?

'
[ 17%] Built target libfft
[ 17%] Built target qged_plugins
[ 18%] Built target libfft-static
[ 26%] Built target docbook-docbook-system-mann
[ 26%] Built target fftest
lto1: fatal error: bytecode stream in file ‘CMakeFiles/libbu-obj.dir/y2038/time64.c.o’ generated with LTO version 11.3 instead of the expected 12.0
compilation terminated.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/libbu/CMakeFiles/libbu.dir/build.make:273: lib/libbu.so.20.0.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:13990: src/libbu/CMakeFiles/libbu.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant