Can't build gem5 (ARM) due to missing -lgrpc++ - ubuntu-20.04

I am trying to build gem5 (ARM) using
scons build/ARM/gem5.opt -j 1
But I keep getting this error
/usr/bin/ld: cannot find -lgrpc++
collect2: error: ld returned 1 exit status
scons: *** [build/ARM/gem5.opt] Error 1
scons: building terminated because of errors.
I can't seem to find any information on this missing file. It's not anywhere in the computer afaik and google isn't helping much either

It looks like you need to instal the grpc package. It contains the missing file, libgrpc++.so, most likely in /usr/lib/libgrpc++.so. See also Ubuntu packages site: https://packages.ubuntu.com/source/impish/misc/grpc

Related

Build of Poco fails on Mac Catalina when linking libPocoCrypto.dylib

I cloned the latest version of the Poco libraries source code on to my Mac and attempted to build it per the instructions using CMake. Everything proceeded fine until it reached a point where it was trying to link the libPocoCrypt.dylib library. Even though the C++ compilation worked with out error, the link resulted in the following output
ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libPocoCrypto.80.dylib] Error 1
make[1]: *** [Crypto/CMakeFiles/Crypto.dir/all] Error 2
make: *** [all] Error 2
Doing some research, I discovered that Apple doesn't want applications linking against its libcrypto library and thus, the resulting error messages. The question then is, what do I need to do here to make this work?

Where is the intel sgx psw and making intel sgx work with ubunut 18.04

I've tried following the intel instructions to install sgx, but it requires the sgx_linux_x64_psw_.bin file, which i cannot find anywhere. I've got the driver installer (sgx_linux_x64_driver_1.35.bin) and the sdk installer(sgx_linux_x64_sdk_2.10.100.2.bin), intel seems not to have a psw for linux? If so, how do i properly work with sgx? I tried simply executing the driver and sdk .bin files, but the sample code in the sdk would not compile (after make SGX_MODE=SIM), even after setting the sgxsdk directory to /opt/intel/sgxsdk. I'd get the following compile error:
/usr/bin/ld: warning: libsgx_uae_service_sim.so, needed by /opt/intel/sgxsdk/lib64/libsgx_urts_sim.so, not found (try using -rpath or -rpath-link)
/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so: undefined reference to `get_launch_token'
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'app' failed
make[1]: * [app] Error 1
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
Makefile:180: recipe for target 'all' failed
make: * [all] Error 2
Any help with either issue would be much appreciated!
So at least in my case, it seems the issue was that I was A, using a virtual machine, which can ONLY run in simulation mode, so getting a fully working version of sgx is impossible. Secondly, I was using an outdated installation guide, for anyone else trying to use this stuff, make sure to get the installation guide from the intel download page along with the version you are downloading.
download source code from https://github.com/intel/linux-sgx, compile according to the instructions and then install psw.

xgo cross compile not working for alsa-lib

Note: I have also created this as an issue for xgo here, but I thought it might be better suited as an SO question.
I am trying to cross compile my go application and one of the dependencies is the alsa.lib. I cannot get this to sucessfully compile using xgo.
Initially I tried with this command:
xgo --targets=linux/*,windows/*,darwin/* -deps=ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.8.tar.bz2 github.com/Lynges/susimup
And that produced this error:
/deps-build/alsa-lib-1.1.8/src/pcm/pcm_softvol.c:856: undefined reference to 'pow'
collect2: error: ld returned 1 exit status
2019/04/11 22:51:27 Failed to cross compile package: exit status 2
So then I added the depsargs to get --with-softfloat and that moved it along to a new error:
/deps-build/alsa-lib-1.1.8/src/pcm/pcm_meter.c:674: undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
And that is where I am stuck now.
I have tried adding some more arguments like mentioned in the comment to this answer, but that just gave me a warning:
configure: WARNING: unrecognized options: --disable-alsamixer, --disable-xmto, --disable-nls, --disable-bat
So now I really have no idea what to do. I just want to cross compile my very simple app for arm so that it may be used on a Raspberry pi.

Which binary should I take to resolve the error 'ld terminated with signal 11 [Segmentation fault], core dumped'?

I came across this error when I tried to compile a project that used xerces-c library(binaries). Since this is a binary it does not come with ./configure and hence I skipped doing the same(./configure). I am providing the xerces-c files as include and library to my xml reading program as anyone would normally do. The only error left is as below...
--Error output ---
Building target: MyXmlProject.exe
Invoking: Cygwin C++ Linker
g++ -L"C:\cppLib\xerces-c-3.1.1-x86_64-linux-gcc-3.4\lib" -o "MyXmlProject.exe" ./xmldom/XmlDomDocument.o ./xmldom/main.o -lxerces-c
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: BFD (GNU Binutils) 2.25 assertion fail /cygdrive/i/szsz/tmpp/cygwin64/binutils/binutils-2.25-1.x86_64/src/binutils-gdb/bfd/cofflink.c:264
makefile:48: recipe for target 'MyXmlProject.exe' failed
make: *** [MyXmlProject.exe] Error 1
I had downloaded the binaries from http://archive.apache.org/dist/xerces/c/3/binaries/ I have tried with a. xerces-c-3.1.1-x86_64-linux-gcc-3.4 and b. xerces-c-3.1.1-x86-linux-gcc-3.4 both the files but both result in same error.
Seems that the above two binaries are compiled for different platform and do not work on windows. The environment I am using is eclipse, cygwin64 on windows8.1. Can someone tell me which binary should I take so that the error is resolved?
The other options are tedious and wanted to avoid those. People who wants to know how I came across this error and other options please refer to How to resolve "relocation truncated to fit: R_X86_64_PC32 against undefined symbol `xercesc_3_1::AbstractDOMParser::adoptDocument()'"

How to compiling PJProject for iphone error

I am trying to compile PJSip for iPhoneSDK 5.1. I am running Lion 1.7.3 and Xcode 4.3.3. I did not find any helpful information about compiling it. I am not even sure it's got support for the iphonesdk 5.1. I didn't get any information about it on the project's website. I am not sure if something changed in the compiler from the last iPhoneSDK release but these are the errors i'm getting
I followed the steps on the project's website I change the config_site.h added the lines
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
Then moved the header to the location pjlib/include/pj/
I the configure-iphone file i've change the line
./aconfigure --host=arm-apple-darwin9 --disable-floating-point --disable-sdl $*
to
./aconfigure --host=arm-apple-darwin10 --disable-floating-point --disable-sdl $*
sow it would compile for iPhoneSDK 5.1
when i rune the configure-iphone everything i get no errors but when i run make sep i get this errors at samples.mak
make -f Samples.mak depend
make[2]: Nothing to be done for `depend'.
and while running make
"_pjsua_aud_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
"_pjsua_vid_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
make[2]: * [../bin/pjsua-arm-apple-darwin10] Error 1
make[1]: * [pjsua] Error 2
make: * [all] Error 1
Did anybody solve this problem , or can provide a solution to compile Pjsip for iphonesdk5.1 whit Xcode 4.3.3.
type ./configure-iphone in terminal at your pjsip directory
remember to install command-line tool via Xcode
when configure is done
try to make dep && make clean && make

Resources