BIT instrumenting error
Using gcc 4.0.3
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: /net/tibia/export/bldmstr/nightly/20061019_mars_gcc.s10.opt.tarbuild/src/config ure --prefix=/opt/gcc --enable-shared --with-system-zlib --enable-checking=release --disable-libmudflap --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-gxx-include-dir=/opt/gcc/include/c++/4.0.3 --with-cpu=v9
Thread model: posix
gcc version 4.0.3 (gccfss)
I compiled my binary with the -xbinopt=prepare option. When I attempt to intrument the binary:
/opt/gcc/bin/bit instrument {file}
I get the following error:
bit: error: The file {file} was linked by an older link step. Please use the latest compiler to do the link.
My binary was linked as:
/opt/gcc/bin/gcc -o ...
[831 byte] By [
chgrua] at [2007-11-27 1:40:15]

# 2
Thanks. Got further, I added this option to the link in addition to the compile flags.
now I get:
bit: warning: File {file} has unsupported gcc style exceptions. Use -fno-exceptions when compiling if appropriate.
bit: error: cannot optimize file {file}.
I have added -fno-excpetions to both compile and link without helping. My guess is this cannot instrument if I linked to any library using exceptions.
# 3
It would be helpful to know the full command line you're using with bit.
Are you using -M to instrument multiple libraries? If so, bit should tell you which library is the problem.
If you're not using -M, that is, you're trying to instrument a single binary, then yes, every object file or library that is statically linked into the binary must be compiled with -fno-exceptions. In this case it wouldn't matter how shared libraries are compiled.
Try using the -v option to bit and post the results.
# 5
If you have any comments about the manual (good or bad) please let us know. Every comment and question can be used to improve our documentation, user interface, or the product itself.
Perhaps we should make the links to the users guide and man page more prominent on the tools web page.
Thanks for your help!