Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

discover: error: The file /a.out was linked by an older link step. Please use the latest compiler to

1057566Nov 29 2013 — edited Feb 14 2014

Hi,

I have installed Solaris studio and wanted to use the memory analyzer from there. I am trying it on a sample program, but it returns the above error and does not instrument the executable. Could you please help me tracing where am I going wrong.

# which cc

/opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc

# /opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc -V

cc: Sun C 5.12 SunOS_sparc 2011/11/16

# cc -g -O2 test.c

# file a.out

a.out:          ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped

# ldd ./a.out

        libc.so.1 =>     /usr/lib/libc.so.1

        libm.so.2 =>     /usr/lib/libm.so.2

        /platform/SUNW,Sun-Blade-1500/lib/libc_psr.so.1

# /SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/discover -w - ./a.out

discover: error: The file /a.out was linked by an older link step. Please use the latest compiler to do the link.

Regards,

Vikkal

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2014
Added on Nov 29 2013
10 comments
4,554 views