I build gcc for arm from scratch. In the final step of building gcc occur errors. I’m counting on your help. make Update Solution: bogdan@bogdan-VirtualBox:~/xtools/build2/final-gcc-2$ $gcc_src/configure –build=$buildmach –target=$targetmach –prefix=$installdir CC=gcc –with-sysroot=$sysrootdir –enable-languages=c –with-gnu-as –with-gnu-ld –disable-multilib –with-float=soft –disable-sjlj-exceptions –disable-nls –enable-threads=posix –disable-libmudflap –disable-libssp –enable-long-longx –with-shared –with-gmp=$installdir –with-mpfr=$installdir With that another errors appeared: Answer Solution: bogdan@bogdan-VirtualBox:~/xtools/build2/final-gcc-2$ $gcc_src/configure –build=$buildmach –target=$targetmach –prefix=$installdir CC=gcc –with-sysroot=$sysrootdir –enable-languages=c
Tag: c++
Thread Program on Linux (Posix Thread)
I want to modify the multithread program on the Linux operating system using this Pthread API. I want to change that program into a program that has 2 threads that work together to add a number. But i don’t know how to change it, Thanks again for any help that can be offered. I am sorry,because I’m not good at
How to detach from process, so that it can be traced by another process?
Program steps: Create child process by fork and call execv inside it Ptrace attach to child process Do something with ptrace Detach from child execute gdb -p child_pid But when gdb starts, it writes that child process is already tracked. How to detach from traced process, so that it can be traced by another process? Code that do things above
What could be the difference between an embedded serial read operation and a Desktop- PC
In an embedded Linux system, I am coding the project which tests serial port in a pyhsically loopback environment. It means I am connecting rx-tx.The peripheral output is RS-232 In order to test the port I am sending 1 byte then I read the sent byte. I repeat this cycle from 0x00 to 0XFF. I am using raw input type
How are external symbols of a shared library resolved in the main program?
I’ve been reading a lot about the semantics of load-time linking of shared libraries and one thing that I’m having trouble understanding is how can the main program make references to functions defined in shared libraries? For example, say I have this code myShared.sh main.c I understand that, since shared libraries cannot make any assertions about where they will be
What’s the use of LLVM in Android NDK Toolchains?
What’s the use of LLVM in Android NDK Toolchains? A little recap: I was building my native project with Gradlew on Ubuntu, targeting arm and x86_64 architectures. Seems that LLVM were utilized to call C/C++ compiler of arm-linux-androideabi-4.9 as well as x86_64(?) The following is extracted from armeabi-v7a/ndkBuild_build_output.log: /home/mypc/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -MMD -MP -MF /home/mypc/git/android-project-1/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/module-5/stream_cpp.o.d -gcc-toolchain /home/mypc/Android/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument
Live555 RTSP server does not use UDP
I have a pretty basic live555 RTSP server and client to stream a h264 stream written in c++. Here’s the code I have for the client (adapted from testProgs/testRTSPClient.cpp, bundled with live555) Here’s the code I have for the server (adapted from testProgs/testOnDemandRTSPServer.cpp, bundled with live555) I was under the assumption that live555 by default used UDP to transport data
Why doesn’t putchar() output the copyright symbol while printf() does?
So I want to print the copyright symbol and putchar() just cuts off the the most significant byte of the character which results in an unprintable character. I am using Ubuntu MATE and the encoding I am using is en_US.UTF-8. Now what I know is that the hex value for © is 0xc2a9 and when I try putchar(‘©’ – 0x70)
WebAssembly emsdk installation fails
I want to install EMSDK for WASM compilation but EMSDK installation fails. I’ve already installed Cmake (3.14.0-rc1 also tried 3.5.2 then) on Ubuntu 16. When I run ./emsdk install sdk-incoming-64bit binaryen-master-64bit it fails: Answer You are probably missing make as cmake is complaining that there is no make program. Try sudo apt-get install build-essential
Computing the set of writes when executing a function
I want to write a function computeWriteSet that takes an arbitrary function f as an argument and (1) executes the function f and (2) returns the set of places modified or written to (addresses/pages/objects) during f’s execution. What options exist for implementing it? What are their tradeoffs (in which case which implementation is more efficient and what are the limitations?)