Comments (4)
Thank you for your issue, amidarius, we have made some modifications similar to what you did in the version 22 which was just released.
The Windows build and CI should be working now.
Building a custom userland for the device (with arm-none-eabi-gcc installed via msys) should work out of the box too.
from epsilon.
Hi,
Thanks @amidarius for your notes !
Just one thing : I needed to type export SETUPTOOLS_USE_DISTUTILS=stdlib
(without the set
) before pip3 install lz4 pypng stringcase
. @MarcNumworks : Is it possible to add this line on the https://www.numworks.com/engineering/software/build/ page ?
So I can now build epsilon.exe, but I noticed several warnings during windows compilation :
CXX apps/regression/model/trigonometric_model.o
apps/regression/model/trigonometric_model.cpp: In member function 'virtual void Regression::TrigonometricModel::specializedInitCoefficientsForFit(double*, double, Regression::Store*, int) const':
apps/regression/model/trigonometric_model.cpp:194:34: warning: 'xMin' may be used uninitialized [-Wmaybe-uninitialized]
194 | double period = 2.0 * std::fabs(xMax - xMin);
| ~~~~~~~~~^~~~~~~~~~~~~
apps/regression/model/trigonometric_model.cpp:187:10: note: 'xMin' was declared here
187 | double xMin, xMax, yMin, yMax;
| ^~~~
apps/regression/model/trigonometric_model.cpp:194:34: warning: 'xMax' may be used uninitialized [-Wmaybe-uninitialized]
194 | double period = 2.0 * std::fabs(xMax - xMin);
| ~~~~~~~~~^~~~~~~~~~~~~
apps/regression/model/trigonometric_model.cpp:187:16: note: 'xMax' was declared here
187 | double xMin, xMax, yMin, yMax;
| ^~~~
apps/regression/model/trigonometric_model.cpp:190:32: warning: 'yMin' may be used uninitialized [-Wmaybe-uninitialized]
190 | modelCoefficients[0] = (yMax - yMin) / 2.0;
| ~~~~~~^~~~~~~
apps/regression/model/trigonometric_model.cpp:187:22: note: 'yMin' was declared here
187 | double xMin, xMax, yMin, yMax;
| ^~~~
apps/regression/model/trigonometric_model.cpp:190:32: warning: 'yMax' may be used uninitialized [-Wmaybe-uninitialized]
190 | modelCoefficients[0] = (yMax - yMin) / 2.0;
| ~~~~~~^~~~~~~
apps/regression/model/trigonometric_model.cpp:187:28: note: 'yMax' was declared here
187 | double xMin, xMax, yMin, yMax;
| ^~~~
CXX eadk/src/simulator.o
eadk/src/simulator.cpp: In function 'KDPoint p(eadk_point_t)':
eadk/src/simulator.cpp:50:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
50 | return *reinterpret_cast<KDPoint *>(&point);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eadk/src/simulator.cpp:50:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
eadk/src/simulator.cpp: In function 'KDRect r(eadk_rect_t)':
eadk/src/simulator.cpp:55:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
55 | return *reinterpret_cast<KDRect *>(&rect);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eadk/src/simulator.cpp:55:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
eadk/src/simulator.cpp: At global scope:
eadk/src/simulator.cpp:95:15: warning: 'eadk_external_data_size' initialized and declared 'extern'
95 | extern size_t eadk_external_data_size = 0;
| ^~~~~~~~~~~~~~~~~~~~~~~
CXX poincare/src/list.o
poincare/src/list.cpp: In member function 'Poincare::Expression Poincare::List::approximateAndRemoveUndefAndSort(const Poincare::ApproximationContext&) const [with T = float]':
poincare/src/list.cpp:233:42: warning: array subscript -4 is outside array bounds of 'Poincare::Evaluation<float> [1]' [-Warray-bounds=]
233 | static_cast<ListComplex<T>&>(eval).sort();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
poincare/src/list.cpp:228:17: note: at offset -8 into object 'eval' of size 2
228 | Evaluation<T> eval =
| ^~~~
poincare/src/list.cpp: In member function 'Poincare::Expression Poincare::List::approximateAndRemoveUndefAndSort(const Poincare::ApproximationContext&) const [with T = double]':
poincare/src/list.cpp:233:42: warning: array subscript -4 is outside array bounds of 'Poincare::Evaluation<double> [1]' [-Warray-bounds=]
233 | static_cast<ListComplex<T>&>(eval).sort();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
poincare/src/list.cpp:228:17: note: at offset -8 into object 'eval' of size 2
228 | Evaluation<T> eval =
| ^~~~
CXX poincare/src/list_sort.o
poincare/src/list_sort.cpp: In member function 'Poincare::Expression Poincare::ListSort::shallowReduce(Poincare::ReductionContext)':
poincare/src/list_sort.cpp:73:27: warning: array subscript -4 is outside array bounds of 'Poincare::Evaluation<float> [1]' [-Warray-bounds=]
73 | listOfDefinedScalars};
| ^
poincare/src/list_sort.cpp:63:21: note: at offset -8 into object 'approximatedList' of size 2
63 | Evaluation<float> approximatedList =
| ^~~~~~~~~~~~~~~~
CC python/port/stackctrl.o
python/port/stackctrl.c: In function 'mp_stack_ctrl_init':
python/port/stackctrl.c:36:32: warning: storing the address of local variable 'stack_dummy' in 'mp_state_ctx.thread.stack_top' [-Wdangling-pointer=]
36 | MP_STATE_THREAD(stack_top) = (char*)&stack_dummy;
python/port/stackctrl.c:35:18: note: 'stack_dummy' declared here
35 | volatile int stack_dummy;
| ^~~~~~~~~~~
In file included from python/port/stackctrl.c:27:
python/src/py/mpstate.h:287:23: note: 'mp_state_ctx' declared here
287 | extern mp_state_ctx_t mp_state_ctx;
| ^~~~~~~~~~~~
from epsilon.
Hi @ljoets,
Thanks for reporting these warnings, they don’t appear with clang or arm gcc but indeed they also appear with gcc on linux, we will fix them.
I have added your question in an internal issue where we want to improve this tutorial, I hope we will have time for this soon.
Have a nice day !
from epsilon.
Here the warnings when actually building on Debian 12 :
XX poincare/src/list.o
poincare/src/list.cpp: In member function ‘Poincare::Expression Poincare::List::approximateAndRemoveUndefAndSort(const Poincare::ApproximationContext&) const [with T = float]’:
poincare/src/list.cpp:233:42: warning: array subscript -4 is outside array bounds of ‘Poincare::Evaluation<float> [1]’ [-Warray-bounds]
233 | static_cast<ListComplex<T>&>(eval).sort();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
poincare/src/list.cpp:228:17: note: at offset -8 into object ‘eval’ of size 2
228 | Evaluation<T> eval =
| ^~~~
poincare/src/list.cpp: In member function ‘Poincare::Expression Poincare::List::approximateAndRemoveUndefAndSort(const Poincare::ApproximationContext&) const [with T = double]’:
poincare/src/list.cpp:233:42: warning: array subscript -4 is outside array bounds of ‘Poincare::Evaluation<double> [1]’ [-Warray-bounds]
233 | static_cast<ListComplex<T>&>(eval).sort();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
poincare/src/list.cpp:228:17: note: at offset -8 into object ‘eval’ of size 2
228 | Evaluation<T> eval =
| ^~~~
CXX poincare/src/list_sort.o
poincare/src/list_sort.cpp: In member function ‘Poincare::Expression Poincare::ListSort::shallowReduce(Poincare::ReductionContext)’:
poincare/src/list_sort.cpp:73:27: warning: array subscript -4 is outside array bounds of ‘Poincare::Evaluation<float> [1]’ [-Warray-bounds]
73 | listOfDefinedScalars};
| ^
poincare/src/list_sort.cpp:63:21: note: at offset -8 into object ‘approximatedList’ of size 2
63 | Evaluation<float> approximatedList =
| ^~~~~~~~~~~~~~~~
LD epsilon.bin
/usr/bin/ld: attention: output/release/simulator/linux/ion/src/simulator/shared/collect_registers_x86_64.o: l'absence de la section .note.GNU-stack implique une pile exécutable
/usr/bin/ld: NOTE: Ce comportement est déprécié et sera supprimé dans une version ultérieure de l'éditeur de liens
The build bin file works fine.
from epsilon.
Related Issues (20)
- [Python] Ask for confirmation when deleting a Python script
- [Python] TypeError: 'list' object isn't subscriptable HOT 1
- [Python] Add the error classes to the python catalogue HOT 1
- [Python] Add classes to the "functions" catalogue HOT 1
- ANOVA function = Looking for significant differences between 3 or more sample means. HOT 1
- [Python] Add a library to easily create GUI such as tkinter HOT 3
- [Emulator] Add a flag to run a third party app HOT 1
- Micro-python idées d'amélioration
- In the module turtle, color() doesn't change the color of write() HOT 5
- Share same stockage for app .nwa than for python files HOT 1
- Missing constants HOT 2
- Make Ans be able to be deleted all at once
- Exact values of minimum, maximum etc. in Grapher app
- [SUM/PROD Improvement] Please increase k_maxNumberOfSteps HOT 2
- Please add a Spyro clone to the software suite HOT 1
- INFO: Could not init video
- Problème d'échelle automatique sur le graphique dans le menu Regression
- Écriture scientifique
- When graphing, the numworks calculator gives wrong answers for the minimum point of a quartic graph for example: x⁴-16 HOT 1
- + and - not working for ion module in the browser (when developing my scripts online)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epsilon.