PureCoverage instrumentation results in "version 'GCC_4.2.0' does not exist" error

Technote (troubleshooting)


Attempts to instrument application using IBM Rational PurifyPlus for Linux and UNIX result in the error "version `GCC_4.2.0' does not exist".


The following is an example of error message when doing instrumentation with Rational PureCoverage.

Instrumenting: libgcc_s.so.1 Linking
ld: fatal: file ./usr/lib/libgcc_s.so.1_pure_p0_c1_1209111139_59_32:
version `GCC_4.2.0' does not exist: required by file
ld: fatal: file ./usr/lib/libgcc_s.so.1_pure_p0_c1_1209111139_59_32:
version `GCC_4.3.0' does not exist: required by file
ld: fatal: File processing errors. No output written to

PureCoverage engine: Error: The linker returned error code: 1


This problem can occur when having more than one version of gcc installed and performing an instrumentation against a program that dynamically links with libstdc++.so.6 that requires libgcc_s.so while its version is incompatible.

Resolving the problem

You can resolve this issue by enforcing usage of the correct version of library libgcc_s.so using the environment variable LD_LIBRARY_PATH.

Document information

More support for:

Rational PurifyPlus family
General Information

Software version:


Operating system(s):


Reference #:


Modified date:


Translate my page

Content navigation