<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: linking/compiling failed with +O4 option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655435#M677401</link>
    <description>&amp;gt; &amp;gt;HP92453-01 B.11.11.08 HP C Compiler&lt;BR /&gt;&amp;gt; That's too old. The latest is at least B.11.11.20.&lt;BR /&gt;Right. The latest is B.11.11.22. Refer to:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=6208a8ea6ce02110a8ea6ce02110275d6e10RCRD" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=6208a8ea6ce02110a8ea6ce02110275d6e10RCRD&lt;/A&gt;</description>
    <pubDate>Sun, 04 Jul 2010 02:02:35 GMT</pubDate>
    <dc:creator>Kannan M Jeganathan</dc:creator>
    <dc:date>2010-07-04T02:02:35Z</dc:date>
    <item>
      <title>linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655428#M677394</link>
      <description>platform: HP-UX B.11.23 PA&lt;BR /&gt;&lt;BR /&gt;when I use +O4 option to build ssh-pkcs11-helper, CC stopped and dumped error info like below:&lt;BR /&gt;&lt;BR /&gt;==================================&lt;BR /&gt;&lt;BR /&gt;        cc  +DA2.0 +O4 -o ssh-pkcs11-helper ssh-pkcs11-helper.o ssh-pkcs11.o -L. -Lopenbsd-compat/ -L../libs-PA2.0/1123/ -lssh -lopenbsd-compat -Wl,+nodefaultrpath -lcrypto -lz&lt;BR /&gt;-lnsl -lxnet  -lsec -lgssapi_krb5 -lkrb5 -lpthread&lt;BR /&gt;/usr/ccs/bin/ld: Fixup applied to unknown instruction&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0xf04)&lt;BR /&gt;/usr/ccs/bin/ld: Target of conditional branch is out of range&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0xff0)&lt;BR /&gt;/usr/ccs/bin/ld: Target of conditional branch is out of range&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x1030)&lt;BR /&gt;/usr/ccs/bin/ld: Target of conditional branch is out of range&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x106c)&lt;BR /&gt;/usr/ccs/bin/ld: Target of conditional branch is out of range&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x10a4)&lt;BR /&gt;/usr/ccs/bin/ld: Fixup applied to unknown instruction&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x10d8)&lt;BR /&gt;/usr/ccs/bin/ld: Fixup applied to unknown instruction&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x10e8)&lt;BR /&gt;/usr/ccs/bin/ld: Target of unconditional branch is out of range&lt;BR /&gt;   Reference from:  ssh-pkcs11.o(0x12c0)&lt;BR /&gt;/usr/ccs/bin/ld: Invalid fixups exist&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;==================================&lt;BR /&gt;&lt;BR /&gt;Note that when I try +O2 instead of +O4, it is OK and the build passed.  Anyone knows about this problem? Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;PS:  I had a try with "-g +O4", and it passed.  Compared with the failure with "+O4", this makes me more confused.  Since HP C online doc said that: &lt;BR /&gt;&lt;BR /&gt;" To enable debugging of optimized code, specify the -g compile-line option together with the -O, +O1, or +O2 option. Currently, debugging is supported at optimization levels 2 and below. If you try to use -g with the +O3 or +O4 option, the compiler will issue a warning stating that the options are incompatible, and will ignore the -g option. "&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2010 06:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655428#M677394</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-01T06:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655429#M677395</link>
      <description>&lt;BR /&gt;Additionally, I noticed that this failure only comes with "+DA2.0".  The build is passed with "+DD64".</description>
      <pubDate>Thu, 01 Jul 2010 06:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655429#M677395</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-01T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655430#M677396</link>
      <description>What version of the C compiler are you using?&lt;BR /&gt;You may want to try +O3 instead.</description>
      <pubDate>Thu, 01 Jul 2010 08:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655430#M677396</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-01T08:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655431#M677397</link>
      <description>The compiler version is:&lt;BR /&gt;HP C/aC++ Version A.06.20&lt;BR /&gt;&lt;BR /&gt;The reason why I want to try +O4 is that I am testing the binaries' performances with different optimization levels.  The performances with +O2/+O3 are similar, then I want to try +O4 next.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2010 00:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655431#M677397</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-02T00:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655432#M677398</link>
      <description>&amp;gt;The compiler version is: HP C/aC++ Version A.06.20&lt;BR /&gt;&lt;BR /&gt;This contradicts +DA2.0 and B.11.23 PA.&lt;BR /&gt;A.06.20 is an Integrity compiler version.&lt;BR /&gt;Again, what compiler version are you using?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I want to try +O4 next.&lt;BR /&gt;&lt;BR /&gt;Unless you use PBO, using +O4 may not help that much.</description>
      <pubDate>Fri, 02 Jul 2010 08:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655432#M677398</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-02T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655433#M677399</link>
      <description>Please see the compiler version info is as below:&lt;BR /&gt;&lt;BR /&gt;/opt/ansic/bin/cc:&lt;BR /&gt;        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $&lt;BR /&gt;        LINT B.11.11.08 CXREF B.11.11.08&lt;BR /&gt;        HP92453-01 B.11.11.08 HP C Compiler&lt;BR /&gt;         $ PATCH/11.00:PHCO_27774  Oct  3 2002 09:45:59 $&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And thanks, I'm trying PBO too.</description>
      <pubDate>Fri, 02 Jul 2010 09:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655433#M677399</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-02T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655434#M677400</link>
      <description>&amp;gt;HP92453-01 B.11.11.08 HP C Compiler&lt;BR /&gt;&lt;BR /&gt;That's too old.  The latest is at least B.11.11.20.</description>
      <pubDate>Sat, 03 Jul 2010 06:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655434#M677400</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-03T06:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655435#M677401</link>
      <description>&amp;gt; &amp;gt;HP92453-01 B.11.11.08 HP C Compiler&lt;BR /&gt;&amp;gt; That's too old. The latest is at least B.11.11.20.&lt;BR /&gt;Right. The latest is B.11.11.22. Refer to:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=6208a8ea6ce02110a8ea6ce02110275d6e10RCRD" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=6208a8ea6ce02110a8ea6ce02110275d6e10RCRD&lt;/A&gt;</description>
      <pubDate>Sun, 04 Jul 2010 02:02:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655435#M677401</guid>
      <dc:creator>Kannan M Jeganathan</dc:creator>
      <dc:date>2010-07-04T02:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655436#M677402</link>
      <description>Hi, I've updated the compiler to version B.11.11.20(I used online swinstall, and B.11.11.20 is the latest source I can get), but the build still failed.  The same error msg during linking ssh-pkcs11-helper.  How could I deal with this next?&lt;BR /&gt;&lt;BR /&gt;Additionally, I noticed something as below, hope they're helpful.&lt;BR /&gt;&lt;BR /&gt;(1). This failure only happens when building 32bit(PA2.0) ssh-pkcs11-helper with "+DA2.0 +O4 ...".  Meanwhile, it is OK when I use "+DD64 +O4 ..." to build 64bit(PA2.0) binary.&lt;BR /&gt;&lt;BR /&gt;(2). Building 32bit/64bit binaries are both OK on my B.11.31 machine(compiler version is B.11.11.20).&lt;BR /&gt;&lt;BR /&gt;(3). As the 1st post said, building with "+DA2.0 +O4 -g..." will be passed.  The "-g" option does something magical.</description>
      <pubDate>Mon, 05 Jul 2010 06:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655436#M677402</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-05T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655437#M677403</link>
      <description>&amp;gt;I've updated the compiler to version B.11.11.20&lt;BR /&gt;&lt;BR /&gt;You could try B.11.11.22 to see if that would fix it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How could I deal with this next?&lt;BR /&gt;&lt;BR /&gt;If you have a support contract, you could report it to the Response Center.  Otherwise you need to stop trying to use +O4 with that source, ssh-pkcs11.c.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(2) Building 32bit/64bit binaries are both OK on my B.11.31 machine (compiler version is B.11.11.20).&lt;BR /&gt;&lt;BR /&gt;Not sure why they would be different.  Have you tried installing a newer linker patch?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(3) building with "+O4 -g..." will be passed. The "-g" option does something magical.&lt;BR /&gt;&lt;BR /&gt;Probably drops the opt level.  This will happen with aC++.</description>
      <pubDate>Mon, 05 Jul 2010 15:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655437#M677403</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-05T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655438#M677404</link>
      <description>&amp;gt; &amp;gt; (3) building with "+O4 -g..." will be passed.&lt;BR /&gt;&amp;gt; &amp;gt; The "-g" option does something magical.&lt;BR /&gt;&amp;gt; Probably drops the opt level. This will happen with aC++.&lt;BR /&gt;Right. You should be getting a warning stating the same:&lt;BR /&gt;$cc +O4 -g ....&lt;BR /&gt;cc: warning 414: Optimization reduced to +O2 for compatibility with Debug.</description>
      <pubDate>Tue, 06 Jul 2010 04:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655438#M677404</guid>
      <dc:creator>Kannan M Jeganathan</dc:creator>
      <dc:date>2010-07-06T04:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: linking/compiling failed with +O4 option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655439#M677405</link>
      <description>Thanks all.  I decide not using +O4 by now.</description>
      <pubDate>Tue, 13 Jul 2010 01:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-compiling-failed-with-o4-option/m-p/4655439#M677405</guid>
      <dc:creator>chenn_1</dc:creator>
      <dc:date>2010-07-13T01:28:37Z</dc:date>
    </item>
  </channel>
</rss>

