how to solve gcc command not found (only with arguments) on Ubuntu
I am working with Ubuntu 19, I have gcc installed When I run gccI am getting and error showing that I do have gcc gcc: fatal error: no input files compilation terminated.When I am running gcc with...
View Articlemakefile fails when creating object file for inner directory
In the current directory I have the following files:election.c election.h extended_map.c extended_map.h main.c test_utilities.c utilities.c utilities.hPlus I have an inner folder inside the current one...
View ArticleProblem when compile golang with gcc9.3.0
Update:this problem fixed in gcc10.1.0 (shipped with go1.14.2) Ref. VERSIONI try compile golang program to sparc-sun-solaris2.11 with gcc but encountered problem...
View Article'_Float128' is not supported on this target
I'm compiling Buildroot 2020.01.02 for an ARM architecture.My compiler version is : COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapperCible : x86_64-pc-linux-gnuConfiguré...
View Articlec inline assembly getting "operand size mismatch" when using cmpxchg
I'm trying to use cmpxchg with inline assembly through c. This is my code:static inline intcas(volatile void* addr, int expected, int newval) { int ret; asm volatile("movl %2 , %%eax\n\t""lock; cmpxchg...
View ArticleI typed "icov -f UTF-8 file" to the executable, the output was "illegal input...
My binary compiled by g++, when I try to open it with gdbgui (written in python), it read it with utf-8, then shows me this error:'utf-8' codec can't decode byte 0xf0 in...
View ArticleDoes macosx Catalina always use clang by default?
I have osx catalina installed and when I type gcc --version I get the following:Apple clang version 11.0.3 (clang-1103.0.32.59)Target: x86_64-apple-darwin19.4.0Thread model: posixInstalledDir:...
View ArticleEclipse IDE for Scientific Computing setup question C++ and Fortran
I have an old laptop that in 2018 I set up Eclipse IDE for Scientific Computing and was able to immediately compile FORTRAN programs with , with my new laptop I downloaded and installed Eclipse IDE for...
View Articlegcc could not find header files on mac os catalina
I am installing a package (called CLASS, widely used in cosmology) which cannot be compiled with Apple's gcc. I tried installing gcc by homebrew (gcc-9) and anaconda separately. But both of them could...
View Articlemmap behaviour changed after OS upgrade?
After a major OS upgrade this C code behaviour has changed:...if ((fd = open(argv[1], O_RDWR | O_SYNC)) == -1) FATAL;printf("character device %s opened.\n", argv[1]);fflush(stdout);/* map one page...
View ArticleHow do I install gcc on cygwin?
$ uname -r2.9.0(0.318/5/3)I don't have the gcc or the g++ command on my path after I install cygwin. What packages do I need to install to get this command?
View Articlecython: Cythonizing a large dict lookup
Given a script with only a hardcoded lookup dictionary, I was wondering if compiling it using Cython gave any performance gain.The dictionary file looks like described below and is around 5Mb. The...
View ArticleHow to install older version of GCC on Windows 10
I need to install MinGW GCC 7.3 on my computer for a project. Downloaded and installed: C:\MinGW\bin\MingGW-get.exe. But when I run it, it only gives me the option to install the latest GCC v9.2.0. How...
View Articleversion GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2
if anyone could give a beginner some help on gcc version issue?I met the issue on "version GLIBCXX_3.4.20' not found". After I followed the link: How to Install gcc 5.3 with yum on CentOS 7.2?I met...
View ArticleTypeError [ERR_INVALID_CALLBACK]: Callback must be a function (C++ on Atom...
fs.js:157TypeError [ERR_INVALID_CALLBACK]: Callback must be a functionat maybeCallback (fs.js:157:9)at Object.fs.writeFile (fs.js:1290:14)at ChildProcess.child.on...
View ArticleAdvanced C and C++ compiling: unable to compile the example program mentioned...
I'm reading the book named "Advanced C and C++ compiling", by Milan StevanovicThe following is the snapshot from the book, followed by the problem I'm facing.Concept illustration: Demo ProjectThe...
View ArticleHow can i get gcc profile guided optimizations to stop writing files after...
I'm doing this in a makefile and it results on the first run creating the .gcda files in that dir; but as soon as i do the second, if find that the executable is almost as slow (and this is surely...
View ArticleWhy is "\?" an escape sequence in C/C++?
There are four special non-alphabet characters that need to be escaped in C/C++: the single quote \', the double quote \", the backslash \\, and the question mark \?. It's apparently because they have...
View ArticleExport dll from gcc is not load in other computer c# [closed]
error : System.DllNotFoundException I have to load a dll from C#.I extracted the dll from the gcc using MinGW64, Conan, etc. But it only loads on the visual studio of the computer I'm using. It doesn't...
View ArticleHow to know which gcc version to choose when compiling pytorch from source?
I am working on installing PyTorch from source but am unsure about the specific dependency versions to use for the version of PyTorch I want to install. In particular, I noticed performance variations...
View Article