gcc

How to install an older version of GCC for armhf?

How to install an older version of GCC for armhf? I’m not really an expert of linux, so i’m feeling a bit lost. I’m running an Ubuntu 22.04.3 LTS image in WSL, as i need to cross-compile a program for an ARM linux pc using a Windows PC. That image was automagically installed by the …

Total answers: 1

Custom alias to run and compile .c file

Custom alias to run and compile .c file I’m trying to create custom alias to to compile and run my .c files in one command. I tried to add this line in /.bashrc_aliases alias runc=’gcc $1 -lm && ./a.out’ however I get an error and it seems like the .c file doesn’t get passed to …

Total answers: 1

Seeking gcc-8 packages form Ubuntu22 on ARM (Mac)

Seeking gcc-8 packages form Ubuntu22 on ARM (Mac) I have a Ubuntu22 version running on an arm architecture (Mac M2) and need to install an earlier version of the gcc compiler (Version 8). I am sorry if this sounds stupid but I have so far only found cross-compiler gcc8 packages which (I assume) are meant …

Total answers: 1

Issues after ubuntu 22.04.3 upgraded to linux 6.5.0-14

Issues after ubuntu 22.04.3 upgraded to linux 6.5.0-14 I have 2 issues since being upgraded to linux 6.5.0-14 from 6.2.0-39: #1: I’m unable to compile the modules needed for vmware workstation player 17. Version 17.0.2 build-21581411. At first it could not find gcc-12. Following the recommendations from another post I installed gcc-12 and linked it. …

Total answers: 1

Ubuntu 22.04 default GCC version does not match version that built latest default kernel

Ubuntu 22.04 default GCC version does not match version that built latest default kernel On Ubuntu 22.04, the default GNU C compiler version is gcc-11. However, it appears that the latest default kernel version (6.5.0-14-generic as of writing this question) is built using gcc-12. Why is this the case? It feels like it’s likely to …

Total answers: 2

Software updater doesn't let me check some boxes

Software updater doesn't let me check some boxes Software updater on Ubuntu 22.04 shows two equal updates available for GCC: GNU Compiler collection (22 kb) each, but their box cannot be checked. If I run sudo apt-get upgrade on a terminal it finds 8 not updated packages: gcc-10-base gcc-10-base:i386 python3-software-properties python3-update-manager software-properties-common software-properties-gtk update-manager update-manager-core …

Total answers: 1

How to install gcc-5.5 in ubuntu? how can I switch gcc version arbitrarily in ubuntu?

How to install gcc-5.5 in ubuntu? how can I switch gcc version arbitrarily in ubuntu? Sorry, gays. I forgot to tell you the purpose of installing the old version of gcc, because I need to use the sofeware gpgpu-sim( https://github.com/gpgpu-sim/gpgpu-sim_distribution) to simulate the GPU, and may need it to implement some of the contents of …

Total answers: 3

Before you can run VMware several modules must be compiled (vmmon and vmnet)

Before you can run VMware several modules must be compiled (vmmon and vmnet) I just restarted my Pop!_OS and when trying to open vmware it says I have to compile several modules. It then goes onto trying to compile vmmon and vmnet, which fails. and gives me an error log file. I’ve tried changing gcc …

Total answers: 1

Getting error on WiFi driver installation on upgrading to Ubuntu 22.04.3LTS

Getting error on WiFi driver installation on upgrading to Ubuntu 22.04.3LTS My WiFi worked fine with Ubuntu 18.04 on my HP-ab516tx laptop. Then I updated to 20.04 and my WiFi didn’t work. My visible network list was empty. I found the now deleted from Github, rtlwifi_new driver for my rtl8723be here. It installed fine and …

Total answers: 1

Identifier cout is undefined

Identifier cout is undefined I am compiling below code with GCC-12 compiler on Ubuntu 22.04 LTS. I have 2 different versions of GCC installed on my machine 11 and 12. #include <iostream> using namespace std; int main() { cout << "Hello, World!" << endl; } This is my tasks.json file { "tasks": [ { "type": …

Total answers: 1

Differences between gcc and gcc-X

Differences between gcc and gcc-X I’m using Ubuntu 18.04.6 LTS and when I use dpkg -l command, the result contains the following entries: ii gcc 4:7.4.0-1ubu amd64 GNU C compiler ii gcc-7 7.5.0-3ubunt amd64 GNU C compiler ii gcc-7-base:amd 7.5.0-3ubunt amd64 GCC, the GNU Compiler Collection ii gcc-8-base:amd 8.4.0-1ubunt amd64 GCC, the GNU Compiler Collection …

Total answers: 2

Ubuntu 23.04 C Compiler cannot create executables – C compiler works no

Ubuntu 23.04 C Compiler cannot create executables – C compiler works no This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by liberasurecode configure -, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./configure ## ——— ## ## …

Total answers: 1

Installing GCC 13.1.0 on x86_64 Debian

Installing GCC 13.1.0 on x86_64 Debian Did anybody here manage to install GCC 13.1.0 on their computer? When I try to build it from source on my 64-bit Debian Linux, I get the following error message: /usr/bin/ld: .libs/hwasan.o: relocation R_X86_64_PC32 against undefined symbol `__ehdr_start’ can not be used when making a shared object; recompile with …

Total answers: 3

No man page for strcpy_s

No man page for strcpy_s I don’t have the man page for some c11 string functions such as strcpy_s and strncpy_s. I have the most updated version of gcc but somehow it doesn’t recognize gcc -std=c11 -D_DEFAULT_SOURCE -Wall -Werror -pedantic with #define __STDC_WANT_LIB_EXT1__ 1 before #include <string.h>. I’d like to read the man pages to …

Total answers: 1

gcc doesn't find output fine and therefore cannot compile my c program (vscode)

gcc doesn't find output fine and therefore cannot compile my c program (vscode) As the title suggests it is the output file it cannot find, not sure why this is an issue here is my c_cpp_properties.json: { "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "~/edu/doa/code_base/datastructures-v1.0.13.0/include" ], "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c99", "cppStandard": "gnu++17", …

Total answers: 1

Problem with linking with lapack

Problem with linking with lapack I have a problem with lapack on my new ubuntu machine (edit: Ubuntu 20.04.5 LTS). I installed liblapack-dev and libblas-dev using apt-get. I used a following code which works normally on different machine. #include <stdlib.h> #include <stdio.h> /* DGESV prototype */ extern void dgesv( int* n, int* nrhs, double* a, …

Total answers: 1

How to build GCC 13 on M1 MacBook pro?

How to build GCC 13 on M1 MacBook pro? I want to build gcc-13 on my M1 MacBook Pro. Following official document, I download source code using git, configure and make. For configure, I refer to the way of Homebrew configure gcc-12 on link. Specifically is ../configure –prefix=/Users/xubaoyu/gcc/build –disable-nls –enable-checking=release –with-gcc-major-version-only –enable-languages=c,c++ –program-suffix=-13 –with-system-zlib –build=aarch64-apple-darwin22 …

Total answers: 1