Questions tagged [compiler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Can you compile kernel from fast VM for different hardware device and package as .deb or .rpm?

I have a VM that has a lot of hardware resources allocated to it. It can run make make install make modules_install within an hour. If I copy the source kernel and correct config file over from a ...
2
votes
0answers
43 views

Porting X86 for ARM Target Platform

Onlyoffice Document Server is supported and compiled for Intel platforms. Compile instructions and system requirements. This posting indicates that it is possible to compile for ARM platforms: I ...
0
votes
0answers
11 views

Kali Linux persistent USB stick

Is it possible to use veracrypt to encrypt the persistence partition instead of luks. I know it would involve a lot of decompiling and recompiling but it sounds like a fun project just don't know ...
23
votes
2answers
5k views

How do I compile something for Linux if I don't have enough space for installing GCC?

I purchased a Human Machine Interface (Exor Esmart04). Running on Linux 3.10.12, however this Linux is stripped down and does not have a C compiler. Another problem is the disk space: I've tried to ...
1
vote
0answers
25 views

Recover static library from executable

I have an existing executable for which a small amount of source code has been lost. In particular, the executable uses a few functions from a static library, and the source code for that library is ...
0
votes
1answer
18 views

Compiling the output from the Perl Compiler (B::C), I get “EXTERN.h: No such file or directory”

If I try to compile something generated by B::C, $ perl -MO=C,-omyTest.c -e'print "Hello World!";' -e syntax OK And then run `gcc myTest $ gcc ./myTest.c ./myTest.c:3:10: fatal error: EXTERN.h: No ...
1
vote
0answers
433 views

CMake Error: The source directory does not appear to contain CMakeLists.txt

I have found similar discussions from google but didn't work for me. I want to use a bioinformatics package called pompd. At the first use, the program will automatically compile another application ...
1
vote
2answers
143 views

Want to turn off “note” level messages in GCC

When I compile a C (no pluses) program using GCC, there are several levels of messages possible, like warning, error, and note. The note messages are useless and distracting. How do I make them go ...
2
votes
2answers
1k views

How do I compile the Linux kernel with Clang? [closed]

Just out of curiosity, I am interested in compiling the Linux kernel with both the clang and zapcc compilers; one at a time. I can't find a guide to follow. Only GCC is getting used to compile the ...
-1
votes
2answers
32 views

Where is the documentation for my compiler located?

Background On page 5 of C++ Primer 5th edition, Exercise 1.1 asks this question: Review the documentation for you compiler and determine what file naming convention is uses. Compile and run the ...
1
vote
1answer
91 views

Current status of PCC (Portable C Compiler)?

PCC's current website (the development was taken over from the '70ies code from Stephen C. Johnson by Anders Magnusson, and mostly rewritten). It shows no activity in it's CVS repository ("cvs -d :...
1
vote
0answers
28 views

passing arguments to c++.bin

I am having the following issue when making HSAIL: [ 3%] Built target libhsail-includes [ 6%] Building CXX object libHSAIL/CMakeFiles/hsail.dir/HSAILScannerRules.cpp.o In file included from /home/...
3
votes
1answer
119 views

Are stack canaries shared via threads?

As far as I understand, stack canaries work as fllows: Upon program startup a random value is generated and stored in the thread local storage (%fs:0x28). This random value is then pushed onto the ...
6
votes
1answer
159 views

How to understand this TMG's assembly code from the Version 6 Unix?

Early versions of Unix included Doug McIlroy's tool tmg ("transmogrifier"), an early compiler-compiler. TMG was implemented in Dennis Ritchie's assembly language as well as in TMGL itself (the ...
2
votes
1answer
204 views

Linux From Scratch: Error while compiling binutils 2.32

I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/...
0
votes
0answers
24 views

How does my application in Linux know how to find libraries in the common places [duplicate]

When I compile a simple C program for Linux, how does it automatically know where to find the standard C libraries when I run it? Take the simple Hello World program for example which uses printf to ...
0
votes
1answer
386 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
43 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
2answers
261 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
450 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
52 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
209 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
1k 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
387 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
574 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; ...
3
votes
2answers
15k 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
305 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 -...
4
votes
1answer
550 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
610 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
2answers
11k 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
939 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
80 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
525 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 ...
-1
votes
1answer
858 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
850 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
79 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
953 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/...
2
votes
1answer
285 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
2k 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
38 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
174 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
54 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 ...
5
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
2k 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
984 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
490 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. ...