Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coverity and "Failed to initialize ICU, try using the --prevent-root option"

Tags:

c

build

coverity

I have the bin directory in the build directory of my project.

When I run the command ./bin/cov-build --dir cov-int make I get the following error -

[ERROR] Failed to initialize ICU, try using the --prevent-root option.

like image 480
Sid Gairola Avatar asked Sep 11 '25 04:09

Sid Gairola


1 Answers

Coverity uses ICU to handle multibyte encodings. This requires the ICU data files, present in the Coverity installation. That error suggests those files are either missing or not present in the expected location, and suggests you try using --prevent-root to tell it where it can expect to find the files.

Did you only copy the bin directory to your project? This would likely explain the issue, and using --prevent-root to point to the actual Coverity installation should resolve it.

like image 149
Caleb Avatar answered Sep 12 '25 22:09

Caleb