Downgrade GNU make version from 4.1 to 3.81 or 3.82 - gnu-make

Could anyone please let me know how to downgrade GNU package. I tried to download make-3.82.tar.gz file and extracted it and ran .configure. Then tried to run make got below error,
/glob/glob.c:577 undefined reference to '__alloca'
glob/libglob.a(glob.o):/path/glob/glob.c:728 more undefined reference to '__alloca' follow
collect2: error: ld returned 1 exit status.
Makefile: 359: recipe for target 'make' failed.
Thanks

Related

HDF5 package error compile

I have compiled the HDF5 package by GCC 4.9.2, CentOS 6.8 and std=c++11, but I get error:
for package Linux 3.10 CentOS 7 x86_64 I get :
./host/src/hdf5/lib/libhdf5.so: undefined reference to `memcpy#GLIBC_2.14'
collect2: error: ld returned 1 exit status
for package Linux 2.6 CentOS 6 x86_64 I get :
/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld: warning: libsz.so.2, needed by ./host/src/hdf5/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_encoder_enabled'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffCompress'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffDecompress'
collect2: error: ld returned 1 exit status
Any idea to slove this?
Thank you
The compiler complains that it is not finding SZ_... routines. szip is an optional library for HDF5 that you have to download separately.
Two options:
Re-configure hdf5 to disable szip
download, build and install szip

Trying to compile R Package RSAP

I'm trying to compile the R Package RSAP using the command
R CMD INSTALL RSAP
The necessary SAP library SAP NW RFCSDK is located in C:\nwrfcsdk.
I'm building on Windows 10 64
R version 3.4 32 bit (I tired 64 as well)
R tools with mingw32
It does not compile but terminates with the following errors:
c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o RSAP.dll tmp.def RSAP.o -L. -LC:/nwrfcsdk/lib -lsapnwrfc -llibsapucum -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-34~1.0/bin/i386 -lR
RSAP.o:RSAP.c:(.text+0x4b): undefined reference to `RfcPing#8'
RSAP.o:RSAP.c:(.text+0x23a): undefined reference to `RfcUTF8ToSAPUC#24'
RSAP.o:RSAP.c:(.text+0x2d5): undefined reference to `RfcUTF8ToSAPUC#24'
RSAP.o:RSAP.c:(.text+0x369): undefined reference to `RfcUTF8ToSAPUC#24'
RSAP.o:RSAP.c:(.text+0x3ef): undefined reference to `RfcSAPUCToUTF8#24'
RSAP.o:RSAP.c:(.text+0x4b8): undefined reference to `RfcSAPUCToUTF8#24'
RSAP.o:RSAP.c:(.text+0x645): undefined reference to `RfcUTF8ToSAPUC#24'
RSAP.o:RSAP.c:(.text+0x6e3): undefined reference to `RfcUTF8ToSAPUC#24'
RSAP.o:RSAP.c:(.text+0x719): undefined reference to `RfcOpenConnection#12'
RSAP.o:RSAP.c:(.text+0x923): undefined reference to `RfcCloseConnection#8'
...
and so on until it stops with
collect2.exe: error: ld returned 1 exit status
keine DLL erzeugt
ERROR: compilation failed for package 'RSAP'
* removing 'C:/Users/jmueller/R/win-library/3.4/RSAP'
* restoring previous 'C:/Users/jmueller/R/win-library/3.4/RSAP'
What am I doing wrong? Any help is highly appreciated!
This is what happens when you try to build RSAP in the 32-bit environment of R using the 64-bit version of the SAP NW RFC SDK. I had the same problem and after executing the following command in the 64-bit environment of RGui (with the 64-bit version of SAP NW RFC SDK located in C:\nwrfcsdk) the undefined references were gone.
Command:
install.packages('RSAP', repos=c('http://piersharding.com/R'), type="source", configure.args=c('--with-nwrfcsdk-include=C:/nwrfcsdk/include --with-nwrfcsdk-lib=C:/nwrfcsdk/lib'))
as described in:
https://github.com/piersharding/RSAP/blob/master/INSTALL

/usr/bin/ld: cannot find -lsybctCollect2: ld returned 1 exit status

How to resolve this error.
/usr/bin/ld: cannot find -lsybct
Collect2: ld returned 1 exit status
I can understand that it says library is missing.
When i searched for that library. It is already installed in my system.
locate libsybct.so
shows me path in which libsybct is installed
echo $LD_LIBRARY_PATH also shows correct path. I dont know where it went wrong.
There is no symbolic link created for it..
whether creating symbolic link for a library is important... If so where should I create and with what version.
just show the whole command?
maybe you forgot the "-L/your/path" options when you complied.
$LD_LIBRARY_PATH is for running time.
see reference here: /usr/bin/ld: cannot find -lemu

Library of opencl not found?

I am trying to compile an opencl sample code but I am getting the following error
/usr/bin/ld: cannot find -lOpenCL
/usr/bin/ld: cannot find -loclUtil_x86_64
/usr/bin/ld: cannot find -lshrutil_x86_64
collect2: error: ld returned 1 exit status
make: *** [../../..//OpenCL//bin//linux/release/DeviceQuery] Error 1
I am using intel based machine ...
My make file is
EXECUTABLE := DeviceQuery
CCFILES := devQury.cpp
include ../common/common_opencl.mk
Any help would be of great help
Thanks ,
Piyush
Make sure that the OpenCL library (libOpenCL.so) is present in /usr/lib. This should have been put in place by the driver, so you shouldn't have to do anything.
If not then copy libOpenCL.so present in your cuda toolkit (lib64) to the above location.
sudo cp /usr/local/cuda-7.0/lib64/libOpenCL.so /usr/lib
This fixes the error
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
Have you installed the OpenCL SDK from either Intel or AMD? If not then perhaps you should follow these instructions. If you have an SDK installed then your makefile is probably missing -L... in the compiler command line, where ... is the path to the lib folder in the OpenCL SDK that should contain a file libOpenCL.a or something similar.

Cannot start with bnfc

I'm following a short bnfc example, to generate an haskell parser. When I launch the make command I get these errors:
latex DocCalc.tex; dvips DocCalc.dvi -o DocCalc.ps
/bin/sh: 1: latex: not found
/bin/sh: 1: dvips: not found
make: *** [all] Error 127
I don't have latex installed, neither divps (what is the last?). So I removed the line:
latex DocCalc.tex; dvips DocCalc.dvi -o DocCalc.ps
in the make file, because I don't know exactly the names of the needed packages to install, and because I don't need documetation files. So I relaunch the make command, and this time I get these errors, after the building phase:
Linking TestCalc ...
/usr/bin/ld: --hash-size=31: unknown option
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
Can you help me to understand what I'm missing?
As kosmikus said, it's a problem caused from ghc and the gold linker.
I resolved my problem reading this question

Resources