Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
2answers
168 views

Cross-Compiling kernel can't find gcc

I am cross compiling the Raspbian kernel since it will take about 12 hours for the Pi to do (Raspberry Pi 1). I have the build tools for ARM and the kernel in two separate folders in ...
1
vote
1answer
45 views

Binary executable from Debian to Ubuntu?

I compiled some big c++ programs with gcc 4.9 on Debian. I want to know if the executable binary code is compatible and safe also on ubuntu, or must recompile program on Ubuntu?
2
votes
0answers
379 views

Installing GCC on SLES 12

I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error: sudo su - -c "R -e ...
0
votes
2answers
43 views

How to create and use dynamic and static libraries in linux (c programming)?

I'm a beginner and I'm so confused of how I can create and use dynamic and static libraries? I studied different websites and searched on Google but I can't understand. Can anyone explain here in an ...
0
votes
0answers
110 views

GCC: library linked several times can cause “multiple definition” errors?

I have a toolchain generated through Buildroot with which I am trying to compile something statically but the build fails with gcc saying something about "multiple definition". Now looking at the ...
0
votes
0answers
34 views

How to use edk2 with gcc 5.1.1

I need to use all of edk2 (on fedora23), so I tried to build gcc 4.4.7 but the instructions didn't work. Is it possible to use gcc 5.1.1? If so, what do I set the TOOL_CHAIN_TAG as in conf/target.txt? ...
1
vote
1answer
53 views

Recompile gcc with the built version

I am just wondering if it is a good idea [better optimization, less bugs] to recompile the gcc compiler with the own version. I compiled gcc 4.9.3 with the current system gcc 4.3.4. Once gcc 4.9.3 ...
1
vote
1answer
170 views

Why is my stdbool.h not in /usr/include?

I'm used to standard C header files being in /usr/include (e.g. stdio.h, stdlib.h, string.h, ctype.h and so on); yet - stdbool.h isn't. Now, I know it's newer than the rest, only being part of C99. ...
1
vote
1answer
56 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
77 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
291 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
240 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
107 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
68 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
306 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
147 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
31 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
88 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
331 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
93 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
2k 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
62 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
53 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
241 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
197 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
41 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
24 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
50 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
30 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
191 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
94 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
216 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
163 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
106 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
68 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
99 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
46 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
140 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
42 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
47 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
111 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
72 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
266 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
89 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
170 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
546 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
544 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
279 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 ...