https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86599
Bug ID: 86599 Summary: Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: bugzilla-gcc at thewrittenword dot com Target Milestone: --- I tried building gcc-7.2.0 on HP-UX 11.31/PA as follows: $ gtar Jxf gcc-7.2.0.tar.xz $ cd gcc-7.2.0 $ mkdir .obj $ cd .obj $ PATH=/opt/TWWfsw/gcc49/bin:$PATH ../configure \ SHELL=/opt/fsw/bash42/bin/bash --enable-nls --with-included-gettext \ --enable-shared --enable-languages=c,c++,fortran \ --with-gmp=/opt/TWWfsw/libgmp61 --with-isl=/opt/TWWfsw/libisl016 \ --with-mpc=/opt/TWWfsw/libmpc10 --with-mpfr=/opt/TWWfsw/libmpfr31 \ --with-gnu-as --with-as=/opt/TWWfsw/gcc7/hppa2.0-hp-hpux11.31/bin/as \ --with-local-prefix=/tmp/gcc7 --prefix=/tmp/gcc7 ... $ PATH=/opt/TWWfsw/gcc49/bin:$PATH \ ac_cv_prog_OBJCOPY="/opt/TWWfsw/gcc7/bin/gobjcopy" \ ac_cv_prog_OBJDUMP="/opt/TWWfsw/gcc7/bin/gobjdump" gmake The build failed with the following: libtool: compile: /opt/build/china/gcc-7.2.0/.obj/./gcc/xgcc -B/opt/build/china /gcc-7.2.0/.obj/./gcc/ -B/tmp/gcc7/hppa2.0w-hp-hpux11.31/bin/ -B/tmp/gcc7/hppa2. 0w-hp-hpux11.31/lib/ -isystem /tmp/gcc7/hppa2.0w-hp-hpux11.31/include -isystem / tmp/gcc7/hppa2.0w-hp-hpux11.31/sys-include -DHAVE_CONFIG_H -I. -I/opt/build/chin a/gcc-7.2.0/libgfortran -iquote/opt/build/china/gcc-7.2.0/libgfortran/io -I/opt/ build/china/gcc-7.2.0/libgfortran/../gcc -I/opt/build/china/gcc-7.2.0/libgfortran/../gcc/config -I/opt/build/china/gcc-7.2.0/libgfortran/../libquadmath -I../.././gcc -I/opt/build/china/gcc-7.2.0/libgfortran/../libgcc -I../libgcc -I/opt/build/china/gcc-7.2.0/libgfortran/../libbacktrace -I../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules -g -O2 -MT read.lo -MD -MP -MF .deps/read.Tpo -c /opt/build/china/gcc-7.2.0/libgfortran/io/read.c -fPIC -DPIC -o .libs/read.o /opt/build/china/gcc-7.2.0/libgfortran/io/read.c: In function 'convert_real': /opt/build/china/gcc-7.2.0/libgfortran/io/read.c:177:30: error: incompatible types when assigning to type 'GFC_REAL_16 {aka long double}' from type 'long_double {aka struct <anonymous>}' *((GFC_REAL_16*) dest) = gfc_strtold (buffer, &endptr); ^ gmake[3]: *** [read.lo] Error 1 gmake[3]: Leaving directory `/opt/build/china/gcc-7.2.0/.obj/hppa2.0w-hp-hpux11.31/libgfortran' I was able to build on HP-UX 11.23/PA.