Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [compiler]

The tag has no usage guidance.

0
votes
1answer
55 views

How to cross compile older version of GCC under Debian?

I'm trying to build an older version of GCC toolchain for ARM under x86 because there is a bug with GCC > v5 for Cortex-M0. I'm following the combination of the following instructions: https://...
0
votes
1answer
39 views

What are the criteria for including a language in gcc? [closed]

According to man gcc, gcc supports the following languages, which you can choose from with the -x flag: c c-header cpp-output c++ c++-header c++-cpp-output objective-c objective-c-header ...
0
votes
0answers
79 views

Include directory not found after installing xtensa compiler

I followed these steps to install ESP8266 SDK and Xtensa toolchain separatedly (make STANDALONE=n) on fresh Lubuntu LTS distro. The installation was successfull, I added $HOME/esp-open-sdk/xtensa-...
0
votes
2answers
110 views

Actual compilation differences between CPUs

For a project I intend to compile various *NIX OSs and their relative packages with different CPUs in order to maximize optimization and performance for specific systems. In order to save time and ...
0
votes
1answer
281 views

Pyenv cannot be installed in Manjaro Linux

Hello I have been trying to install pyenv on Manjaro Linux and got an error that openssl is not installed on the system.  I have now installed it. I understand that I am supposed to tell the compiler ...
0
votes
1answer
45 views

Where to find the resulting .so file of a compilation?

I just compiled xdebug as instructed on the official site. But where can I find the resulting .so file? I found one in the folder ./libs/xdebug.so and one in modules/xdebug.so. Questions Which one ...
1
vote
0answers
158 views

How do I install newer or older versions of GCC on Devuan/Debian?

Some distributions come with package sets for different versions of GCC, which you can easily install in parallel; others do not. Specifically, in Devuan ASCII / Debian Stretch, there only seem to be ...
1
vote
1answer
752 views

Red Hat 6.9 Desktop yum groupinstall Developer Tools not found? [closed]

I searched everywhere on the web for a few days, and I am still stuck... I am running Red Hat Enterprise Linux Desktop 6.9 in a virtual machine. I am using an older version because I am experimenting ...
0
votes
1answer
249 views

How to install xlc++ on AIX?

How to install the compiler xlc++ on a AIX 4.3.3. server? Where can I get the sources and instructions to installation?
2
votes
1answer
293 views

Why is LDBL_MAX 1.18973E+4932 and how is this possible?

If I write a C program to say the value of LDBL_MAX the largest value for a long double, #include <float.h> #include <stdio.h> int main(void) { const long double max = LDBL_MAX; ...
4
votes
1answer
6k views

How can I get a binary from a .py file

I need a program to compile python source code; as I found out at first I need to make a binary file from my python script. I've already checked a lot of links, but still I haven't found something ...
1
vote
0answers
226 views

Changing system wide GCC compilation options such as -DFORTIFY_SOURCE, PIE and stack_protector

This is my first StackExchange question ever, and if it is in the wrong place (UNIX and Linux vs. somewhere like Software Engineering?) please point me right! A very long time ago, I built a system ...
0
votes
1answer
1k views

Argument list too long: /bin/sh on Linux redhat

I am having a script named as test.sh, which I use to run as below, which works fine:- /root/test.sh Then i tried to compile this script using the shc compiler as below with Warning:- shc -v -r -T -...
1
vote
0answers
226 views

Linux type cast output difference [closed]

I'm using 'gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)'. Below is my question. I don't know why #1, #2 result is different. unsigned int A, B, C, D, E; double result; 1. A=28; B=10; D=5; C = ((...
3
votes
1answer
381 views

Does POSIX mention cc or only c99?

I know that the most recent versions of POSIX specify that a C99-compliant compiler should (optionally) be present and called c99. Similarly, older versions of POSIX used to specify an optional c89 ...
1
vote
0answers
477 views

How to install Fortran compiler on Ubuntu system without internet access?

I am working on a command-line Ubuntu system that is on a Parallella (a SOC with a RISC-based muti-core co-processor). I need a Fortran compiler to run some HPC benchmarks but my search is proving ...
2
votes
1answer
8k views

gcc - error: no acceptable C compiler found in $PATH

I am trying to install GCC from source. I am following the instructions on the wiki at https://gcc.gnu.org/wiki/InstallingGCC and also on this question on SO. I am running into issues on the ...
2
votes
2answers
687 views

How to get a list of all installed programming languages on arch linux / any linux? [closed]

Is there a way to check what programming languages are installed on a given Linux system? For example, I have recently installed Arch Linux on my host and just for informational purposes I would like ...
0
votes
0answers
67 views

Cannot build source from FreeBSD live CD

I screwed up my FreeBSD system, so I'm going to fix it from a FreeBSD live CD. First, I boot into the live CD, mount the partition where the broken system resides in with mount -t ufs /dev/ada0p5 /...
2
votes
2answers
396 views

How to compile Solaris executable under Debian?

I have a SSH account at my university's computer in which I can only compile with gcc 4.4.7, which doesn't compatible with my C++ 11 code (I don't have the rights to install/update software). In my ...
-2
votes
1answer
609 views

C compiler while installing GCC!

I have a virtual machine running RHEL7. I am trying to install GCC from source following https://gcc.gnu.org/wiki/InstallingGCC I am unable to do yum groupinstall "Development Tools" or yum ...
0
votes
1answer
2k views

how to change the default CC command on mac os?

export PATH=./ndk_tools/bin/:${PATH} export CC=arm-linux-androideabi-gcc export CXX=arm-linux-androideabi-g++ echo \ "$CC" CC --version I use the script to change the default CC command, but it doesn'...
1
vote
1answer
737 views

Problems compiling VASP

I'm trying to compile VASP 5.4 on Ubuntu 14.04 and running into issues. I believe I'm most the way there but when I run the make command it seems to bottle out with out a specific error. I am unable ...
0
votes
0answers
72 views

Compiling: Scons can't find libav

The compiler errors I keep getting are: error: ‘CODEC_ID_HUFFYUV’ undeclared (first use in this function) if (!codec) codec = avcodec_find_encoder(CODEC_ID_HUFFYUV); ...
0
votes
1answer
338 views

./configure returns Fortran compiler error?

Attempting to run a configure file for the fv-fileviewer gives me this error: configure: error: Could not find a Fortran compiler in >/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/...
3
votes
1answer
245 views

C# compiler/IDE for Redhat Enterprise Linux 7?

Can someone point me to C# compiler/IDE for Redhat Enterprise Linux 7 ?
2
votes
1answer
1k views

Compiler for 32-bit LSB MIPS MIPS32 architecture

I have a TV set top box that i'm currently experimenting on: I established a serial console connection to it through a serial port located on the board. I am trying to compile a simple C executable ...
3
votes
0answers
4k 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 ...
1
vote
1answer
33 views

Execute a script compiled on a different PC

If I have a compiled expect script, can I run it on a PC with no expect installed?
0
votes
0answers
155 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
53 views

What is the background of the program segmentation?

Each program is separated into several segments like: code segment data segment stack segment heap segment But who was responsible for that progression? The compiler and linker has to support that ...
4
votes
1answer
2k views

Can I write C programs for Linux on OS X?

In case I'm writing a program (of any kind) in C, that is meant to be run on Linux environment, can I write it under OS X? (concurrency wise for example) I'm asking this because I like programming in ...
3
votes
1answer
1k views

How to install a C compiler on Linux?

I need to install a compiler in Linux. First of all, some system information: -bash-3.2$ uname -a Linux axentraserver.xxxxxxxx.xxxxxxxxxxxxx.com 2.6.31.8 #97 Thu Sep 12 10:38:00 EDT 2013 armv5tel ...
0
votes
1answer
860 views

How do i write a shell script so that when i compile my c++ program it will put the binary into the Binary Directory

I have a directory called Binary and bunch of source files: ./ ├── Binary/ ├── lesson02.cpp ├── lesson04.cpp └── lesson06.cpp when I compile the source code g++ lesson01.cpp -o lesson01 I want ...
0
votes
1answer
444 views

GCC “__gmpn_invert_limb” compilation error

I'm currently trying to compile GCC 4.9.2 using GCC 4.2. The problem I have run into is that I have a working GMP installation (6.0.0a) but GCC fails to link to it after a while. The error I get is: ...
0
votes
1answer
1k views

C compiler cannot create executables whilst creating backport in Debian

I am trying to create a gcc-defaults-1.133 backport for my Debian Wheezy installation from Sid/Jessie. As this requires dpkg-dev greater than version 1.17.11 I assume I need a backport of this too. ...
0
votes
1answer
162 views

-fPIC Flag System-wide?

Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. and the jumps are relative. So is it OK to declare -fPIC ...
6
votes
1answer
2k views

Replace FreeBSD base clang with ports clang

FreeBSD 10 was the first release that officially released with Clang as the default, base compiler. Most ports, unless specially marked, now compile using the base ("pre-installed") clang. However,...
5
votes
1answer
2k views

Build Transmission 2.84 .deb package with checkinstall

I'm trying to compile and make by myself some .deb packages to keep my Raspbian more up to date than the repository. Now I want to update Transmission to v 2.84. Here's what I've done: Download the ...
3
votes
0answers
1k views

Has anyone got the Android NDK toolchains to run on ARM instead of x86 or x86_64?

I have been going over the "dev scripts" in the $NDK/build/tools directory of the Android NDK and have been modifying them to build host/build tool-chains that run on ARM instead of x86 or x86_64. For ...
11
votes
3answers
5k views

How does make continue compilation?

I know that I can interrupt a make process anytime without having to recompile the entire source tree again. As I know, make only compiles a target if it's not compiled yet, or the source code is ...
1
vote
1answer
1k views

Clang with Code::Blocks on Debian Wheezy [Stable]

In my pretty default Debian install: devsys@zotac:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.4 (wheezy) Release: 7.4 Codename: ...
2
votes
1answer
841 views

How to add new gcc compiler to my Linux mint OS

I want to add new gcc cross compiler to my Linux mint. I need this compiler to compile codes that should run on a Khepera III Robot. I have searched a round but I didn't find any clear answer to my ...
0
votes
1answer
3k views

How to install C++ compiler for Eclipse

Im unable to run my C++ codes because Eclipse has not c++ compiler installed in it . How can I install C++ compiler for eclipse on Fedora 20 or other linux os's? When I execute my codes it says: ...
0
votes
1answer
2k views

How to set g++ 4.8 to be the default after installing? [closed]

After executing the following on Ubuntu 12.10 how do I set 4.8 to be the default C++ compiler? sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 ...
64
votes
4answers
4k views

How to compile the C compiler from scratch, then compile Unix/Linux from scratch

Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively. Reading through this article it mentions that it would be easy to insert a backdoor ...
2
votes
1answer
80 views

How can I get a regular gcc etc. under HomeBrew under Mac OSX Mountain Lion?

I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc. How can I get a real gcc installed so that e.g. make will see the standard gcc ...
0
votes
1answer
612 views

Can we run objective c on UNIX operating system? [duplicate]

How can I run objective c on Unix systems?
0
votes
2answers
572 views

how to code c++ via ssh with Vim or Vi? [closed]

Would I have to rent and configure a server or something? I'm sort of new to unix, but when I was in school I had this nifty setup where I could ssh from any terminal in linux or mac or putty in ...
1
vote
2answers
3k views

Unable to compile simple Less file using node-less

I'm trying to compile a very simple less file which simply includes Bootstrap: /* application.less: The most awesomely complicated file in the whole world. */ @import "bootstrap/bootstrap.less"; I'm ...