0

I am trying to native build GCC 4.8.5 on the HP-UX cause HP-UX does not support GCC 4.8.5 package installation.

What I did is download gcc-4.8.5 src and then configure, make.

pwd
-> /data5/poagent/

mkdir build && cd build

../gcc-4.8.5/configure --prefix=/data5/poagent/build --enable-languages=c,c++ --without-cloog --with-gnu-as --with-as=/usr/local/ia64-hp-hpux11.31/bin/as --with-gnu-ld --with-ld=/usr/ccs/bin/ld

make

during make I get under error log

checking for ia64-hp-hpux11.31-gcc... /data5/poagent/build/./gcc/xgcc -B/data5/poagent/build/./gcc/ -B/data5/poagent/build/ia64-hp-hpux11.31/bin/ -B/data5/poagent/build/ia64-hp-hpux11.31/lib/ -isystem /data5/poagent/build/ia64-hp-hpux11.31/include -isystem /data5/poagent/build/ia64-hp-hpux11.31/sys-include checking for suffix of object files... configure: error: in /data5/poagent/build/ia64-hp-hpux11.31/libgcc': configure: error: cannot compute suffix of object files: cannot compile Seeconfig.log' for more details. gmake[2]: * [Makefile:16197: configure-stage1-target-libgcc] Error 1 gmake[2]: Leaving directory '/data5/poagent/build' gmake[1]: * [Makefile:20005: stage1-bubble] Error 2 gmake[1]: Leaving directory '/data5/poagent/build' gmake: *** [Makefile:888: all] Error 2

and follow is a part of the error log in /data5/poagent/build/ia64-hp-hpux11.31/libgcc/config.log

Target: ia64-hp-hpux11.31 Configured with: ../gcc-4.8.5/configure

--prefix=/data5/poagent/build --enable-languages=c,c++ --without-cloog --wi th-gnu-as --with-as=/usr/local/ia64-hp-hpux11.31/bin/as --with-gnu-ld --with-ld=/usr/ccs/bin/ld

Thread model: posix gcc version 4.8.5 (GCC) configure:3358: $? = 0

configure:3374: /data5/poagent/build/./gcc/xgcc -B/data5/poagent/build/./gcc/ -B/data5/poagent/build/ia64-hp-hpux11 .31/bin/ -B/data5/poagent/build/ia64-hp-hpux11.31/lib/ -isystem /data5/poagent/build/ia64-hp-hpux11.31/include -isy stem /data5/poagent/build/ia64-hp-hpux11.31/sys-include -o conftest -g -O2 conftest.c >&5

conftest.c: In function 'main': conftest.c:15:3: internal compiler error: Illegal instruction

return 0;

no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions.

...

configure:3565: checking for suffix of object files

configure:3587: /data5/poagent/build/./gcc/xgcc -B/data5/poagent/build/./gcc/ -B/data5/poagent/build/ia64-hp-hpux11 .31/bin/ -B/data5/poagent/build/ia64-hp-hpux11.31/lib/ -isystem /data5/poagent/build/ia64-hp-hpux11.31/include -isy stem /data5/poagent/build/ia64-hp-hpux11.31/sys-include -c -g -O2 conftest.c >&5

conftest.c: In function 'main': conftest.c:15:3: internal compiler error: Illegal instruction

return 0;

How can I solve this problem. Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.