Questions tagged [compiling]
Questions related to compiling software from sources, usually using the "make" command.
2,537
questions
-1
votes
0
answers
56
views
Call CUDA C function from Fortran: which Fortran compiler, libraries and compiler options do I have to use?
I want to call a CUDA C function in a separate file from a Fortran program from 2003. I want to use the nvcc command for compilation of the .cu file. Which compiler do I have to use, GNU Fortran or ...
0
votes
0
answers
73
views
How to install glibc 2.31 from source on Ubuntu 22.04
I am trying to compile glibc 2.31 on Ubuntu 22.04 LTS.
I followed a this answer as a template, which was incredibly helpful.
My issue is that there are undefined references when I run make:
...
make[...
0
votes
0
answers
12
views
Cross-Compile Raspberry Pi "Kernel configuration is invalid" Error
I'm using ubuntu as a host to cross compile raspberry pi 3b+ as a target. I tried to use commands below:
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /home/ubuntu/Desktop/workspace/linux M=...
0
votes
0
answers
49
views
skipping incompatible
I want to compile C files using make with the libpng library. However, this is what I got after typing the "make"
make
gcc mp5.o main.o -o mp5 -lpng -g -m32
/usr/bin/ld: skipping ...
-1
votes
0
answers
19
views
Nvidia GeForce 9600M GT driver installer cannot find GCC version number in /proc/version
I have learned a lot doing this and now I’m a bit hung up on this next part.
This is a 2009 15-inch MacBook Pro which has had internal components swapped out, such as a Samsung SSD and apparently 2 ...
0
votes
0
answers
32
views
Fail to compile riscv64-unkown-elf-gdb
This is My computer
I am studying 6.1810: Operating System Engineering. https://pdos.csail.mit.edu/6.828/2023/tools.html
I followed the instruction:
sudo apt-get install git build-essential gdb-...
0
votes
0
answers
41
views
How to add NTSync support to both kernel and Wine?
Lubuntu 22.04.4 LTS. How can I apply NTSync patches for kernel and Wine? I've built a few custom kernels years ago (16.04 or 18.04, I don't remember), but I have no idea how to apply NTSync patches.
0
votes
0
answers
32
views
Cannot install nvidia drivers with .run
i was using nvidia omniverse, and a very simple scene crashed every time i opened it.
I looked up a fix, and i found this page (https://docs.omniverse.nvidia.com/dev-guide/latest/linux-troubleshooting....
0
votes
0
answers
76
views
How to compile libcurl statically on Ubuntu via musl-gcc
I will start with the fact that I am no compilation expert. I am trying to compile some c code that I have which utilizes libcurl (among other libraries), and I want it to be as cross-platform for ...
0
votes
0
answers
28
views
openauto compiling error
the link of error pic
/usr/include/c++/9/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = f1x::openauto::autoapp::...
0
votes
0
answers
51
views
openauto building error
I have built aasdk library successfully the output was this
abdelrahman@ubuntu:~/Desktop/aasdk/build$ make
[ 81%] Built target aasdk_proto
[100%] Built target aasdk
abdelrahman@ubuntu:~/Desktop/aasdk/...
0
votes
0
answers
69
views
Geany gives error message on compiling: "Fatal: Can't find unit system used by HelloWorld"
I have installed Free Pascal Compiler and Geany on my ubuntu machine. When I compile a programm with fp of FPC all is fine. If I compile the same program with Geany I get the error message "Fatal:...
0
votes
0
answers
167
views
Kernel 6.7.2 issues
this is mine first time compile a kernel and I have this error
make[3]: *** No hay ninguna regla para construir el objetivo 'debian/canonical-certs.pem', necesario para 'certs/x509_certificate_list'. ...
0
votes
1
answer
154
views
No package 'opencv4' found
I have makefile has this line :
$(CLINAME): $(LIBNAME) main.c
$(CC) -o $@ main.c -std=c99 `pkg-config --cflags --libs opencv4` -Iinclude -L. -l$@ -lm
I am trying to run my code but I got on this ...
0
votes
0
answers
101
views
Build Ghostscript 10 on Ubuntu 22.04
In official repositories of Ubuntu 22.04 LTS there is a Ghostscript 9.55. I'm trying to build latest Ghostscript 10 from sources. It's working but…
a) when I type 'sudo checkinstall' it creates a deb ...
5
votes
2
answers
805
views
How can I use a later version of GCC than the system runtimes support? Can software built with it run on a system with only normal packages installed?
I don't use Ubuntu very much, being a platforms and builds engineer in an organisation that's primarily Red Hat Enterprise and its work-alikes.
The problem with just building and using an up-to-date ...
0
votes
1
answer
48
views
./build command not found
trying to install dssh - https://github.com/PWZER/dssh
but the ./build.sh command is not found nor is any build command.
Ubuntu 22.04.3 LTS
any help appreciated
1
vote
3
answers
3k
views
Ubuntu 22.04.3 - VMware Kernel Module Updater
Ran into the GNU C Compiler (gcc) version 12.3.0 was not found.
I have seen this issue before and have resolved it, however when I run the commands below I still receive the request for GCC. Is the ...
5
votes
1
answer
552
views
compile TN 5250 program
I was a consultant on the IBM AS/400 for nearly 20 years. In the past I have used TN5250 to connect to the 400. Lately I've been getting a lot of emails with possible remote consulting gigs. I tried ...
-1
votes
2
answers
147
views
Compiling with Libadwaita, GTK4 and C
After installing the libadwaita-1-dev package on Ubuntu 23.10, I tried to compile the example from the official documentation:
gcc $(pkg-config --cflags --libs gtk4) $(pkg-config –-cflags --libs ...
0
votes
1
answer
45
views
Error caused by libgd-dev when installing software
I tried to install a plotting software. It passed "./configure" but it failed on "make & make install". See below:
htan@HT:~/grads-2.2.1$ sudo make
Making all in src
make[1]: ...
1
vote
1
answer
161
views
Building kernel from deb-src - missing modules?
I'm trying to build a kernel from the Ubuntu package source on Mantic. So far, I've done this:
$ sudo apt-get build-dep linux linux-image-generic
$ sudo apt-get install libncurses-dev gawk flex bison ...
1
vote
0
answers
75
views
How can I get taglib >= 1.9
I Try to build ardour 8.2 for sources but get a error when I run ./waf configure.
I get the message "taglib 1.9 not found". I am on Ubuntu 22.04.3 LTS.
When I try to build ardour 7.3, I get ...
0
votes
0
answers
98
views
How do I configure an environment for rebuilding current (Mantic) kernel packages?
I'm trying to build a patched version of the current Mantic kernel (6.5.0-14). But I can't even get the unpatched version to build. It seems like I haven't got my Rust installation right but I can't ...
0
votes
0
answers
40
views
I want to show kernel page table
Firist, I install ubuntu on my labtop.(LG Gram model)
I downloaded kernel source, version 6.0
I also make sure about config.
CONFIG_GENERIC_PTDUMP=y
CONFIG_PTDUMP_CORE=y
CONFIG_PTDUMP_DEBUGFS=y
Then, ...
0
votes
0
answers
32
views
Identify cflag, libs for a make
I'm trying to build a package from sourceforge that made use of GTK2+. I'm running Ubuntu 22.04 which has GTK4 installed. I've changed the references to GTK2+ to GTK4. But I cannot figure out what ...
0
votes
0
answers
45
views
Compiller error - End binding failed: Bad value
I'm using Ubuntu 22.04.
I'm compiling a driver to control LED via serial, but it gave the following error at the end of the compilation:
/usr/bin/ld: dl_free_download.o: R_X86_64_PC32 relocation ...
0
votes
0
answers
22
views
Kernel Module insertion failed due to kernel mismatch
While inserting module xfs.ko it gave kernel mismatch error
I am trying to build linux kerenl version 5.15.1 on my Virtual Machine and trying to insert xfs.ko from it into the VM's kernel as a module. ...
0
votes
0
answers
312
views
The C compiler "/usr/bin/cc" is not able to compile a simple test program. flutter
####@flash:~/Documents/app_dev/test_one$ dart run jni:setup -p jni -s src/calculation
selecting source directories: [src/calculation, /home/####/.pub-cache/hosted/pub.dev/jni-0.7.2/src]
Target newer ...
1
vote
1
answer
448
views
SSL error building signed kernel?
I'm following the instructions here to build a signed kernel deb package: https://paldan.altervista.org/signed-linux-kernel-deb-creation-how-to/?doing_wp_cron=1701813437.7412788867950439453125
It ...
0
votes
0
answers
244
views
Facing issue while compiling my kernel module with kernel 6.2.0-26-generic
I am building kernel module, my module was working properly with kernel 5.x versions, but now I am getting so many errors during the compilation process from the kernel headers.
errors:
Error from ...
0
votes
0
answers
176
views
Protobuf C compiler doesn't support proto3
I just installed protobuf compiler and protobuf C compiler using apt install.
protoc --version shows: libprotoc 3.12.4
But as I try to compile a proto file with the --c_out option, I get:
Filename....
0
votes
0
answers
60
views
Ubuntu OS:: Strongswan compilation is failing (make is failing)
I am using Ubuntu OS 22.04.
I have run "apt-get install strongswan"
After I install "apt-get install opensc"
After I install "apt-get install libgmp-dev"
After I install ...
0
votes
0
answers
20
views
Building psensor or getting started building GTK stuff in general
Background: I'm an experienced and competent firmware / driver C / C++ programmer with years in Windows work and just (last 5 years) switched exclusively to Ubuntu. Mostly I work in embedded systems, ...
1
vote
0
answers
68
views
rootfs building tools
I need to build some Ubuntu-based rootfs. This rootfs consist of some packages from ubuntu repo with custom configs and some packages from our own private repo.
Right now in our team it is done by ...
0
votes
1
answer
2k
views
ld.lld: error: unable to find library -lstdc++
CMake is complaining that I don't have a working c++ compiled because of the error:
ld.lld: error: unable to find library -lstdc++
I've narrowed it down the following:
Given the program int main(){...
0
votes
2
answers
2k
views
g++ -- Undefined Reference to main in 86_64-linux-gnu/Scrt1.o:
I am trying to compile a simple C++ Hello World program to test my environment, however, whenever I try, I get this Error:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1....
0
votes
0
answers
99
views
How to fix this error when building Linux Kernel 2.4.36.1?
I want to build a Linux Kernel 2.4.36.1 from the source codes. However the following errors occurred. I used the WSL Ubuntu on Windows 11 and please see the following information:
dingjun@G02515:~/...
0
votes
1
answer
125
views
Which libpng version is used, why it shows old one
Ubuntu 22.04 here. In order to run older app, I installed libpng 1.2 using answer from Install libpng12 on ubuntu 22.04. No 50 points to comment there so I kindly ask here.
Why libpng-config --version ...
0
votes
0
answers
248
views
I cant export to .apk file my python program usin buildozer and Kivy
I was following this tutorial to learn how to export my project (wrote in python) to an .apk file. (https://www.youtube.com/watch?v=pzsvN3fuBA0&t=4s) but I get this error while I was running ...
1
vote
0
answers
508
views
Custom Linux Kernel Module Can't be Inserted in WSL 2
OS: Windows 11, WSL2(Ubuntu 22.04)
inside WSL2, command uname -r returns: 5.15.90.1-microsoft-standard-WSL2
Firstly, I dowloaded the correct version of Linux kernel from Github: WSL2-Linux-Kernel. ...
0
votes
1
answer
784
views
ThinkPad X1 Yoga cam not working in Ubuntu 23.04, cannot build icamerasrc
I bought a Lenovo ThinkPad X1 Yoga Gen 7 with:
32 GiB RAM
CPU: 12th Gen Intel Core i7-1260P x 16
Mesa Intel Graphics (ADL GT2)
SSD: 2 TB
FHD camera system with 4 microphones
3840x2400 ...
0
votes
1
answer
111
views
Docker build can't reach the internet
when I run docker build -t test . it gives me error connection time out, how can I solve this issue, please? I am using Ubuntu 22.04.3
[connection time out][1]
0
votes
0
answers
122
views
How to add math library for gcc in docker Image?
I am trying to containerize LuaJIT, a derivative of Ubuntu image. I've installed build-essentials and I am getting the below compiler error saying that I am missing math library. There is already -lm ...
1
vote
0
answers
80
views
I'm trying to build m3tools and get this super long error
I'm trying to build I/O API 3.2 to use CMAQ. I'm on Ubuntu 22.04.3, using GCC compilers (v11.4.0). I/O API requires both NetCDF-C (v4.9.2) and NetCDF-Fortran (v4.6.1). I'm also using OpenMPI (v4.1.2). ...
0
votes
1
answer
584
views
How to make g++ use the C++20 language standard when compiling from code-blocks in Ubuntu 22.04
Just started learning c++ and it is recommended to compile code using the c++20 standard and use code::blocks as the editor.
I checked the man pages of g++ and it is using c++17. I am using code::...
0
votes
0
answers
93
views
Are the build scripts of packages in the Ubuntu main/universe repos public? [duplicate]
Are the build scripts of packages in the Ubuntu Main/Universe repos public? An example package is Blender.
I want to compile a package by myself, but it is not well-documented on the package's main ...
0
votes
0
answers
216
views
Binary files not being generated
When I try to compile a c, c++, or fortran code no binaries are generated and no errors are thrown by the compilers neither. This seems to be independent of the compiler. For example, below I try to ...
0
votes
1
answer
332
views
"make" command not working
I'm currently trying to install graphics.h to do C programming, but I've been having a problem that I've been unable to solve so far.
Every tutorial explaining the process is the exact same, and they ...
0
votes
0
answers
60
views
Trying to compile aseprite but fails
I'm trying to compile aseprite but I keep getting this error (it usually compiles successfully on ubuntu unity)
I don't know what I have to do now to fix it, thanks in advance for your help
PS: I'm ...