Questions tagged [gcc]
Questions regarding GNU Compiler Collection Suite.
685
questions
0
votes
2
answers
51
views
checking whether the C compiler works... no
I'm trying to build Linux From Scratch (LFS)
I'm just following this books https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html
I have this error after I run ./configure in eudev ...
0
votes
0
answers
27
views
Windows 10 error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1 [migrated]
I am struggling to fix error: linking with 'x86_64-w64-mingw32-gcc; failed: exit code: 1, I have installed TDM-GCC-64 and Cygwin and added them to PATH as well as updating the c++ 2019 redistributable....
0
votes
1
answer
40
views
How to link using -lfoo when there are versioned names of libfoo but no libfoo.so
Suppose /usr/lib/x86_64-linux-gnu/ contains libfoo:
libfoo.so.2 -> libfoo.so.2.0.0 (symbolic link)
libfoo.so.2.0.0
Notably missing is libfoo.so.
Suppose there is a program /usr/local/bin/...
0
votes
0
answers
54
views
x86_64-redhat-linux/7/ld: cannot find -lm
I have CentOs 7.9 and installed the scl devtoolset-7. I receive the following errors:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/...
0
votes
0
answers
56
views
GCC-11 installation error in centos 7 (environmental changes)?
I installed the latest version of GCC 11.2V using conda, conda install -c conda-forge gcc" in my linux server (Centos7).
After I try to login into my server, after login it shows some weird ...
0
votes
1
answer
46
views
How to install gcc-5 on Debian 8.10?
I am trying to install gcc-5 on debian 8.10 on a beaglebone green.
I have looked at many threads, of which the following was the most promising.
How to install GCC 5 on debian jessie 8.1
When I try to ...
0
votes
0
answers
26
views
Cross-compilation: discrepancy between host and target gcc version
I'm developing C and C++ code for an embedded target running Linux equipped with an ARM aarch64 CPU (Cortex-A53).
My goal is to develop on Windows (x86) with Visual Studio, that's why I'm trying the ...
0
votes
1
answer
28
views
Cross Compilation ARMHF or Compilation for Android from Debian or Ubuntu package?
I have two options to compile:
Cross-compile using an amd64 Ubuntu or Debian system for armhf package compilation.
Run an armhf image of Ubuntu or Debian in QEMU.
The problem I have is that when ...
0
votes
1
answer
82
views
32bit program on 64bit: cannot execute binary file: Exec format error
I'm linking an application consisting out of two libraries in clang under WSL.
The command I use looks as follows (simplified):
clang -m32 -fsanitize=address -L _build/ -l:lib1.lib -l:lib2.lib -o test
...
0
votes
1
answer
92
views
Specify which libstdc++ to use
I want to make use of a more recent GCC version. Therefore, I compiled GCC 10 and installed it into a non-standard directory /software/gcc10/. So far so good.
However, I am faced with problems when I ...
0
votes
0
answers
11
views
Need Help with Gene Sequencer Install
ok so i might be overlooking something simple but...
i'm installing iontorrent from source via github using docker on a fresh ubuntu 18.04 bionic beaver install(w/xubuntu desktop as per request)
...
0
votes
0
answers
20
views
is it possible to install guix package manager to a buildroot environment?
Hello fellow linux users,
I am creating a distribution with buildroot and I wanted to install a package manager (guix). The idea is to try to compile it with either make or GCC. Is this possible to do ...
0
votes
0
answers
67
views
Installing GCC4.8.5 on CentOS8 using GCC8.5
I am trying to install GCC4.8.5 under CentOS 8 using GCC 8.5. Here's what I did
Get the compiler and its dependencies
wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.gz
tar zxf gcc-4.8.5.tar.gz
...
0
votes
0
answers
60
views
cmake unable to find CC
I am newbie in Linux, I am using WSL ubuntu 20.04. I am trying to build a project using cmake file.
I am getting following error:-
CMake Error at /usr/local/share/cmake-3.20/Modules/...
0
votes
0
answers
30
views
Getting newer GCC version in Ubuntu
I have Ubuntu 18.04. I want to get newer GCC version. How to do that from ternimal?
I am getting this:
gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation,...
0
votes
0
answers
32
views
Is there a way to automatically scroll terminal back?
When you are building some code (for example with gcc) you usually have lots of lines of output information.
If there are errors, the first one usually located somewhere in the middle of output and I ...
0
votes
0
answers
42
views
Undefined reference to 'fminf' while using Code Runner on Visual Studio Code
I am a fresh Linux user (Linux Mint 20.3), and I am trying to set up my C code environment in Visual Studio Code. On my Windows PC, I am able to run my code with no problems. Yet here, when I run my ...
1
vote
0
answers
50
views
--enable-languages unrecognized option for configure
I am trying to do a build of gcc11 (on RHEL 7.6 which comes with 4.8.5 and no root access). When I run the following:
./configure --prefix=$HOME/gnu --enable-languages=c,c++
I get the response
...
0
votes
1
answer
24
views
as .*s does not work like gcc .*c
when i run gcc -c *.c, it runs:-
gcc -c file1.c -o file1.o
gcc -c file2.c -o file2.o
gcc -c file3.c -o file3.o
...
but as *.s runs:-
as file1.s -o a.out
as file2.s -o a.out
as file3.s -o a.out
...
...
1
vote
0
answers
87
views
Why does debsums show libgcc_s.so.1 as "replaced" and what should be done about it?
On Debian11/KDE debsums | grep -v OK showed /lib/x86_64-linux-gnu/libgcc_s.so.1 as REPLACED. "Replaced" means that "The file has been replaced by a file from a different package."
...
0
votes
0
answers
51
views
skipping incompatible -lgpiod
I am trying to compile a code with libgpiod library. I downloaded the last version libgpiod and built it. Everything is looking good so far. But when I want to compile my code -lgpiod flag.
aarch64-...
0
votes
0
answers
18
views
Identical .so shared libraries (with no symbols) are generated when compiling different C source files
At the institution I work for we have a User Exit made in Pro*C (SQL embedded in C language). We are having some troubles because identical shared libraries are generated when compiling different ...
0
votes
1
answer
377
views
Trying to install gcc on a linux terminal, but I get an error
Trying to install gcc on my computer, but I get this error:
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/b/binutils/libctf0_2.34-6ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.88....
0
votes
0
answers
49
views
How to define a variable in .def file in Linux
I am working first time on def file in Linux, but don't know how to set a variable in def file.
i tried by below ways, but it's not working for me.
**Test_DIR=/usr/include/
TEST_DIR_GCC_VERSION=$(...
0
votes
1
answer
41
views
c cannot create executables configure script
Executed command:
bash configure \
--enable-option-checking=fatal \
--build=x86_64-unknown-linux-gnu \
--host=i686-linux-android \
--target=i686-linux-android \
--disable-warnings-as-errors \
--enable-...
0
votes
0
answers
28
views
Linux gcc make creates randomly unreadable folders
Recently i get some strange problems on compiling cmake linux project.
The compiler creates folders at the CMakeFiles folder. But, some of those are created in write only mode "--w-------". ...
1
vote
0
answers
761
views
Ubuntu 20.04 install gcc-7.3.1
How can I install gcc-7.3.1 in Ubuntu 20.04. So far I could only find out the following solutions but they're for Ubuntu 16.04 and Ubuntu 18.04.
How can I install gcc 7.3 for ubuntu 16.04?
Difficulty ...
0
votes
1
answer
71
views
Is it safe to manually install a new kernel for Debian and other distributions?
Is it generally safe to manually compile and install a new kernel from kernel.org using:
make -j 8
make install
make modules_install
or might the distribution, e.g. Debian, break, because it assumes ...
0
votes
1
answer
620
views
Installing GCC 4.8.5 on CentOS 8
I am trying to install GCC 4.8.5 under CentOS 8 Classic using GCC 8.4.1. Here's what I did (the question has been updated to reflect the recent progress)
Get the prerequisites
yum install gcc make ...
-1
votes
1
answer
52
views
Error when trying compile kernel for OP5T
I'm trying to compile nethunter kernel for OP5T but when I try the command make I have the following error:
root@kali:/# make oneplus5-stock_defconfig
./scripts/gcc-version.sh: line 25: /home/arter97/...
0
votes
0
answers
70
views
Rstudio GLIBCXX_3.4.26 dependency
I have installed the R package metaboliteIDmapping using:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("...
1
vote
1
answer
112
views
Custom `PT_INTERP` interpreter results in segmentation fault?
After having read this article on executing arbitrary programs by changing the PT_INTERP to a custom interpreter, I've tried to experiment with this locally:
$ cat flag.c
#include <stdio.h>
int ...
0
votes
1
answer
59
views
Completely destroyed my gcc compiler. Need help getting it to the right state
To start off, I was trying to compile this c code.
I was using the command the developer recommended such as
gcc 40049.c -m32 -O2 -o decr
and was getting this error
/usr/include/features.h:323:26: ...
-2
votes
2
answers
157
views
No acceptable C compiler found in `$PATH`
Am trying to install gcc, but configure is telling me that
there is no acceptable C compiler found in $PATH.
What can I do?
0
votes
0
answers
28
views
Passing parameters to configure to try to avoid "undefined reference" errors
I am trying to compile wine with the following command:
CPPFLAGS="-I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.4.4/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg//Xorgproto-...
0
votes
0
answers
42
views
Centos / almalinux how to rebuild glibc and gcc (DNF broken) and "no acceptable C compiler found in $PATH"
My dnf / yum is broken
yum update -y
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ModuleNotFoundError: No module named '...
0
votes
0
answers
97
views
Compiling older gcc with newer GCC, why did make stop without errors?
Boring background: I am attempting to get msp430 toolchain to aarch64 (64bit arm). I have recently moved from Gentoo (constant need to add 32-bit use-flags polluting my portage and then checking if ...
0
votes
1
answer
432
views
stdint.h: no such file or directory
I am trying to compile coremarks to benchmark one of my CPU cores I generated (from here: https://gitlab.com/incoresemi/core-generators/benchmarks/-/tree/master).
I get the following error:
In file ...
10
votes
1
answer
2k
views
Can not execute "Hello, World!" C program with user other than 'root'
I have written a "Hello, World!" C file myCFile.c on an x86 embedded board on the Debian OS.
#include <stdio.h>
int main()
{
printf("hello\n")
}
I compile the program: gcc ...
0
votes
0
answers
25
views
Seeking thoughts on a weird error in printk.h
I am compiling a vendor provided proprietary test code for their device driver on rhel8.4, kernel version 4.18.0-305.10.2.el8_4.x86_64. Both the driver and the corresponding test code had been ...
0
votes
0
answers
71
views
compile c file using gcc
I have a file written in C and I need to make a Compile for it alone
File within a large project full of files And I need to compile the
file alone
There are codes inside the file that depend on some ...
0
votes
1
answer
140
views
OpenBSD GCC Upgrade [closed]
I'm attempting to upgrade the GCC library in OpenBSD from 4.2.1 to 11.2.0 (for a project, and a personal challenge). So far, everywhere I looked was unsuccessful. I know it's probably something ...
0
votes
1
answer
60
views
Installing different C compiler messed up system header files
Today I installed scc, which is a different C compiler. (Link) After realizing that scc was not mature enough for my use, I uninstalled it.
Installing scc apparently replaced many C header files such ...
0
votes
0
answers
25
views
Boost build failed on Fedora-34
I am trying to install boost_1_55_0 on Fedora 34 (non-root user in a venv)
I download the .tar.gz file
I extract it using tar zxvf boost_1_55_0.tar.gz
I cd into boost_1_55_0
I run ./bootstrap.sh
I ...
2
votes
1
answer
166
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
1
answer
341
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
1
answer
24
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
2
answers
189
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
1
answer
120
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
1
answer
84
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....