Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
0answers
51 views

Some commands are no longer responding?

I have a Debian based distribution & lately a problem has been encountered when trying to execute the gcc or man command's (And probably other commands I haven't found yet). When I type them in ...
1
vote
0answers
38 views

Linux kernel, missing '__fentry__' symbol

Trying to build the EtherCAT master driver (realtime I/O driver) on a RT Linux (SL6.3) I keep bumping into a missing symbol issue when building the EtherCAT kernel modules: # make modules make -C ...
1
vote
2answers
30 views

stuff in quotes are hidden in the compilation error message for gcc?

this happens with both g++ and gcc as whenever I tried gcc file_name and the above happens.
0
votes
2answers
46 views

bash command to print gcc environment variables

Is there a way to print all the GCC environment variables(path for include directory, library) from the command line, i.e something similar to 'printenv' that gives all bash environment variables ?
0
votes
3answers
56 views

How to install GCC 4.7.2 on CentOS 5.2?

I'm trying to install GCC 4.7.2 on a CentOS (virtual) machine. In order to do this, I downloaded GCC 4.7.2, and tried to configure and to make it. Unfortunately the configuring didn't work, as other ...
1
vote
1answer
13 views

Adding gdbm on Debian (Beagle Bone Black)

So right now I'm going through my An Introduction to GCC book and I'm up to chapter 3 with gdbm. Now it wasn't there in the first place, and I've tried some "gdbm" "gdbm-devel" to get C gdbm on ...
4
votes
1answer
46 views

Finding out binary's compiling computer name

We have recently in our workplace stumbled upon a really old binary file that originates from unknown old computer. However in order to run this binary we need to get some local resources and ...
0
votes
2answers
22 views

Printing out standard C/GCC predefined macros in terminal

I am wondering if there is a way to simply output to the terminal the value of some global/standard definitions of C/GCC, e.g. using the echo command, without writing C code and using printf? I mean ...
1
vote
0answers
31 views

Build errors on a copied operating system in a chroot

I'm in a bit of an interesting situation. In an attempt to have root access on my school's physics network computers, I ended up creating a chroot environment, using fakeroot and fakechroot. As every ...
3
votes
1answer
26 views

Where do I find prebuilt binutils and compilers for obsolete operating systems?

I just obtained a Sun SPARCstation 20 and installed SunOS 4.1.4 on it. I'd like to build some software on it with something a little more modern than its stock pre-ANSI C compiler, and without the ...
0
votes
0answers
26 views

Prune yum of stale installed packages/duplicate gcc packages after manual install

I'm in a weird situation, and maybe I've messed something up and just need to hit the reset button and re-install CentOS. Off a fresh install of CentOS7.1 the other day, I noticed the latest version ...
1
vote
0answers
128 views

Need Help Cross Compiling Openssl for MIPS

I've been trying to cross compile Ncat for the MIPS architecture (big endian), and I really need SSL support, so I first must compile OpenSSL. I downloaded the latest version from Github and ...
3
votes
1answer
53 views

Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore

I cleaned up my system 3 weeks ago and made a fatal mistake. Well, I don't really know why, but I uninstalled sys-devel/binutils. After I recognized the mistake I tried re-emerge, but it doesn't ...
4
votes
1answer
24 views

Does Gentoo Hardened use -fstack-protector-strong?

I'm trying to build a fairly hardened Gentoo install and I'd like to at least make sure that everything is built with -fstack-protector-strong if not -fstack-protector-all. I'm on the ...
1
vote
0answers
30 views

Remove package with yum but leave libraries in place?

During setup on a specific set of servers, I need gcc-c++ installed to compile some of the software I am setting up. After install is complete I need to remove the compiler for security reasons. ...
0
votes
0answers
34 views

Missing library in ia32-libs when compiling with gcc-3.4.6 in 32 bit mode

I installed gcc-3.4 on Ubuntu 14.04 and tried to run a program with the -m32 flag. #gcc --v gcc version 3.4.6 (Debian 3.4.6-5) When trying to run the program I receive the following error ...
2
votes
1answer
31 views

Why install gcc again in chapter 6 linux from scratch

I am trying to follow the LFS book, and couldn't get my mind around this question: we built the GCC compiler in chapter 5 in the target partition, why do we do that again after entering the chroot ...
0
votes
0answers
32 views

Custom GCC installation - how should I set my environment variables?

After some pains I was finally able to build me a gcc 4.9.3 (I don't have root on the machine I'm working on, and Fedora 22 doesn't package gcc 4.9 anyway). And it even works, i.e. using it to compile ...
0
votes
0answers
49 views

profiling cannot open gcda file

I am compiling file UT_test.c and linking my file using gcc on cygwin environment using flags -fprofile-arcs -ftest-coverage. The objects and gcno are created at location ...
2
votes
1answer
67 views

No dpkg or apt, no make or gcc. Need to install them all [closed]

I have a minimal Debian Linux based machine (i686) and need to get some .deb installed. This does not even have make or gcc installed. So I am unable to compile anything on this. So to get it ...
0
votes
2answers
69 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 ...
0
votes
1answer
29 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
113 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
40 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
39 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
22 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
40 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
72 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
48 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
37 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 ...
0
votes
1answer
81 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 ...
1
vote
1answer
112 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
69 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
44 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 ...
2
votes
1answer
167 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
64 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
26 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
50 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
153 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
49 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
582 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
43 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 ...
1
vote
0answers
140 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
106 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
30 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
19 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
38 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
26 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
128 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, ...