Ruiz, Carlos M
2018-02-05 18:03:52 UTC
Hi
I am trying to build libunwind 1.2.1 on HPIA64, and I got errors because the file mk_Gcursor_i.c seems missing from the src/ia64 subdirectory. I tried 1.3, and the same. Then I tried 1.2, and the error I get now is different. The file mk_Gcursor_i.c is not missing, but I get compilation errors:
The OS is:
B.11.31.1403.400a Base Quality Pack Bundle for HP-UX 11i v3, March 2014
[134] % which gcc
/opt/hp-gcc-4.7.1/bin/gcc
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)
As indicated in the README file, I am executing this:
$ ./configure CFLAGS="-g -O2 -mlp64" CXXFLAGS="-g -O2 -mlp64"
[154] % make
No suffix list.
Making all in src
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include/tdep-ia64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -mlp64 -fexceptions -Wall -Wsign-compare -S "./ia64/mk_Gcursor_i.c" -o mk_Gcursor_i.s
In file included from /usr/include/time.h:12:0,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
from ../include/libunwind-ia64.h:29,
from ../include/libunwind.h:13,
from ../include/libunwind_i.h:52,
from ./ia64/mk_Gcursor_i.c:28:
/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 /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
from ../include/libunwind-ia64.h:29,
from ../include/libunwind.h:13,
from ../include/libunwind_i.h:52,
from ./ia64/mk_Gcursor_i.c:28:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
/usr/include/sys/_time.h:178:1: error: unknown type name '_END_EXT_CDECL'
In file included from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36:0,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
etc...
Any idea what I can be doing wrong ?
Thanks
Carlos
I am trying to build libunwind 1.2.1 on HPIA64, and I got errors because the file mk_Gcursor_i.c seems missing from the src/ia64 subdirectory. I tried 1.3, and the same. Then I tried 1.2, and the error I get now is different. The file mk_Gcursor_i.c is not missing, but I get compilation errors:
The OS is:
B.11.31.1403.400a Base Quality Pack Bundle for HP-UX 11i v3, March 2014
[134] % which gcc
/opt/hp-gcc-4.7.1/bin/gcc
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)
As indicated in the README file, I am executing this:
$ ./configure CFLAGS="-g -O2 -mlp64" CXXFLAGS="-g -O2 -mlp64"
[154] % make
No suffix list.
Making all in src
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include/tdep-ia64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -mlp64 -fexceptions -Wall -Wsign-compare -S "./ia64/mk_Gcursor_i.c" -o mk_Gcursor_i.s
In file included from /usr/include/time.h:12:0,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
from ../include/libunwind-ia64.h:29,
from ../include/libunwind.h:13,
from ../include/libunwind_i.h:52,
from ./ia64/mk_Gcursor_i.c:28:
/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 /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
from ../include/libunwind-ia64.h:29,
from ../include/libunwind.h:13,
from ../include/libunwind_i.h:52,
from ./ia64/mk_Gcursor_i.c:28:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
/usr/include/sys/_time.h:178:1: error: unknown type name '_END_EXT_CDECL'
In file included from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/wchar.h:36:0,
from /opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/inttypes.h:697,
etc...
Any idea what I can be doing wrong ?
Thanks
Carlos