<?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 How to adjust AllianceOne gcc on 11.31(ia64) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6569894#M496765</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to ask about&lt;/P&gt;&lt;P&gt;How to adjust gcc-ia64-4.7.1.depot.gz on HP-UX 11i 11.31(ia64).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I downloaded gcc-ia64-4.7.1.depot.gz from AllianceOne web site,&lt;BR /&gt;and installed it on HP-UX 11i 11.31(ia64).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that the gcc-ia64-4.7.1.depot.gz was built on 11.23(ia64).&lt;BR /&gt;Here is gcc -v output.&lt;/P&gt;&lt;PRE&gt;# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/hp-gcc-4.7.1/bin/../libexec/gcc/ia64-hp-hpux11.23/4.7.1/lto-wrapper
Target: ia64-hp-hpux11.23
Configured with: /home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/gcc_src/configure --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23 --build=ia64-hp-hpux11.23 --prefix=/home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/ia64-hp-hpux11.23/install/opt/hp-gcc --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/ia64-hp-hpux11.23 --with-mpfr=/proj/opensrc/be/ia64-hp-hpux11.23 SED=/usr/bin/sed Thread model: posix gcc version 4.7.1 (GCC)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I got compilation error with this environment.&lt;/P&gt;&lt;P&gt;Sample source code t.c&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;time.h&amp;gt;
int main() {
    struct tm t;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Compilation error with gcc&lt;/P&gt;&lt;PRE&gt;# which gcc
/opt/hp-gcc/bin/gcc
#
# gcc t.c
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:111:25: error: expected ')' before 'struct'
/usr/include/sys/_time.h:116:26: error: expected ')' before 'struct'
/usr/include/sys/_time.h:121:26: error: expected ')' before 'const'
/usr/include/sys/_time.h:131:25: error: expected ')' before 'struct'
/usr/include/sys/_time.h:147:26: error: expected ')' before 'struct'
/usr/include/sys/_time.h:152:26: error: expected ')' before 'int'
In file included from /usr/include/sys/_time.h:168:0,
                 from /usr/include/time.h:12,
                 from t.c:1:
/usr/include/sys/_timeval.h:33:2: error: unknown type name 'suseconds_t'
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
In file included from /usr/include/time.h:15:0,
                 from t.c:1:
/opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/sys/time.h:116:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
In file included from t.c:1:0:
/usr/include/time.h:59:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
t.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
#&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Guess and Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm not sure though I guess&amp;nbsp;this issue is caused by header files mismatch.&lt;BR /&gt;And I found /opt/hp-gcc-4.7.1/libexec/gcc/ia64-hp-hpux11.23/4.7.1/install-tools/mkheaders script.&lt;BR /&gt;This script seems to solve the 'header files mismatch' problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like to ask that how this script run ?&lt;BR /&gt;Is it needed to modify "# Basic information" section replacing '11.23' with '11.31' ?&lt;/P&gt;&lt;P&gt;Or is there any way to adjust this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2014 07:52:41 GMT</pubDate>
    <dc:creator>inoguchi</dc:creator>
    <dc:date>2014-08-11T07:52:41Z</dc:date>
    <item>
      <title>How to adjust AllianceOne gcc on 11.31(ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6569894#M496765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to ask about&lt;/P&gt;&lt;P&gt;How to adjust gcc-ia64-4.7.1.depot.gz on HP-UX 11i 11.31(ia64).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I downloaded gcc-ia64-4.7.1.depot.gz from AllianceOne web site,&lt;BR /&gt;and installed it on HP-UX 11i 11.31(ia64).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that the gcc-ia64-4.7.1.depot.gz was built on 11.23(ia64).&lt;BR /&gt;Here is gcc -v output.&lt;/P&gt;&lt;PRE&gt;# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/hp-gcc-4.7.1/bin/../libexec/gcc/ia64-hp-hpux11.23/4.7.1/lto-wrapper
Target: ia64-hp-hpux11.23
Configured with: /home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/gcc_src/configure --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23 --build=ia64-hp-hpux11.23 --prefix=/home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/ia64-hp-hpux11.23/install/opt/hp-gcc --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/ia64-hp-hpux11.23 --with-mpfr=/proj/opensrc/be/ia64-hp-hpux11.23 SED=/usr/bin/sed Thread model: posix gcc version 4.7.1 (GCC)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I got compilation error with this environment.&lt;/P&gt;&lt;P&gt;Sample source code t.c&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;time.h&amp;gt;
int main() {
    struct tm t;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Compilation error with gcc&lt;/P&gt;&lt;PRE&gt;# which gcc
/opt/hp-gcc/bin/gcc
#
# gcc t.c
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:111:25: error: expected ')' before 'struct'
/usr/include/sys/_time.h:116:26: error: expected ')' before 'struct'
/usr/include/sys/_time.h:121:26: error: expected ')' before 'const'
/usr/include/sys/_time.h:131:25: error: expected ')' before 'struct'
/usr/include/sys/_time.h:147:26: error: expected ')' before 'struct'
/usr/include/sys/_time.h:152:26: error: expected ')' before 'int'
In file included from /usr/include/sys/_time.h:168:0,
                 from /usr/include/time.h:12,
                 from t.c:1:
/usr/include/sys/_timeval.h:33:2: error: unknown type name 'suseconds_t'
In file included from /usr/include/time.h:12:0,
                 from t.c:1:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
In file included from /usr/include/time.h:15:0,
                 from t.c:1:
/opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/sys/time.h:116:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
In file included from t.c:1:0:
/usr/include/time.h:59:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
t.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
#&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Guess and Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm not sure though I guess&amp;nbsp;this issue is caused by header files mismatch.&lt;BR /&gt;And I found /opt/hp-gcc-4.7.1/libexec/gcc/ia64-hp-hpux11.23/4.7.1/install-tools/mkheaders script.&lt;BR /&gt;This script seems to solve the 'header files mismatch' problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like to ask that how this script run ?&lt;BR /&gt;Is it needed to modify "# Basic information" section replacing '11.23' with '11.31' ?&lt;/P&gt;&lt;P&gt;Or is there any way to adjust this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 07:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6569894#M496765</guid>
      <dc:creator>inoguchi</dc:creator>
      <dc:date>2014-08-11T07:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust AllianceOne gcc on 11.31(ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6570146#M496766</link>
      <description>&lt;P&gt;&amp;gt;I guess&amp;nbsp;this issue is caused by header files mismatch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, see:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/gcc-error/m-p/3549796" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/gcc-error/m-p/3549796&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/gcc-g-on-hpux-won-t-compile-can-t-find-stdint/m-p/4061767" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/gcc-g-on-hpux-won-t-compile-can-t-find-stdint/m-p/4061767&lt;/A&gt;&lt;/P&gt;&lt;P&gt;h30499.www3.hp.com/t5/Languages-and-Scripting/Install-Doxygen/m-p/4701097&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;This script seems to solve the "header files mismatch" problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, Steve mentioned that.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 12:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6570146#M496766</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-08-11T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust AllianceOne gcc on 11.31(ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6570728#M496767</link>
      <description>&lt;P&gt;Thanks. It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# cd /opt/hp-gcc-4.7.1/libexec/gcc/ia64-hp-hpux11.23/4.7.1/install-tools
#
# ./mkheaders -v /opt/hp-gcc-4.7.1
Fixing headers into /opt/hp-gcc-4.7.1/lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed for ia64-hp-hpux11.23 target
Forbidden identifiers: hpux unix
Fixed:  complex.h
Fixed:  ia64/sys/getppdp.h
Fixed:  sys/_inttypes.h
Fixed:  sys/_time.h
Fixed:  sys/newsig.h
Fixed:  sys/pthread.h
Fixed:  sys/socket.h
Fixed:  sys/stdsyms.h
Fixed:  sys/time.h
Fixed:  sys/unistd.h
Fixed:  varargs.h
Fixed:  assert.h
Fixed:  ctype.h
Fixed:  curses.h
Fixed:  errno.h
Fixed:  pwd.h
Fixed:  stddef.h
Fixed:  stdint.h
Fixed:  stdio.h
Fixed:  stdlib.h
Fixed:  string.h
Fixed:  wchar.h
Fixed:  aCC/rw/compiler.h
Fixed:  aCC/stdcomp.h
Fixed:  aCC_std/stdcomp.h
Fixed:  exportent.h
Fixed:  X11/Xfuncs.h
Fixed:  X11/Xthreads.h
Fixed:  facetterm.h
Fixed:  facetwin.h
Fixed:  X11R6/X11/Xfuncs.h
Fixed:  X11R6/X11/Xthreads.h
fixincludes is done
#&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 02:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-adjust-allianceone-gcc-on-11-31-ia64/m-p/6570728#M496767</guid>
      <dc:creator>inoguchi</dc:creator>
      <dc:date>2014-08-12T02:09:35Z</dc:date>
    </item>
  </channel>
</rss>

