Questions tagged [compilation]

Compilation is the transformation of source text into some other form or representation. The most common usage of this tag is for questions concerning transformation of a programming language into machine code. This tag is normally used with another tag indicating the type of the source text such as a programming language tag (C, C++, Go, etc.) and a tag indicating the tool or compiler being used for the transformation (gcc, Visual Studio, etc.).

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

Selective Compilation in C++ via Make

I am trying to modify a pre-made makefile to prevent the compilation of certain specified files and directories. How would I go about this if I wanted to prevent a file "src/values.cpp" from ...
RoboticsGuy's user avatar
0 votes
0 answers
23 views

errors updating Android Studio for targetSDK34

As Android requires I update targetSDK to 34 I've run into an error I don't know how to find and fix. I use the toptoche searchable spinner 1.3.1 and have never had an issue, now after making the ...
Steve C's user avatar
1 vote
0 answers
46 views

Why compiler point to global variable using [rip+0x00]

I am new to compiler, and I am trying to understand why the compiler emit this code. I have this very simple C code // main.c int b = 7; int main(){ int a = 5 + b; return 0; } I compiled ...
kunquan's user avatar
  • 1,137
0 votes
0 answers
10 views

How to build a static node.js that could get running in ubuntu8 without libc?

Here is my Dockerfile: FROM alpine:3.18.3 RUN apk update && apk add --update musl-dev gcc python3-dev py3-pip chrpath git vim mc wget make openssh-client patchelf RUN mkdir /build /package ...
yingshao xo's user avatar
1 vote
0 answers
18 views

What's the features of the symbol table of C language and java?

In the compiling process, both C and Java use symbol tables. What are their features and differences? And how do they respectively store the parameters of functions? (For C language, can take gcc as ...
Alpha Beta's user avatar
0 votes
0 answers
15 views

Can't compile a custom Dataflow Classic Template

I'm trying to write a Dataflow Classic Template in Java which I'm not used to. I copied the code from the Bulk Decompress Cloud Storage Files template that decompress gzip files, then I added some ...
kbenzakrilelp's user avatar
-2 votes
0 answers
13 views

How is javascript used to build executable apps? [closed]

I'm looking at the butter-project / popcorn time to see how it is working and trying to compile it. Project is so outdated that the instructions to do so, dont work at all. So I am trying to figure ...
Hasse's user avatar
  • 399
0 votes
0 answers
11 views

How to use dart to compile a binary executable that ubuntu7 could use?

I have a dart software main.dart: main() { print("hello world"); return null; } I did a compile with this command: dart compile exe main.dart -o main.run After I got main.run, I run it ...
yingshao xo's user avatar
0 votes
1 answer
46 views

C compiler creates .obj files from .h files

Should C Compiler (I use Visual Studio) generate .obj files from .h files? I think it shouldn't, but my compiler creates them. How do I fix it? There is no .c files except Main.c
Yurix's user avatar
  • 15
-1 votes
0 answers
28 views

Fetch electron source with Yocto

I would like build electron for Linux from Yocto. For that I need to to get electron source and it's dependencies from the following link : https://github.com/electron/electron. I can fetch the data ...
Michael Gurion's user avatar
-1 votes
1 answer
31 views

How to remove debug code from js files when building using vite

I am trying to add js debug code for my library built in vue3 and i want it to be automatically removed when building to production using a separate vite.config.js file. The debug code can be ...
Kaki Master Of Time's user avatar
0 votes
1 answer
17 views

Another instance of exe opened when running procces task, where to search the problem?

After compiling Python project (on vmvare windows) into an EXE file using cx_Freeze and testing it on VMware, actions that require processes (proccesing ics - calendar file records) another instance ...
user2204328's user avatar
-1 votes
0 answers
10 views

Fatal error compiling: invalid flag: --release -> during mvnw clean package from command line

Fatal error compiling: invalid flag: --release -> during building spring-boot app from windows command line.
Indresh's user avatar
0 votes
1 answer
15 views

How to import data from .py scripts outisde of visual code?

I've been working on a script which imports data from other python scripts with the "from X.py import *" method. At the moment I am willing to compile all files to create a shortcut (...
Asylum's user avatar
  • 3
0 votes
0 answers
12 views

Having deployment issues from VS2022 to ESP32 board [closed]

while deploying the code is getting exited with error code 0 I am trying to deploy my code to ESP32 device. I would like to know if I am missing something. The code is compiling, not able to deploy ...
HybridSync Technologies's user avatar
0 votes
1 answer
41 views

Error while building Mapnik (a c++ program)

I am trying to build Mapnik from source on my local Linux Mint 21.2 machine (source code on GitHub. When compiling, it stops due to an error. include/mapnik/filesystem.hpp:38:21: error: expected ...
uke's user avatar
  • 462
1 vote
0 answers
58 views

Sometimes System() function in C gives sh error

If I use the system command especially in a if statement. For some reason it gives me a error saying sh: line 1: "command": command not found. Here is the code that does it: #include <...
Mubin Muhammad's user avatar
1 vote
2 answers
103 views

Breaking down the C compilation process into preprocessing, compilation, assembling, and linking step in terms of their input/output [closed]

When I studied the the compilation process steps of the C programming language, I've tried to break down each step (preprocessing, compilation, assembling, and linking) in terms of input/output in ...
Juliana Xavier's user avatar
0 votes
1 answer
38 views

Why does Bazel build generate .pic.o and .pic.d files, and what's their purpose?

I use bazel to build a small c++ program, program directory structure is like this . ├── bazel-bin -> /data/.cache/execroot/__main__/bazel-out/k8-fastbuild/bin ├── bazel-main -> /data/.cache/...
codesavesworld's user avatar
0 votes
2 answers
59 views

Which is better - using extern or declaring a struct array in a header file and defining it in .c in C

Define the array struct in a header file ex.h #include <stdint.h> typedef struct example_t{ const char *pStr; uint32_t size; } example_t; struct example_t array_struct[2]; Then ...
pavikirthi's user avatar
  • 1,581
0 votes
1 answer
26 views

Printing out the OPCODES to which a Python Re is compiled?

Python's re module allows for some compilation of a given regex pattern. For example, import re c = re.compile('(?<=abc)def') How can I print out the code the expression is compiled to? Any links ...
Agnishom Chattopadhyay's user avatar
0 votes
1 answer
32 views

How can I include dependencies for compilation in a Bazel rule

I'm trying to create a Bazel rule that takes a .yaml file, uses the information in it to generate source code, compiles and archives it as a static lib like a cc_library would and can be depended on ...
Emile Papillon-Corbeil's user avatar
1 vote
1 answer
24 views

compilation error while installing R package 'maftools' on M1 mac

I'm trying to install R package 'maftools' on my mac M1. As other M1 mac users, I encountered compilation issue while installing dependent packages like 'DNAcopy' or 'Rhtslib'. I solved this by ...
agnes-csw's user avatar
0 votes
0 answers
24 views

How to compile rego file into WASM using Java?

Is there a way to compile the rego file used by OPA into WASM using Java? Currently I'm using the following command to compile a rego policy into WASM and bundling it with data into a gz file ./opa ...
Bhaskar's user avatar
1 vote
1 answer
50 views

move html files out of src folder in dist vite

I'm currently engaged in a Vue.js project that utilizes Vite as the build tool. My objective is to adjust the Vite configuration in a way that the HTML files are situated directly within the 'dist' ...
komote7665's user avatar
0 votes
0 answers
18 views

I get a CGI file from the server。It is compiled by luajit,iI want to compile it against it

It is compiled by luajit, but after I open it, its content is a long character that starts with Base64. I tried to use Base64 to decoding, switching a lot of codes, still garbled, unable to decod it. ...
hola's user avatar
  • 1
0 votes
1 answer
32 views

running many lines of ocaml code on vscode

I just started learning ocaml and I have a problem with my vscode. I noticed that when i write too many lines of codes they won't be compiled, only some of them. For example in the 1st picture, it ...
Rayane's user avatar
  • 3
0 votes
0 answers
14 views

Recipe for target 'sizebefore' failed in Microchip Studio

Maybe small but difficult issue for me. Appreciate if someone could lead me to right direction to solve this. I am trying to build ~10year old files but getting this error is Microchip Studio 7.0.132 ...
Mika Levonen's user avatar
3 votes
1 answer
104 views

why does "Integer [ ] x = (Integer [ ]) new Object[100]; " compile?

I compile: Integer [ ] x = (Integer [ ]) new Object[100]; it succeeds. and I don't know Why?
Oscar's user avatar
  • 65
1 vote
4 answers
229 views

Optional Dependency in VBA Module

Background I am developing a VBA module (call it "Greg") for VBA developers of Excel UDFs. The purpose of Greg is to enhance the experience for the end user, who uses those UDFs in Excel. ...
Greg's user avatar
  • 3,026
-3 votes
0 answers
49 views

I'm having problems implementing classes in c++ [duplicate]

I'm making a code for school a school project, the code must meet the following... Develop a program that aims to receive a chessboard as input from the user, perform an analysis and inform the user ...
thiagohip's user avatar
0 votes
0 answers
11 views

How do I Compile Program? (TDEDecrypt Tool)

I am working on a .TDE extension file and I am unsure how to decrypt it. Specifically, someone made a program but only posted it as SC. I wonder if there is any solution to run the project bcs when I ...
Metercedes's user avatar
0 votes
0 answers
8 views

Run within Emacs a make command that is to be launch in a parent directory

For a LaTeX FAQ based on the Sphinx documentation generator, the source of which is made up of Markdown files, I use Markdown mode. Once the source files are ready to be checked, the corresponding ...
Denis Bitouzé's user avatar
1 vote
1 answer
92 views

Does a C compiler provide any type definitions that have definite length?

In the C language Specification, there are constraints of minimum length of built-in types; thus, a compiler must ensure that the length of char is at least 8 bit, int 32 bits, long long 64 bits, etc. ...
08822407d's user avatar
0 votes
1 answer
11 views

Conditional compilation in Perl to not compile a body of code

I am trying to make some massive changes in a program I wrote some years ago. Over 600 lines of code. But I want to test my changes in tiny steps. When I was coding in C, I would stop the compile ...
Jacob Salomon's user avatar
0 votes
0 answers
68 views

Large NTTPs (e.g. fixed strings) lead to issues: compile times, error messages

I'm using the following string class as NTTP. struct fixed_string { static constexpr size_t MaxSize = 16; constexpr fixed_string() = default; constexpr fixed_string( const std::...
non-user38741's user avatar
0 votes
1 answer
115 views

why compile error when upgrade lombok to 1.18.28 with jdk17?

I'm upgrading the Java version to 17. Here is the stacktrace. Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private com.sun.tools.javac.processing....
tony's user avatar
  • 13
-1 votes
1 answer
29 views

Java Compilation Rule

In the main-method class of my program, I created objects of other classes. Do I need to compile not only the main-method class, but also the other classes? My code looks something like this: public ...
Augmas's user avatar
  • 1
0 votes
0 answers
33 views

Can I compile the java code in something like a dll to use inside the Python code, and use this before in a pyinstaller compiled program? [duplicate]

I want to use a Java project inside Python, I read that some Python libraries do it. But my question is it: If I do it, can I compile before all the code with pyinstaller or can I compile the java ...
DazzRick's user avatar
0 votes
0 answers
17 views

afl-gcc-fast complains about incompatible GCC and plugin versions even though they are the same

I am trying to compile this simple program with afl-gcc-fast. #include <stdio.h> int main(int argc, char** argv) { printf("%s", "Hello world!\n"); return 0; } I ...
Some nerd who does not have a 's user avatar
0 votes
0 answers
11 views

When I compile and install CARLA on Windows, I get the following error when running make PythonAPI:

-[Setup]: Installing Xercesc... -[install_xercesc]: [Batch params]: --build-dir "D:\AA\Epic Games\UnrealEngine\carla\Build\" -[install_xercesc]: A xerces installation already exists. ...
FADEAWAY's user avatar
0 votes
0 answers
18 views

Error: ../arch/arm64/boot/dts/sprd/ums512-w27v1.dts:1044.1-15 Label or path modem_dbg_log not found

Error: ../arch/arm64/boot/dts/sprd/ums512-w27v1.dts:1044.1-15 Label or path modem_dbg_log not found FATAL ERROR: Syntax error parsing input tree Hi I'm trying to compile realme c21y kernel,an arm64 ...
PraveenGanisetti's user avatar
0 votes
0 answers
35 views

How to exclude the drivers/pci directory from compilation during Linux kernel compilation, while still allowing make to find symbols in its .o files?

Problem Description When switching the project compiler from gcc 9.3 to clang 11, there are a few files in the existing drivers/pci directory that fail to compile with the new compiler. As a ...
alex zhang's user avatar
0 votes
0 answers
30 views

GCC compile error - x86_64-pc-linux-gnu/bits/largefile-config.h] x86_64-pc-linux-gnu/bits/largefile-config.h] Error 1 (ignored)

Compiling gcc-12.2.0 in Debian linux. The configure portion is as follows:: configure --prefix=/home/me/GCC --enable-multilib --enable-multiarch However, when I run "make" I am getting the ...
user3063547's user avatar
-2 votes
0 answers
53 views

Using a Batch File to compile multiple .cpp files individually?

I'm working on a compiler batch file for C++ files so I don't accidentally make any spelling mistakes, and I got a little carried away. However, I ran into an issue with my batch file where I can't ...
American Huston's user avatar
0 votes
0 answers
57 views

How to generate all .o files for each .c file when compiling a Linux kernel?

I need to generate bitcode files for each .c file for analysis, so I modified my clang as following: --- llvm-project2/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp 2020-02-03 20:57:16....
Sheng Wu's user avatar
-2 votes
0 answers
25 views

How to Compile External API Calls

I am planning to create an LLVM frontend compiler that converts JS code into LLVM IR. However, the JS code contains calls to external APIs that I've developed in C or C++. These APIs have a JavaScript ...
qorz's user avatar
  • 1
-1 votes
0 answers
42 views

Error compiling/running C PCI-e API for Windows 10

I was recently assigned a job in a programming language that I don't usually use on a daily basis and whose last use probably dates back to university studies: i'm talking about C! I have to modify a ...
Lubron's user avatar
  • 35
0 votes
0 answers
61 views

How to build busybox with static binary?

I'm trying to debug kernel with qemu_8.0.2 + gdb + busybox_1.32.0 But I have a kernel panic when booting: Kernel panic - not syncing: No working init found. So I want to build busybox with "...
Frontier_Setter's user avatar
0 votes
0 answers
43 views

Sheme r1rs bytecode

I have simple tree-walking interpreter for scheme r1rs. I use Rust for it. Lisp interpreter is s-expressions interpreter, that's why i have these AST nodes: enum SExpression<'a> { Nil, ...
Benefixx's user avatar

1
2 3 4 5
344