Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

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

GCC Cannot create executables

I am having a problem with GCC, where if I run the ../gcc-11.1.0/configure file, it simply returns a error saying ERROR: GCC Cannot create executables, I tried installing packages but it simply does ...
1
vote
1answer
39 views

How to compile libstdc++ with specific compiler option?

I want to compile libstdc++ with the -fno-omit-frame-pointer option for profiling purposes, if possible. I was able to build libstdc++ by following https://gcc.gnu.org/install/index.html, but how can ...
0
votes
1answer
41 views

PAM unable to dlopen(sensepam.so): /lib/security/sensepam.so: undefined symbol: OPENSSL_init_crypto

I'm write a linux pam authentication module with c programming under ubuntu.My idea is when login input username and password that compare with web server saved username and password, if they are the ...
0
votes
0answers
39 views

How to make the Python3 interpreter faster or the fastest possible? [migrated]

As the title says, how to make the python3 interpreter which executes python programs; faster or even the fastest possible using the vanilla CPython versions available at www.python.org; in any linux ...
0
votes
1answer
20 views

Seeking advice on source of compilation errors in kernel header files

As part of my current project, I am trying to compile some proprietary device drivers (originally compiled successfully for Redhat6 kernel version 2.6.32-504.el6.x86_64 using the vendor supplied ...
1
vote
1answer
59 views

How to Build Latest HandBrake on linux with FDO (PGO) + LTO?

Passing CFLAGS and CXXFLAGS to a HandBrake build for the latest version (v1.3.3 at the time of this writing) will work until you add -flto which will FAIL the whole build. How to build HandBrake with ...
0
votes
1answer
48 views

Disagreement between glib and gcc after gcc downgrade

I updated my distro a week ago Linux *** 5.10.41-1-MANJARO x86_64 GNU/Linux recent gcc and gcc-lib version 11.1.0 But need to work with gcc 10.2.0 and its coworker gcc-libs 10.2.0 I downgraded ...
0
votes
1answer
45 views

Compilling eggdrop1.9.1 results in /usr/bin/ld: cannot find -lieee

When trying to compile eggdrop1.9.1 gcc gives the following output > gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H -I/usr/include/tcl8.6 -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog....
0
votes
1answer
67 views

GCC and AMD Ryzen

https://wiki.gentoo.org/wiki/Ryzen#GCC says, neither GCC 6.x nor GCC 7 is Ryzen optimized. But, when doing man gcc-7 I clearly see march=znver1 is available in GCC-7. Or is this just a dummy option ...
1
vote
1answer
86 views

g++ unrecognized option not part of the command

I'm trying to compile a project, I used make and got the following output g++ -g -Wall -std=c++11 -I include/ -o build/example.o -c example/example.cpp as: unrecognized option '--64' The error states ...
1
vote
0answers
26 views

Why pgrep hangs when clang AddressSanitizer library is preloaded using LD_PRELOAD?

I noticed that when I set LD_PRELOAD env. variable to libclang_rt.asan-x86_64.so pgrep hangs. Why is this happening and how to avoid this? senx:/$ time pgrep anything real 0m0,022s user 0m0,...
0
votes
1answer
59 views

error with my gcc and g++

I'm trying to run a setup file for detectron project which is made by facebook company, but I got some errors which show there may be something wrong with my gcc/g++, it seems that these errors come ...
0
votes
0answers
36 views

Gcc not found : cannot compile c program in a Buildroot image for STM32MP

I'm trying to compile a C program with gcc in a image that I have made with buildroot for STM32mp157a-dk1, but I get: $ gcc bl.c -o bl -sh: gcc: not found $
2
votes
1answer
28 views

When building/running a program, how do to tell the dynamic linker where to find the appropriate libraries? [closed]

I am trying to install and run the program Dsuite. To do so, I had to install a newer version of gcc locally (as I do not have root/super user privileges.) I did this with the following commands. cd /...
0
votes
1answer
27 views

Help building older version (<= 7.1p2) of OpenSSH Portable (< on Linux or any other Distro)

I am working on creating my own PoC of CVE 2016-1907 along with several other OpenSSH involved CVE's for Ethical Hacking / Bug Bounties. Currently, I have found through Nmap servers running ...
1
vote
1answer
56 views

LFS GCC-10.2.0 Pass 2 Fails with source-code error in crtstuff.c

When I'm trying to run Chapter 6.18 of the LFS (with systemd) book, make fails because in the file crtstuff.c, line 695, there is an undefined reference to __CTOR_END__. This seems like some sort of g+...
0
votes
0answers
15 views

“target not found ” when trying to install libreadline- devel

I am trying to install osintgram python program in manjaro linux but getting error in requirements.txt Firstly getting error in gcc exit status 1 and cannot install libreadline-dev using Pacman saying ...
1
vote
1answer
60 views

Install a second G++ on Debian using official packages only?

I need a newer G++ for a project, but all tutorials will tell you to download the sources, compile them and "simply" install them then use it. Which is something I don't want since it's not ...
0
votes
1answer
63 views

Unable to make file in Linux Ubuntu 20.04 LTS

I am trying to install a fluid simulation software (https://github.com/cwrowley/ibpm). I have installed all the dependencies and was ready to execute the make command. Here is the error that I am ...
0
votes
1answer
96 views

Can't compile any c/ c++ program, linker problem

It's my second post here, i have a huge problem which prevents me to study so i have to fix it as soon as it's possible ! My gcc was working fine and i had to work on FairThreads (in C). I downloaded ...
2
votes
0answers
56 views

Can Linux Kernel CONFIG_RETPOLINE be dropped on for Enhanced IBRS systems?

I'm working on a deployment of systems that exclusively use Cascade Lake processors, which support Enhanced IBRS for Spectre v2 mitigation. I see that in kernel source, if I set spectre_v2=auto on ...
0
votes
1answer
168 views

How I can install some gcc compilers in arch linux?

I need to install earlier gcc than now. I already have gcc-10. I must install gcc-8 or gcc-6 in my computer then to build old project. I download the gcc-6 from github and tried install it as shown in ...
0
votes
0answers
106 views

Can't compile any c program (/usr/bin/ld: 1: Syntax error: newline unexpected) [duplicate]

Hello everyone, I have a serious issue, i can't compile any c program, i get the following error : /usr/bin/ld: 1: Syntax error: newline unexpected collect2: ld returned 2 exit status I have found on ...
0
votes
1answer
83 views

How to change gcc version without root on CentOS 7

I have access to a cluster with CentOS 7, which has gcc installed. Unfortunately, gcc version is pretty old (4.8), and is reported incompatible by some of the Python packages I am using, requiring ...
0
votes
1answer
122 views

How long would it take to build GCC-10.2.0? [closed]

I'm building an LFS 10.1 system on a virtual machine with CPU Intel(R) Core(TM) i5-10210U CPU @ 1.60Hz(yes, it's a laptop) with 2 cores and 4GB of RAM. I'd like to know how long will the build process ...
0
votes
0answers
25 views

error: implicit declaration of function 'rdtscl' cc1: some warnings being treated as errors

I'm following Step 3a of instructions here: https://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom But I'm receiving this error: It is suggested: find where -Werror is set and remove that flag I ...
0
votes
0answers
242 views

How to update gdb 9.2 to gdb 10.1

This is my first day with linux, and I downloaded and installed GDB, but noticed that it installed version 9.2, which in not the current version. So i typed something to download GDB version 10.1, ...
0
votes
0answers
210 views

Update gcc 10.2 and g++ 10.2 on linux?

This is my first day with linux (or ubuntu???) and I was trying to install gcc and g++ on my windows laptop. I install both but noticed that they weren't 10.2.0, so I tried to update them. But when I ...
0
votes
1answer
70 views

How to change the default GCC options by editing files?

I want to change the default GCC options by editing files. I think it's impossible, but I want to double check.
2
votes
1answer
98 views

How to make GCC help option (`--help=`) display help information about `-L` and `-l` options for specifying libraries?

I have found the GCC help option --help= incredibly helpful for looking up information about options. However, while I can find lots of information using e.g. --help=common and --help=separate, I can'...
6
votes
1answer
723 views

How to statically link missing libgcc_s_seh-1.dll and libstdc++-6.dll DLLs for 9.3-win32 MinGW executable

I want to compile a simple Windows application on Linux using MinGW. I compile as follows: x86_64-w64-mingw32-g++ -L. -l:mathlib.dll -o fib main.cpp mathlib.h This results in an executable fib that ...
0
votes
0answers
136 views

GLIBC_2.14 and C compiler missing from Centos 6.7

I have came across a situation today on my CentOS 6.7 VM, where I'm trying install any package via yum I'm getting the below given error: yum install gcc There was a problem importing one of the ...
1
vote
0answers
167 views

Which library is producing this error: undefined reference to `TIFFTileRowSize@LIBTIFF_4.0'?

I'm building Ignition (https://ignitionrobotics.org/home) from source on Ubuntu 18.04.5 with gcc-10.1.0, and it seems that some dependencies are missing or have wrong versions. Here are linker errors ...
0
votes
0answers
35 views

How to upgrade gfortran in miniconda environment

I'm trying to compile a program that requires gfortran inside a miniconda3 environment but I get the error message: No suitable fortran compiler found (cause: 'gfortran version need to be above 4.3 ...
6
votes
1answer
768 views

GCC does not throw warnings and compiles erroneous code

#include <stdio.h> int main() { printf("Enter your name\n"); char name[99]; scanf("%d", name); printf("Hello %s\n", name); } While executing this simple ...
0
votes
1answer
73 views

How to compile static binary for i386?

I'm trying to compile some code statically (dosfstools) with GCC for i386, using -static and -march=i386, but the libraries, for example /usr/lib/i386-linux-gnu/libc.a, are not i386 despite the name. ...
1
vote
1answer
67 views

What is the best way to determine missing dependencies when using G++ to compile a program with headers and static libraries?

I am trying to compile the demo for the Acontis etherCAT master stack, but G++ is reporting a number of undefined references when trying to compile, without giving any clue as to which headers or ...
1
vote
0answers
35 views

Linking an assembly program

I'm trying to compile and link an assembly program. assembly file (main.asm): .section .text .global main main: mov $msg, %rdi call printf xor %rax, %rax mov $80, %rdi syscall ...
0
votes
0answers
56 views

gcov gets some kind of version conflict error on mac os

Given a C program, call it temp.c, the following works on Linux and is supposed to work on mac os to show coverage information: gcc -fprofile-arcs -ftest-coverage temp.c a.out gcov temp.c However when ...
-2
votes
1answer
146 views

what is __gmon start_?

I'm trying to reverse engineering a loading file, with winhex I found the binary strings by looking on the loading file by using WinHex: Are those some commands for bash Linux? it is loading .so ...
0
votes
1answer
261 views

Building a gcc cross compiler on linux, how do I know which “--target”s are supported and the exact keyword for specifying them?

I'm trying to build gcc compiler to producing executables that are supposed to run on x86-64 machines. I'm actually using existing 64bit gcc compiler on my computer. It is redundant but I'm doing it ...
0
votes
0answers
217 views

Why I can't compile cpp file using gcc to be 32 bit?

linux 64 bit and while trying to compile my cpp file I receive an error would appreciate any help, thank you The gcc command gcc -m32 -g mmn12-q2.cpp -lstdc++ The error: /usr/bin/ld: skipping ...
0
votes
0answers
35 views

Error on building gcc cross compiler toolchain

I'm following this guide to build a linux system for learning experience On the the guide at the section titled GCC (Static), I'm having an error, on running the command ` $ ln -vs libgcc.a `${...
0
votes
1answer
402 views

Cannot execute gcc due to “permission denied”

So I was thinking about learning some C this week, so I went to setting up everything. I was checking to make sure I had gcc installed using gcc -v, and I got the error bash: /usr/bin/gcc: Permission ...
2
votes
1answer
405 views

Why is the type of stat.st_size not unsigned int?

I was trying to rely on the stat(2) system-call to determine the size of a file in order to allocate an appropriate buffer for it. More specifically I was using the stat.st_size of the structure that ...
1
vote
1answer
215 views

configure: error: libmpfr not found or uses a different ABI (including static vs shared)

Heyo all, I've recently been working on a small side project regarding a custom Linux distro, not with the LFS instructions. Currently, I'm compiling a cross-compiler for gcc. Anyways, I get this ...
1
vote
0answers
22 views

Definitive way to make dynamic link .so file from many C source codes [closed]

How do we build/make dynamic link .so file from many C source TUs (translation units) as gcc -o foo.so -shared -fPIC foo.c of a single .c file ?
0
votes
1answer
612 views

Installing gcc-9 on Debian:stretch

I'd like to install this version of gcc and g++ but in the official documentation it appears that no version >6 is supported (link for official docs). If not 9, then is it possible to install any ...
1
vote
1answer
98 views

Cannot install 'stringi' R package — C compiler problem?

> install.packages("stringi") [...] * installing *source* package ‘stringi’ ... ** package ‘stringi’ successfully unpacked and MD5 sums checked ** using staged installation checking for ...
0
votes
1answer
78 views

Is there a Linux distribution using uclibc and has a full toolchain?

I am going to build a program using uclibc. However, building uclibc is a little difficult in recent systems using glibc, so I am looking for a distribution that uses uclibc and contains compilers ...

1
2 3 4 5
14