Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
1answer
52 views

Building a custom development environment

I'm building a system, mostly for educational purposes, not just for the building process itself, but also for development/debugging. This is what I would like to achieve. Install a toolchain ...
0
votes
1answer
67 views

Installing latest version of gcc on HPC cluster locally

I am working on an HPC cluster that has the CentOS installed. My project requires the installation of the g++ >= 4.8.1 on the server. However, the gcc (g++) installed on the cluster is 4.4. And whats ...
2
votes
1answer
231 views

Upgrading GCC on Debian Wheezy to support C++ 11 features

We are currently working with Kontron servers on which we've installed Debian 7.x systems. I began to develop applications using C++ 11 features. But it's not officially supported by the version of ...
2
votes
1answer
199 views

Cross compiling ARM static lib with GCC for Mac iOS xCode projects

I'm cross compiling ARM targeted toy example static lib for the usage in Mac iOS xCode projects. In the lib there are only 2 files atoy.c and atoy.h with simple function taking 2 int arguments and ...
1
vote
1answer
89 views

Using gcc compile flags

I am trying to understand how to properly setup gcc to find stuff in my environmental variables. Currently I compiled some code, SDL and I added it to my .bashrc and sourced that .bashrc as well. ...
0
votes
1answer
59 views

Basic GUI application Cygwin

How do I extend the following program to display basic GUI element Button in Cygwin on Windows? #include <stdio.h> int main(int argc, char **argv) { printf("Hello, World!\n"); } And to ...
1
vote
1answer
264 views

Unable to use VMWare Workstation 12

I found myself unable to use the VMWare Workstation 12 trial on Debian Stretch as well as on Ubuntu 15.10. It installs just fine, but when I attempt to start it, it simply does nothing, no error or ...
2
votes
1answer
119 views

“alternatives” for shared libraries? Does that even work?

I'm trying to link against a shared library that has several different implementations - specifically blas, openblas and atlas all provide the same binary interface through the /usr/lib/libblas.so ...
0
votes
0answers
29 views

build application with another toolchain rather than the original one

The original tool chain of my computer is x86_64-redhat-linux, but I need to build application that can be used in another different file system. (It means I release the application to other people ...
0
votes
1answer
75 views

Building binary with static objects included

Is it possible to build a binary with dependent .so files included so that the binary can be built once and used on machines with the same hardware and OS, without them having the .so files? For ...
0
votes
1answer
280 views

I'm trying to compile alsa-driver-RTv5.18 but get date-time error for gcc 4.9.2

/home/user/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.c:1065:22: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] "Compiled on " __DATE__ " for ...
0
votes
0answers
83 views

Yocto; install python ctypes. “No acceptable c compiler found in $path”

I am trying to install the python module 'ctypes' on a new mediabox (Ezeecube), but it seems there is no c compiler. The system runs on a custom Yocto build, created by the Ezeecube team. It has the ...
1
vote
1answer
1k views

C compiler cannot create executables exit 77

I am using a RedHat linux environment where I do not have root permissions (I am on a paid server account). Every time I try to run "./configure" on a new package that I am trying to set up and ...
0
votes
2answers
61 views

does anybody know of a GNU/Linux project which has support for both gcc as well as clang?

Does anybody know of a project (apart from the Linux monolithic kernel) where a/the program can be compiled by both the compilers and can be used to observe their performances, any recommendations ? ...
0
votes
0answers
48 views

Configure script failed to find C compiler, despite gcc being installed on Sabayon

I have been trying to compile Moksha from source code on a Sabayon SpinBase Virtual Machine, but whenever I run a configure or autogen.sh script I get an error: checking for gcc... gcc checking ...
2
votes
0answers
220 views

Errors cross-compiling with distcc

I'm currently attempting a build of the Raspbian kernel using both a cross-compiler (for the Raspberry Pi 2's ARM processor) and distcc, based on the instructions posted at the Raspberry Pi website. I ...
2
votes
1answer
174 views

Error compiling kernel using guide provided on Raspberry Pi website

I'm encountering errors while trying to compile the kernel from source. I've looked around but I'm not finding anything that deals with the error I'm seeing specifically. I am using the guide on the ...
0
votes
2answers
39 views

Searching __builtin_popcount in man

Wanted to search for the man pages of the __builtin_popcount function. I typed in $ man __builtin and hit TAB, which turned it into $man ./__builtin/. Why did this happen ? Then, I typed in ...
0
votes
0answers
20 views

Building man-db on android L

After finding that the version of man in Busybox Stericson doesn't print man pages at all on my Nexus 4, I decided to build man-db for android myself. So far, I've done: cd man-db-2.6.7.1 export ...
0
votes
0answers
46 views

How to pass to gcc “-lregex”?

I want to compile a program,bacula under hpux but give me an error about "unsatisfied symbol" i think probably passing the correct lib "-lregex" will solve the problem. But i don't know how to pass to ...
0
votes
0answers
28 views

gcc on debian - Matlab interferes with ffmpeg?

This is a quite confusing problem. I wanted to use youtube-dl and it stops with the following error message from ffprobe (ffmpeg): ffprobe: ...
1
vote
1answer
168 views

CLFS for ARMv7 neon

I am following CLFS book (GIT-20140613-arm version), and I have a issue when building GCC with armv7 and neon combination. Target info here. My host is a clean Debian 8 with gawk, build-essential, ...
3
votes
1answer
91 views

Is there a general way of building 32bit projects on 64bit system?

I have a project that is supposed to run on all following platforms: Win x86 Win x64 Linux (Debian) x86 Linux (Debian) x64 I'm finish with windows and Linux x64 compiled although I'm not sure it ...
2
votes
1answer
174 views

Find out glibc compilation options

I want to find out which compiler/linker options were used to compile the GNU C Standard Library (glibc) when installing Linux. In particular I want to get the same result of the archive libc.a when ...
1
vote
0answers
159 views

Error building and compiling GCC 5.2.0 from scratch on Vortex86DX

In order to upgrade a VortexDX86 custom linux with a gcc 3.2.3 compiler, I´m trying to built the GCC 5.2.0 compiler to support the latest C++ 11 standard. I have downloaded its source code from ...
0
votes
1answer
95 views

How to compile kernel module without a makefile?

Is it possible to compile a kernel module without a makefile and if so, how?
2
votes
0answers
66 views

What is the effect of ACLs/umask on the permissions of the executable file generated by gcc?

I have been wondering how gcc determines the resulting file permissions of the executable file being generated. To gain some insight, I considered a minimalistic program test.c #include ...
1
vote
0answers
94 views

How do I change the version of GCC that I'm using? Why does GCC still seem to work despite bash telling me the gcc command was not found?

I was trying to follow this tutorial for an introduction to bare metal programming in C on a raspberry pi. One of the first things it recommends is to install the gcc 4.7 toolchain instead of what I ...
2
votes
1answer
2k views

Gcc : ld cannot find -lc

I'm trying to compile a simple program with gcc main.c and gcc throws me the following error /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status How can I resolve this ...
0
votes
1answer
43 views

CentOS and a small boost example

I ask this question here, because I think, it has more to do with linux than with boost itself. So i created a small cpp file: #include <boost/math/special_functions/round.hpp> #include ...
0
votes
0answers
134 views

build memcached source on centos6.4 64bit fails

I'd like to build memcached from source on centos 6.4 x86_64 but only get following error. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu ...
2
votes
0answers
41 views

Does make sense using exotic bootstrap in GCC?

Has anyone any evidence that currently GCC is bootstrapped in non trivial ways to detect bugs for certain features and architectures? Or at least point to some documentation where I can find wich real ...
0
votes
0answers
41 views

Building gcc fails

I'm trying to build the gcc nightly but I'm having issues. (This happens each time I update the source, so it's not just a bleeding-edge bug.) I'm following the standard instructions, to wit: cd ...
0
votes
0answers
106 views

Trisquel 7.0 LTS Belenos 64 vs Ubuntu 15.04 64 or Mac OS X 10.10.5 : isl/gcc problem (libisl.so.13 incriminated)

I installed last 64bits trisquel distro recently, I build gcc 5.2.0 from source on it. I used exactly the same installation technique than the one I used (and that worked) on ubuntu 15.04 64bits, ...
3
votes
1answer
62 views

Function symbol gets '.part' suffix after compilation

When cross compiling the Linux kernel 3.18.10, the compiler adds a .part.<N> suffix at the end of some symbols (see an example below). The number <N> changes when using different ...
-1
votes
2answers
251 views

Squid cross compile

I've been trying to cross compile the Squid 3.5.7 on ARM Cortex A8 (Linux). I downloaded it from http://www.squid-cache.org/Versions/v3/3.5/ I have arm-linux-gnueabi-gcc and arm-linux-gnueabi-g++. ...
1
vote
1answer
84 views

Shared libraries for GCC installed via yum on Fedora 20

Unintentionally I erased my system gcc with a manually built one. To get things back, I did yum reinstall gcc and gcc --version attested that the initial version was back: $ which gcc /usr/bin/gcc $ ...
0
votes
1answer
134 views

musl-gcc not working

I have linux installed in armv6 android phone in chrooted environment. I have installed musl-libc from source for building static binary for android. Here are the commands, I ran for building & ...
1
vote
2answers
467 views

Arch: Compiling toplev.o fails in GCC install

I'm currently trying to install gcc41 using the AUR and I'm experiencing an issue. Everytime it goes through the compiling process the build fails because it cannot complete compilation of the toplev ...
0
votes
2answers
499 views

Compile mex files for spm12 in Matlab r2012a student version

in 2012 I bought a student version of Matlab (r2012a, 32bit) which I have now installed on my Ubuntu 14.04.2 LTS. This far, everything works. However, I would like to install SPM12 (a software used ...
0
votes
1answer
52 views

Recover system gcc on linux

I was trying to install manually gcc and forgot to specify --prefix=. So, after make install binaries were installed on standard paths (like /usr/bin/ or smth.) And now as I type gcc --version it ...
0
votes
1answer
258 views

i686-cm-linux-gcc: Command not found

While cross compiling OpenWRT, I have I have replaced OpenWRT's toolchain with toolchain i686 architecture. But, I am getting below mentioned error: make[5]: Leaving directory ...
0
votes
0answers
90 views

ffmpeg configuration error

I downloaded ffmpeg and followed the README. First thing, ffmpeg needs to be configured. But executing configure (./configure) says ~/Downloads/ffmpeg-2.7.2 $ ./configure gcc is unable to create an ...
0
votes
1answer
282 views

LFS 7.6 GCC make error

I do not have much experience with Linux systems, but I decided to work on an LFS system for a bit. I understand that this was a large undertaking for my limited knowledge, but I thought I was ...
1
vote
1answer
347 views

How to compile shared library on AIX

I have a simple shared library that is currently compiled on Linux using: gcc -c -fPIC foo.c -o foo.o gcc -shared -o foo.so foo.o I need to relay instructions to a colleague for compiling the same ...
6
votes
4answers
6k views

C compiler cannot create executables

I'm trying to install wine on Linux Mint 17.1. I ./configure'd as root to install it. Input: cd Downloads/wine-1.6.2 ./configure Output: checking build system type... x86_64-unknown-linux-gnu ...
1
vote
1answer
1k views

Undefined reference to math functions when linking with gcc

I'm getting an error when using make to install a program. The full step that it fails on with error looks like this: gcc -g -O2 -fopenmp -L/usr/lib -lcfitsio -lm -o lenstool_tab e_nfwg.o ...
1
vote
2answers
277 views

“GLIBC” can not be used when I have installed the gcc 5.1.0

When I have installed gcc 5.1.0, I found lots of my programs cannot be used, such as firefox, gnome: they will give me a message "GLIBC_2.1X not found". Now the version of GLIBC is higher than before, ...
0
votes
0answers
143 views

custom gcc install include files

I have a custom installation of g++ 4.8.1 in my home directory. However the include files in that installation have no extensions! (except for tgmath.h, fenv.h, complex.h, and cxxabi.h) Thus even if ...
1
vote
1answer
393 views

How to use afl-fuzz (American Fuzzy Lop) with openssl

I am trying to use afl-fuzz with openssl in Ubuntu. A normal usage of afl-fuzz would be: afl-gcc test.c //-- this will produce a.out mkdir testcases echo "Test case here." > testcases/case1 ...