pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: g95 compilation failed



You can set PKGSRC_FORTRAN=gfortran and thus get a working Fortran compiler.

Pierre Dupond <76nemo76%gmx.ch@localhost> schrieb am Mo., 2. Sep. 2019, 15:55:
Hi All,
      On Linux Mint 19.2 (based on Ubuntu 18.04 LTS) the compilation of
g95 failed (even after passing this command "apt-get install gcc-multilib"
to install 32 bits libraries and headers).

This is due to the dereferencing of an incomplete pointer (when compiling gcc-4.1.2).
This bug seems to be well known but I have found no patch
for this version of the compiler (all the patches I have found
are for higher version of the compilers, starting at 5).

Do you have some idea on how to solve this problem?

thanks.

----------------------------------------error log---------------------------------------------


/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/./gcc/xgcc -B/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/./gcc/ -B/opt/pkg/x86_64-debian-linux/bin/ -B/opt/pkg/x86_64-debian-linux/lib/
-isystem /opt/pkg/x86_64-debian-linux/include -isystem /opt/pkg/x86_64-debian-linux/sys-include -O2  -O2 -O2 -D_FORTIFY_SOURCE=2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include  -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ../../gcc/unwind-dw2.c:256:
../../gcc/config/i386/linux-unwind.h: In function 'x86_64_fallback_frame_state':
../../gcc/config/i386/linux-unwind.h:58: error: dereferencing pointer to incomplete type
libgcc.mk:519: recipe for target 'libgcc/./unwind-dw2.o' failed
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory '/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/gcc'
Makefile:1436: recipe for target 'stmp-multilib' failed
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory '/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/gcc'
Makefile:3905: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95'
Makefile:615: recipe for target 'all' failed
make: *** [all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /opt/pkgsrc/lang/g95
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/lang/g95

--
Gmail <76nemo76%gmx.ch@localhost>


Home | Main Index | Thread Index | Old Index