Questions regarding GNU Compiler Collection Suite.
0
votes
1answer
19 views
install arm gcc on Wheezy [duplicate]
I'm trying to build an application for Debian 8 on ARM arch on a virtualmachine running Debian 7 using cross-compiler. But when I try to run
sudo apt-get install gcc-arm-linux-gnueabihf
I get an ...
3
votes
2answers
63 views
installing virtualbox apt-get wants to download gcc-4.8 --> replacing gcc-4.9?
I'm trying to install virtuabox on Debian 8.3 using the contrib repos.
When I use apt-get install virtualbox it wants to install gcc-4.8, but I already have gcc version 4.9.2 installed.
What am I ...
0
votes
1answer
37 views
Location of executable file formed after compiling a C program
I have compiled my C source code using:
gcc filename.c
It got compiled, but I cannot see the executable in the same directory where my source code is. But when I compile my program using:
gcc ...
0
votes
1answer
21 views
how can the gcc 6 option “-Wmisleading-indentation” work reliable?
Reading the GCC 6 Release Series Changes, New Features, and Fixes I find very interesting the new option -Wmisleading-indentation:
-Wmisleading-indentation warns about places where the indentation of ...
0
votes
1answer
22 views
Gentoo failed to emerge GParted 0.25.0
My system is Gentoo 64 bit
GCC version is gcc (Gentoo 5.3.0 p1.0, pie-0.6.5) 5.3.0.
I got this error while emerging sys-block/gparted-0.25.0
...
0
votes
1answer
37 views
How to install a custom GMP lib for just one user?
I'm doing some heavy number crunching on one system and I'd like to compile (and finetune) a custom GMP 6.1.0 for the user launching the number crunching computation. Previously I had a Debian wheezy ...
0
votes
0answers
9 views
gcc profiling - gmon.out contains partial data
Out app is built using libtool (2.4.2), that in turn is using both g++ and gcc (4.8.4). OS is Ubuntu 14.04. All source files are compiled using -pg and the link command includes the -pg flag as well. ...
1
vote
0answers
52 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
1answer
73 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
34 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
54 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
64 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
15 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
49 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
27 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
30 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
41 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
191 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
61 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
28 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
36 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
36 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
34 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
44 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
66 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
68 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 ...
1
vote
2answers
87 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
31 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
174 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
54 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
24 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
42 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
96 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
49 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
124 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
153 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
73 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
48 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
218 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
80 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
28 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
59 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
214 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
66 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
862 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
46 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 ...