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

Technote (troubleshooting)


Problem(Abstract)

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

Symptom

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
./pub/rs/lib/libstdc++.so.6_pure_p0_c1_1209111139_59_32
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
./pub/rs/lib/libstdc++.so.6_pure_p0_c1_1209111139_59_32
ld: fatal: File processing errors. No output written to
SampleTest_Solaris_purecov

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


Cause

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.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational PurifyPlus
General Information

Software version:

7.0.1

Operating system(s):

Solaris

Reference #:

1638039

Modified date:

2013-05-20

Translate my page

Machine Translation

Content navigation