Asan : Issue with asan library loading
In our build system we have recently integrated ASAN tool (adding -fsanitize=address) to CFLAGS & also while linking , creating library .so files. Note:- We are using GCC 6.3 compiler.We are able...
View Articlerunning gcc failed: exit status 1 in golang in windows
when i run my code fyne package GUI in golang , i get this error in terminal: C:\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1...
View Articlehow to install gcc-arm-none-eabi at Mojave MacOS
i'm now using MacOS Mojave.i want to use gcc-arm-none-eabi for ergodox. but i cannot install it by brew.vikke@kosanji:~/vcswork/qmk_firmware [master]$ brew search gcc-arm-none-eabi No formula or cask...
View Articleconstexpr: gcc is trying harder to eval constexpr than clang
I'm using godbolt to see generated code with gcc and clang.I tried to implement to djb2 hash.gcc always trying is best to eval constexpr function.clang is evaluating constexpr only if the variable is...
View ArticleCompiler doesn't find boost library libboost_serialization with gcc or clang...
I downloaded boost with the accepted answer here on my Mac running Sierra. It was saved under /opt/local/include/. Just to make sure that the library functions correctly, I tried to run this program...
View ArticleR packages in openSUSE 13.1
This issue was reported on stack overflow before but no matter what I do I still get the same thing. Whenever I try to install any R package i get the following:install.packages("Hmisc", repos =...
View ArticlePossible GCC bug when returning struct from a function [closed]
I believe I found a bug in GCC while implementing O'Neill's PCG PRNG. (Initial code on Godbolt's Compiler Explorer)After multiplying oldstate by MULTIPLIER, (result stored in rdi), GCC doesn't add that...
View Articlegcov final link failed
While compiling my project with gcov support I am facing the below errorFollowing are flags information i have while compilingcompiler flags:CXXFLAGS="-Wno-deprecated -g -ggdb -fprofile-arcs...
View ArticleHow to install gcc 7.4 on Catalina
How can I install gcc version 7.4 on Catalina Mac OS?On Homebrew, if I punch in the command brew install gcc@7 in the Terminal, I get gcc version 7.5 since that is the latest stable version for...
View ArticleGCC (MinGW) Linker Fails When Trying to Use GetProcessImageFileName
I am trying to retrieve the name of remote processes using "GetProcessImageFileName". However, the GCC (MinGW) linker fails with the following error(s):<source_file>.c: In function...
View ArticleHow to find Test Coverage without using gcov?
I am working on an Rtos project and I believe its toolchain has not enabled the gcov component of GCC. I cannot modify the toolchain part and I want to find the code coverage of the Rtos. How can I...
View Articlehow do you intercept the address of an instruction that is writing to a...
Imagine we have a usual instruction such as this onemov [eax], ebx and eax contains some address that we would like to write to.The idea is to write a c program that tells you which address contains...
View ArticleError: this statement may fall through [-Werror=implicit-fallthrough=]
I am trying to compile mitk on ubuntu and I got this error : error: this statement may fall through [-Werror=implicit-fallthrough=]Here there is a part of code : /** Get memory offset for a given image...
View ArticleWhat is a lifetime of a function return value?
I read about the return values between function calls, and experimented with the following code snippet :/* file structaddr.c */ #include <stdio.h> #define MSIZE 10 struct simple { char...
View ArticleMAC: Qt Cannot detect toolkit
How I can configure QT Project using Qt 5.12.1/Qt Creator 4.8.1 I need compile my project for mac os. I tryed with QT Creator, then, below problem occur.Or compile with below command.qmake make But,...
View ArticleI'm having a problem with gnu gcc ld syntax
Okay, I'm rather new to gcc and ld and I'm clearly missing something, but I can't seem to find a specific answer here, in "Using ld", or elsewhere on the net.I'm using a simple source code file I...
View ArticleIs there a warning for assigning an enum variable with a value out of the...
I have a C function which uses an enum as parameter, like the example bellow:typedef enum { AB, CD } A; void f(A input) { // do something } int main(void) { // do something f(-10); // do something } Is...
View ArticleGCC shows compilation error location in the .i file, how can I make it show...
When compiling my C program the preprocessor outputs the .i files, which then get compiled. Then, reaching a compilation error, it's presented with the location in the .i file, not the original .c...
View ArticleHow to integrate clang-tidy to CMake and GCC?
I want to integrate clang-tidy to our C and C++, CMake based project which is compiled using a custom GCC toolchain.I've tried following this tutorial, setting CMAKE_CXX_CLANG_TIDY. I've also tried...
View ArticleWhy does gcc not see include path?
I'm using Ubuntu 18.04 and gcc 8.3 and when compiling a project which builds an out-of-tree kernel module, I get the following error.make -C "/usr/src/linux-headers-4.15.18" modules make[1]: Entering...
View Article