Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Browsing all 22037 articles
Browse latest View live
↧

Is this a BUG GCC/CLANG?

Is this a BUG? GCC 7/8/9 - compile OK. CLANG 9.0.1 - compile OK.http://tpcg.io/InKuRSMhtypedef struct key_val_t{ char key[255]; char val[255]; } key_val_t; int compare_str(const void* data1, const...

View Article


Vector bitwise and with constant value on GCC

Is the following test case valid for gcc?typedef signed char v16signed_char __attribute__ ((__vector_size__ (sizeof(signed char) * 16))); v16signed_char and_imm(v16signed_char a) { v16signed_char s = a...

View Article


Is it possible to compile c program on Mac which is compilable on Windows?

I wrote a c program on windows. It can compile properly on this OS. It uses windows.h library. Can I compile it by GCC compilers on Mac? Or I must to change the code? I heard c is portable; therefore...

View Article

How to tell the compiler/pre-processor to generate a unique ID for each...

In the following sample code:#include <stdio.h> #include "my_macros.h" int main() { int one = 1, two = 2; MY_MACRO_NO_ARGS("This message takes no arguments"); MY_MACRO_1INT("This message takes...

View Article

ProcessBuilder doesn't recognize gcc command

I'm trying to run gcc via ProcessBuilder, but it says: 'gcc' is not recognized as an internal or external command, operable program or batch file.But running gcc via cmd works.Here is code:public...

View Article


Why do I get this error when I am trying to compile C program? [closed]

I just installed the gcc and I am trying to compile first C program with gcc in the windows cmd like this:gcc first.cbut I am getting this...

View Article

What is the difference between 'asm', '__asm' and '__asm__'?

As far as I can tell, the only difference between __asm { ... }; and __asm__("..."); is that the first uses mov eax, var and the second uses movl %0, %%eax with :"=r" (var) at the end. What other...

View Article

C Compile Error: sys/types.h: No such file or directory

I'm trying to compile a program on Mac OSX Catalina, and I'm running into the following error:[USER:~/Seisan/PRO]$make all cd ../LIB; /Library/Developer/CommandLineTools/usr/bin/make all; cd ../PRO...

View Article


Why readelf add "@GLIBC_2.2.5 (2)" after FUNC symbols' names in .dynsym...

I'm learning ELF file and using a C HelloWorld program built by GCC on x86_64 CentOS 7 as an example to investigate the executable.I can understand how the name of a symbol is found for every symbol in...

View Article


Mac OS X R error "ld: warning: directory not found for option"

I am trying to install an R package from source, but getting an error:* installing *source* package ‘mclust’ ... ** package ‘mclust’ successfully unpacked and MD5 sums checked ** libs gfortran-4.8...

View Article

How can I avoid redefinition of types while including multiple header files?

I'm working on recompiling a C project and I'm not sure how do I fix this problem in a right way. Here is a situation - a.h#ifndef A_H #define A_H typedef int INT; // other variables and function...

View Article

mm_malloc.h(34): error: allowing all exceptions is incompatible with previous...

According to the repo maintainers, this is due to GCC version.[ 92%] Building NVCC (Device) object paddle/fluid/framework/CMakeFiles/tensor.dir/tensor_generated_tensor_util.cu.o...

View Article

ThreadSanitizer threads just freeze forever

I try to profile a program with aarch64 gcc thread sanitizer. The program produces some tsan output messages, then certain threads (those with the findings?) just seem to stop. The process doesn't...

View Article


How to generate core dump when use Address Sanitizer and gcc7.1.0

I compiled my code with -fsanitize=address on centOS 7.2.1511. When I updated gcc to 7.1.0, it can't generate core dump file anymore. Can anybody help me?gcc compile options:-lm -g3 -Wall...

View Article

How to generate core dump on AddressSanitizer error

I compiled my code like this to enable Asan:g++ -O0 -g -fsanitize=address -fno-omit-frame-pointer but it never generates a core dump so that I can later examine the details of the error. How can I...

View Article


How do I convert an unsigned long into single precision floating-point in x86...

cvtsi2ss works for integers up to 2^63 - 1 but I need 2^64-1. There seems to be vcvtusi2ss xmm1, xmm2, r/m64 but it always returns an Illegal instruction. If this is the function I am looking for, how...

View Article

Locally built GCC cross-compiler reports MB_LEN_MAX wrong with...

I am currently building a cross-compiler targeting the PowerPC architecture. It is capable of building Linux binaries that work and can execute on the target, however I hit a problem when I enable the...

View Article


Unable to compile R packages in C for Mac

I am requesting some help with my C compiler. I can't compile R packages from GitHub like dplyr. I can download the package and install it but when I go to load the package with library I get an error...

View Article

Embedding any file into gcc compiled program and accessing it inside program

I am making a program that I want to read in a file and store the contents of the file into the actual program. Then the program once ran, will be able to make a new file with the one that was embedded...

View Article

error while building glibc: cannot compute suffix of object files: cannot...

Recently I tried building my own cross compiler inside a docker container. Building the kernel headers, binutils and gcc worked without any issue.Just by building glibc I came across following...

View Article
Browsing all 22037 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>