Problem with old code while installing Dock6 - fortran

I'm trying to install Dock6 (version 6.9) on Fedora 35, I got the license from the website, opened the tarball and followed the manual instructions.
As per the instructions I've run the command ./configure gnu to create a config.h file which uses the gfortran compiler, installed the latest version of gfortran and run Make all.
The problem seems to be that the source code was written with g77 in mind and I get a lot of warnings and 2 errors saying:
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
cdiag.f:388:72:
388 | 50 CALL ME08B (A(K,K),Q(K),A(I,K),N-K+1,IA*2)
| 1
**Error: Type mismatch in argument ‘a’ at (1); passed COMPLEX(4) to REAL(4)**
cdiag.f:15:72:
15 | CALL EC08C(W,W(N+1),VALUE,VEC,N,IV,W(2*N+1))
| 1
**Error: Type mismatch in argument ‘vec’ at (1); passed COMPLEX(4) to REAL(4)**
make[2]: *** [../../../install/rules.h:44: cdiag.o] Errore 1
make[2]: uscita dalla directory «/home/francesco/docking/dock6/src/mopac6/src»
make[1]: *** [Makefile:21: utils] Errore 2
make[1]: uscita dalla directory «/home/francesco/docking/dock6/src»
make: *** [Makefile:14: install] Errore 2
so i read in the config.h file that it was also possible to compile with g95 and g77.
If I compile with g95, which I managed to install, I get this error:
**f951: error: unrecognized command line option "-fno-automatic"**
make[2]: *** [../../install/rules.h:44: showbox.o] Errore 1
make[2]: uscita dalla directory «/home/francesco/docking/dock6/src/accessories»
make[1]: *** [Makefile:16: utils] Errore 2
make[1]: uscita dalla directory «/home/francesco/docking/dock6/src»
make: *** [Makefile:14: install] Errore 2
regarding g77, I just cannot find a way to install it, I managed to find a .deb package, converted it to RPM using alien command, but it doesn't complete the installation saying it conflicts with something in the system.

Related

Cannot compile MEGA api

I'm using Windows 7 64bits and been trying to compile the MEGA api with MSYS2 using the autotools, but after running 'make' compilation stops showing this error:
# make
make all-recursive
make[1]: Entering directory '/d/sdk-develop'
Making all in include
make[2]: Entering directory '/d/sdk-develop/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/sdk-develop/include'
make[2]: Entering directory '/d/sdk-develop'
CXX examples/megacli-megacli.o
In file included from D:/msys64/mingw64/include/zconf.h:475,
from D:/msys64/mingw64/include/zlib.h:34,
from ./include/mega/win32/meganet.h:26,
from ./include/mega.h:76,
from examples/megacli.cpp:22:
./include/mega/win32/megafs.h:170:10: error: 'bool mega::WinFileAccess::ftruncate64()' marked 'override', but does not override
170 | bool ftruncate() override;
| ^~~~~~~~~
make[2]: *** [Makefile:2742: examples/megacli-megacli.o] Error 1
make[2]: Leaving directory '/d/sdk-develop'
make[1]: *** [Makefile:3294: all-recursive] Error 1
make[1]: Leaving directory '/d/sdk-develop'
make: *** [Makefile:1495: all] Error 2

Is it possible to get list of libraries set that produce fine build?

Trying to build GCC for Raspberry Pi from source according to project in my Ubuntu 20.04 machine with gcc 9.3.0 . Getting different problems while taking different sets of libraries
Configuration below brings __uint128_t error:
GCC_VERSION="9.3.0"
BINUTILS_VERSION="2.34"
GLIBC_VERSION="2.31"
MPFR_VERSION="3.1.6"
MPC_VERSION="1.0.3"
GMP_VERSION="6.2.0"
CLOOG_VERSION="0.18.1"
In file included from ../sysdeps/unix/sysv/linux/bits/sigcontext.h:30,
from ../signal/signal.h:291,
from ../include/signal.h:2,
from ../misc/sys/param.h:28,
from ../include/sys/param.h:1,
from ../sysdeps/generic/hp-timing-common.h:39,
from ../sysdeps/generic/hp-timing.h:25,
from ../nptl/descr.h:27,
from ../sysdeps/arm/nptl/tls.h:42,
from ../sysdeps/unix/sysv/linux/arm/tls.h:23,
from ../sysdeps/unix/sysv/linux/arm/sysdep.h:30,
from <stdin>:1:
/home/a/gcc_buildings/1/xc-arm-linux-gnueabi/arm-linux-gnueabi/include/asm/sigcontext.h:77:2: error: unknown type name ‘__uint128_t’
77 | __uint128_t vregs[32];
| ^~~~~~~~~~~
Configurations below brings the same mpfr_fmma error:
GCC_VERSION="9.3.0"
BINUTILS_VERSION="2.34"
GLIBC_VERSION="2.31"
MPFR_VERSION="4.1.0"
MPC_VERSION="1.0.3"
GMP_VERSION="6.2.0"
CLOOG_VERSION="0.18.1"
GCC_VERSION=9.3.0"
MPFR_VERSION="4.1.0"
MPC_VERSION="1.2.1"
GMP_VERSION="6.2.1"
ISL_VERSION="0.18"
CLOOG_VERSION="0.18.1"
/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/gcc-4.9.2/mpfr/src/mpfr.h:765:21: note: previous declaration of ‘mpfr_fmma’ was here
765 | __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
| ^~~~~~~~~
make[3]: *** [Makefile:532: mul.lo] Error 1
make[3]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc/src'
make[2]: *** [Makefile:462: all-recursive] Error 1
make[2]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc'
make[1]: *** [Makefile:373: all] Error 2
make[1]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc'
make: *** [Makefile:5289: all-mpc] Error
In other libraries combinations I'm getting other errors.
Is it possible to get list of libraries set that produce fine build?

cross compiling protocol buffers for arm

I am new to Google's protocol buffers and I am having trouble with cross-compiling it for arm. I am not able to find any concrete solutions to my problem using google.
The steps I am following:
./autogen.sh
./configure
make -s && make install
./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc --prefix=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --with-protoc=/usr/local/bin/protoc
make
I get an error when I run make.
google/protobuf/stubs/common.cc:55:2: error: #error "No suitable threading library available."
#error "No suitable threading library available."
^
Makefile:3956: recipe for target 'google/protobuf/stubs/common.lo' failed
make[2]: *** [google/protobuf/stubs/common.lo] Error 1
make[2]: Leaving directory '/home/protobuf/protobuf/src'
Makefile:1544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/protobuf/protobuf'
Makefile:1451: recipe for target 'all' failed
make: *** [all] Error 2
Any help would be much appreciated.

Build of Julia fails on OS X with llvm-config error

I have been trying to build Julia the whole day in MacOS Sierra. Finally after sorting out a lot of problems I'm stuck at this.
/bin/sh: llvm-config: command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
CC src/APInt-C.o
In file included from /Users/sudoankit/github/julia/src/APInt-C.cpp:3:
./llvm-version.h:3:10: fatal error: 'llvm/Config/llvm-config.h' file not found
#include <llvm/Config/llvm-config.h>
^
1 error generated.
make[1]: *** [APInt-C.o] Error 1
make: *** [julia-src-release] Error 2
I have updated everything and also installed llvm using brew.
Please tell me how to fix it.

Compile error when trying to install gst-plugins-bad 1.4.3

I am trying to install gst-plugins-bad 1.4.3 in order to install gstreamer-sharp 1.39 in order to install banshee 2.9.1. I downloaded the source distribution from git and was able to run autogen.sh, but running make install crashes with the following error.
make[3]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
make[2]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
make[1]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
Making install in sys
make[1]: Entering directory `/home/david/Downloads/gst-plugins-bad/sys'
Making install in decklink
make[2]: Entering directory `/home/david/Downloads/gst-plugins-bad/sys/decklink'
CXXLD libgstdecklink.la
/usr/bin/ld: .libs/libgstdecklink_la-gstdecklink.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
.libs/libgstdecklink_la-gstdecklink.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libgstdecklink.la] Error 1
make[2]: Leaving directory `/home/david/Downloads/gst-plugins-bad/sys/decklink'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/david/Downloads/gst-plugins-bad/sys'
make: *** [install-recursive] Error 1
I don't know how to respond to this error and I can't seem to find anyone else who has encountered it. What should I do? I am running Linux Mint 13.