Questions tagged [scons]

SCons is a cross platform, open source build tool and an alternative to the classic "Make". It works based on a declarative description of a build, using the Python programming language.

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

missing mongo shell in mongodb under yocto

I have built a Mongodb from a default recipe in my Yocto project (based on Dunfell). I copied relevant rpm packages to my target device and installed it (had to install some dependencies first). ...
Raff89's user avatar
  • 405
0 votes
0 answers
21 views

how to edit a Sconstruct so that it rebuild the 'ext' folder

Here is a part of sconstruct file Full: https://github.com/gem5/gem5/blob/stable/SConstruct The project: https://github.com/gem5/gem5/ # -*- mode:python -*- ###########################################...
Павел Рубанов's user avatar
0 votes
1 answer
70 views

How can I call Scons from a Python program as a library?

I have a Python program, whose workflow over a set of files that could be nicely expressed using "build" dependencies with Scons as follows: Construct a temporary SConstruct file that ...
Petr's user avatar
  • 62.8k
0 votes
0 answers
38 views

SCons and Godot C++ :- Single Dependency for multiple modules

so I am making a project in Godot4 with GDExtension and C++. Let's say i coded a sprite2d in c++ and compiled it. So, looking at the decompile it seems that my class and all the classes it inherits ...
Priyansh Yadav's user avatar
0 votes
1 answer
35 views

Nsis 3.09 open source build using SCONS

I've downloaded Nsis 3.09 source code and would like to build its binaries. Python,scon,zlib and MSVS are already installed. https://nsis.sourceforge.io/Docs/AppendixG.html Those instructions are very ...
Surbhi Jain's user avatar
0 votes
1 answer
24 views

How to escape an environment variable in a SCons action?

I have a build command that runs a Python script. Because the python command is sometimes python and sometimes python3 (depending on operating system), I instead use the full path which I'm keeping in ...
Piotr Siupa's user avatar
  • 4,059
-1 votes
1 answer
43 views

Is there some standard or well supported error reporting/log tool for Scons?

Is there some kind of tool that exists to manage and report tasks failures generated by Scons? I know it's not exactly the intended use case for Scons, but in my team it is used to do things like test ...
Ben Farmer's user avatar
  • 2,397
2 votes
1 answer
69 views

allow scons compilation to fail for a given program

I have an SConstruct file to drive the compilation of a C++ library and compile a number of test programs to check its validation. For building the test programs, the following SConstruct snippet ...
xnth's user avatar
  • 176
0 votes
1 answer
79 views

Scons environment seems to be clobbered after adding static library

I'm building a Godot extension, and here is my Scons file at commit 8907014: #!/usr/bin/env python import os import sys env = SConscript("godot-cpp/SConstruct") # For reference: # - ...
opyate's user avatar
  • 5,408
0 votes
1 answer
106 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
  • 615
0 votes
0 answers
57 views

Can't build OS image with Scons. Where i made mistake? [FIXED]

i'm trying to studying in OS development but now have some troubles with SConstruct scripting. First at all, i'm follow the YT tutorial of OS development. (Link: https://www.youtube.com/watch?v=...
j1sk1ss's user avatar
  • 41
3 votes
2 answers
943 views

Problems creating GDExtension

I would like to create modules for Godot using C++. For that I followed this tutorial https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/gdextension_cpp_example.html. I'm using the ...
Tessan's user avatar
  • 109
0 votes
0 answers
79 views

How to configure SCONS to properly compile c, cpp and .S files?

I have ARM project with .c and .cpp files. I use SCONS as build system. So far everything works fine, but I wanted to add SEGGER SystemView to my project, and there is SEGGER_RTT_ASM_ARMv7M.S assembly ...
Staszek's user avatar
  • 889
0 votes
0 answers
101 views

Compile C code and simulate using gem5 SE

I am new to Gem5, I am trying to compile my C code and simulate it on an ARM like system using SE. First, to compile my C code, I used SCons (without any additional parameters). In the SConstruct ...
Abed Baltaji's user avatar
0 votes
0 answers
31 views

Reduce command size given to gcc in windows

I am trying to build free RTOS application. My application has may submodules and the paths are getting very long. I have updated the windows path limit. but the problem is that the command to give to ...
ALK007's user avatar
  • 23
0 votes
1 answer
17 views

Scons build system pattern-matching for targets specified on the command line

I am using scons for a data analysis project. Sometimes I would like to only build a subset of targets, for example all figure files (ending e.g. with ".png"). Is there a way to do this ...
p.py's user avatar
  • 151
0 votes
0 answers
88 views

Docker on Windows: Compiler Runs Out of Heap Space in Containerized Build Environment

Context Our jenkins server (windows server I think) is using a windows Docker image to create a build environment to compile our windows applications. FROM 192.168.226.153:8081/docker-images/external-...
peterphonic's user avatar
0 votes
1 answer
112 views

Can't build gem5 on Manjaro Linux

I have installed the python and base-devel packages necessary for building, but whenever I try to run scons with python `which scons` build/X86/gem5.opt -j9 it gives me this error: scons: Reading ...
Arthur F's user avatar
0 votes
2 answers
114 views

Scons: overriding SConscript() function to get a list all loaded SConscripts

I am trying to get a list of included python Scons files (which are included via env.SConscript) function for some dependency analyzis. Scons version is 4.4.0 So after a building of a script d.py ...
Stasik's user avatar
  • 2,588
0 votes
1 answer
75 views

How to configure SCons to use a specific MSVC install

We have just starting to use conan as an package manager and SCons as construction tool. One of the package that I have download as package is also MSVC. So, MSVC is now locally available in project ...
Pukaai's user avatar
  • 367
0 votes
1 answer
26 views

Copying files to a project subdirectory in a SCons hierarchical build

Consider this SCons project: myproject/ resource/ objects/ SConscript foo bar src/ SConscript ... SConstruct In objects/SConscript, I have some rules to make ...
trbabb's user avatar
  • 1,924
1 vote
1 answer
96 views

SCons uses Visual Studio flags with Clang

I'm trying to use SCons with Clang on Windows. When I do SCons attempts to use Visual Studio flags with Clang. scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building ...
MBR-6161's user avatar
  • 165
0 votes
1 answer
54 views

How to fix build after update to Java11

I do use scons 2.5.0 (update will come soon hopefully) and I switched from OpenJDK 1.8 to jdk-11.0.2 and I also changed Eclipse version used for build to eclipse-rcp-2023-03-R-win32-x86_64. In ..\...
know's user avatar
  • 3
0 votes
0 answers
30 views

Scons claims sources changed and rebuilds, but they did not change. Is this a bug?

scons: rebuilding `/path/to/foo' because: `build/xyz/libxyz.so' changed I run scons repeatedly, and it always rebuilds /path/to/foo, and nothing else. I am on Linux, using SCons 3.1.2. ...
Evgen's user avatar
  • 194
1 vote
1 answer
79 views

Compiling Mitsuba 2 on Visual Studio 2022 (SCons error)

I try to build the mitsuba-msvc2010.sln using Visual Studio 2022. I fail to successfully build this solution; most probably due to some changes in SCons. This is the error I obtain AttributeError: '...
0xbadf00d's user avatar
  • 17.7k
0 votes
0 answers
49 views

SCons building project in debug mode uses /MD runtime instead of /MDd runtime

I have downloaded Godot's cpp bindings and I'm building the library from source using SCons (it comes with an SConstruct file). However, when I use this library from a project in Visual Studio, I get ...
Francisco José Letterio's user avatar
0 votes
1 answer
154 views

scons: *** Two environments with different actions were specified for the same target: sfpseudodepth

I try to install Madagascar on Ubuntu22.04. My error came after running make install, the error is: make: *** [Makefile:7: install] Error 2 I have just used Linux, I tried to find a solution to this ...
Master Zhang's user avatar
0 votes
2 answers
67 views

SCons VariantDir and isystem include paths

We have a SConscript for a library which consists largely of autogenerated code. This produces a lot of compiler warnings, so instead of including the header files via CPPPATH I tried to use -isystem. ...
the_summer's user avatar
0 votes
1 answer
254 views

Trying to build Gem5 on ubuntu 22: native-elf-format: Permission denied or not found

I am trying Gem5 for the first time and I am using Learning_Gem5 as guide. I have a dual boot system (Windows 11 and Ubuntu 22.04.2) and I am doing this on Ubuntu. When I reach this step python3 `...
Bahareh's user avatar
0 votes
1 answer
84 views

SCons with partially generated source files and variant builds: how to set up dependencies properly

I am facing a weird SCons problem although it does not look like I am trying to achieve anything weird. Here is the situation (unfortunately, we use many proprietary SCons wrappers so I am not sure ...
Mtm 3.14's user avatar
0 votes
0 answers
425 views

Can you compile for Windows using WSL?

Edit: I have been informed that I have a Godot-specific error. I'm going to leave the question up so people can look at my idiocy and also to help the one poor soul in the future who sees this. I ...
GamEsnitzhel's user avatar
1 vote
1 answer
51 views

SCONS PDB unable to find my file, even after I explicitly append it to the system path

I'm trying to debug a scons file as follows: scons --debug=pdb. When I try to set a breakpoint in SConstruct using b SConstruct:24 I get an error: *** 'SConstruct' not found from sys.path My ...
user32882's user avatar
  • 5,276
0 votes
1 answer
113 views

How to call SCons global function from a helper-script called by a SConscript?

I have some non-trivial logic necessary to compute the paths to certain source & header file directories and since it applies to multiple SConscripts I put it in a separate .py file, imported from ...
phonetagger's user avatar
  • 7,721
1 vote
2 answers
161 views

How to use -isystem instead of -I to include directories of third-party projects in scons?

Recently, I found that by adding -Wall and -Wextra to CFLAGS can raise the compilation warning level. And this exposes some hidden bugs. But I do not wish to edit the warnings in the 3rd party code. ...
childerxxx's user avatar
0 votes
1 answer
224 views

Controlling scons environment checking options

I'm trying to build mongodb (open source version 4.2) which uses python and scons for building. The problem relates to scons rather than mongodb. My build fails very early with Couldn't find OpenSSL ...
Antoine's user avatar
  • 13.6k
0 votes
1 answer
173 views

Compiling C++ with Scons and Emscripten

I want to build a simple HelloWorld program for web using the Scons build system with emscripten. I have this simple program: #include <stdio.h> #include <emscripten/emscripten.h> void ...
Oriol Capdevila's user avatar
0 votes
1 answer
62 views

Target dependent ParseConfig

I'm trying to only build a library without having all tests dependencies available, my tests directory have it's own SConscript file that run env.ParseConfig('pkg-config --libs --cflags ...
LeeMan Guard's user avatar
0 votes
0 answers
67 views

ARGUMENTS['var'] in SCsub returns KeyError, but the var is set in config.py

I'm using SCons to build Godot with my custom module. It works, but I wanted to add some functionality there and have 'debug.py' and 'release.py' to be used as profile argument, not a single 'config....
smsware's user avatar
  • 439
1 vote
1 answer
31 views

How to prevent a change of a specific flag from triggering a rebuild?

I've added the option -fdiagnostics-color for GCC in my build. It only changes colors in error commands so I don't want the targets to rebuild when this option is the only thing that has changed. For ...
Piotr Siupa's user avatar
  • 4,059
1 vote
1 answer
93 views

Remove outdated intermediate files before the build

I have a project where a lot of the source files needs to be modified by a script before they are compiled. The build process has 2 steps: Run a script on the original sources to create intermediate ...
Piotr Siupa's user avatar
  • 4,059
0 votes
0 answers
365 views

Gem5 simulator installing scons build Error

I got the below errors after compiling Gem5 simulator (downloaded from Gem5.org) on ubuntu 20.04 using VirtualBox. what are these errors and how can I fix them, please? the command is: scons build/X86/...
CSE_5105_yuvraj sahu's user avatar
1 vote
1 answer
455 views

Attaching .pdb to a compiled .exe in Visual Studio 2022

I am trying to debug a .exe file with a .pdb. The project is using SCons, and here is the part where it compiles in sconstruct: env.Append( CCFLAGS=["/EHsc"]) env.Append( CCFLAGS=["/...
Miles Drake's user avatar
0 votes
1 answer
324 views

SCons build object files in source folders, rather have them in "build" folder

I'm very new to SCons and working on a project, where I am supposed to implement SCons. The directory layout is like this: Folder build subfoldr1 subsubfoldr1 SConscript1 subfoldr2 subsubfoldr2 ...
user19425295's user avatar
0 votes
1 answer
630 views

undefined reference to '__atomic_*' in SCons but similar questions' solution won't work

I'm trying to build Godot with SCons. Everything was working fine until I've used std::atomic in my library my custom module uses (the library is working fine with a Qt application I've created to ...
smsware's user avatar
  • 439
0 votes
2 answers
973 views

'scons' not recognisable on command line

So I installed python-3.10.7 on a fresh windows 10 PC, then used pip install scons to install scons but I keep getting the following error when I type scons in terminal. C:\Users\tempm>scons 'scons'...
Shizo's user avatar
  • 5
0 votes
2 answers
47 views

Scons set s directory as NoClean

I'm using scons as my build system of c++. There's a sub directory that contains a static library. I've tried to set: NoClean("${PATH_TO_DIR}") But the files in this directory are still ...
ParallelParadox's user avatar
0 votes
2 answers
920 views

Basic SCons example throwing `Do not know how to make File target `helloworld' error

I'm trying to follow this tutorial to build a simple C program using SCons. I created a file called SConstruct which contains the following: env = Environment() # construction environment env.Program(...
user32882's user avatar
  • 5,276
0 votes
1 answer
268 views

How long is a gem5 build with "gem5 scons build/ARM/gem5.opt -j2" expected to take on a docker container?

I need to simulate a cpu with an arm ISA and I followed the instructions on https://www.gem5.org/documentation/general_docs/building to build gem5 on a docker container. I'm on an m1 Mac and I have ...
Thorb's user avatar
  • 25
1 vote
0 answers
193 views

scons cross-compilation for ARM64 target on x86-64 host

I'm trying to build an application using scons on x86-64 host Windows machine for Windows ARM64 target. I'm using Microsoft Visual Studio 2019 cross-compilers for ARM64 ("C:\Program Files (x86)\...
YESHU's user avatar
  • 19
-1 votes
2 answers
81 views

How can python code in a Scons script ascertain that it's being run as part of a clean operation?

Is there a runtime variable that can be checked during tree generation if the scons -c flag has been provided? Additional Context: Suppose you have a Sconscript that generates a target "TARG"...
shuriken_alley's user avatar

1
2 3 4 5
27