Thomas Krijnen
77a7026d33
Disable GMPXX in CGAL build #733
2025-11-10 10:15:14 +01:00
Thomas Krijnen
9c5f3f9754
Disable GMPXX in CGAL build #7330
2025-11-10 09:51:38 +01:00
Andrej730
3ae77c68e8
build-all.py - add VERBOSE=1 for building executables
2025-10-31 18:50:52 +05:00
Andrej730
ba3517f3aa
build-all.py - switch to dynamic_lookup for macos builds
...
1) `-undefined,suppress` is deprecated, linker is sending warnings about it and it seems to be superseded by `dynamic_lookup`
2) `-flat_namespace` is not compatible with GMP when building for intel, for some reason and results in horrible errors during linking:
Example error:
```
ld: branch8 out of range 366651 in ___gmpn_add_nc
final section layout:
__TEXT addr=0x00000000, size=0x02d09000, fileOffset=0x00000000
__text addr=0x00001400, size=0x0264a5e4, fileOffset=0x00001400
__stubs addr=0x0264b9e4, size=0x0000423c, fileOffset=0x0264b9e4
__stub_helper addr=0x0264fc20, size=0x00006c58, fileOffset=0x0264fc20
__gcc_except_tab addr=0x02656878, size=0x002efc04, fileOffset=0x02656878
__const addr=0x02946480, size=0x001cdc18, fileOffset=0x02946480
__cstring addr=0x02b140a0, size=0x0014324b, fileOffset=0x02b140a0
__unwind_info addr=0x02c572ec, size=0x0008d2d0, fileOffset=0x02c572ec
__eh_frame addr=0x02ce45c0, size=0x00024a30, fileOffset=0x02ce45c0
__DATA_CONST addr=0x02d09000, size=0x0022b000, fileOffset=0x02d09000
__got addr=0x02d09000, size=0x00001dc8, fileOffset=0x02d09000
__mod_init_func addr=0x02d0adc8, size=0x00000690, fileOffset=0x02d0adc8
__const addr=0x02d0b460, size=0x00227fd0, fileOffset=0x02d0b460
__DATA addr=0x02f34000, size=0x000c3000, fileOffset=0x02f34000
__la_symbol_ptr addr=0x02f34000, size=0x000056a0, fileOffset=0x02f34000
__data addr=0x02f396a0, size=0x0005f7b8, fileOffset=0x02f396a0
__thread_vars addr=0x02f98e58, size=0x000006d8, fileOffset=0x02f98e58
__thread_ptrs addr=0x02f99530, size=0x00000178, fileOffset=0x02f99530
__thread_data addr=0x02f996b0, size=0x000000d8, fileOffset=0x02f996b0
__thread_bss addr=0x02f99790, size=0x00018850, fileOffset=0x02f99790
__bss addr=0x02fb1fe0, size=0x0003b0c0, fileOffset=0x00000000
__common addr=0x02fed0a0, size=0x00009098, fileOffset=0x00000000
__LINKEDIT addr=0x02ff7000, size=0x0148e000, fileOffset=0x02fb2000
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
2025-10-30 19:45:24 +05:00
Andrej730
7f144b7b95
build-all.py - remove unused wasm flags
...
`-Wl,-undefined,suppress` have no meaning in emscripten and they are just ignored. And emscripten is ignoring undefined symbols by default without any flags.
2025-10-30 19:45:24 +05:00
Andrej730
19ac0b6c38
build-all.py - add VERBOSE=1 to the wrapper make command
2025-10-30 19:45:24 +05:00
Andrej730
3562437293
build-all.py - fix missing mac cross compilation host args in gmp
...
I guess something has changed in gmp 6.3.0 and this issue become more apparent.
Example error:
```
tmp-cnd_sub_n.s:133:14: error: tmp-cnd_add_n.sbrackets expression not supported on this target:
130 stp x8, x9, [x1,#16]
^
:2tmp-cnd_sub_n.s: :error: 134invalid instruction mnemonic 'bic':
6 bic x7, x13, x0:
error: invalid instruction mnemonic 'cset'^
~Lrt: cset x0, cc~
^~~tmp-cnd_add_n.s~:
131:2: error: invalid instruction mnemonic 'adcs'
adcs x8, x10, x6
^~~~
tmp-cnd_add_n.s:132:2: error: invalid instruction mnemonic 'adcs'
adcs x9, x11, x7
^~~~
tmp-cnd_add_n.s:133:14: error: brackets expression not supported on this target
stp x8, x9, [x1,#16]
^
tmp-cnd_add_n.s:134:6: error: invalid instruction mnemonic 'cset'
Lrt: cset x0, cs
^~~~
```
2025-10-30 19:45:24 +05:00
Andrej730
5ec974ff94
Exclude build-all.py from main ruff check
2025-10-28 18:20:43 +05:00
Andrej730
2c585b649a
Fix RUFF037 (redundant quotes)
2025-10-28 18:20:14 +05:00
Andrej730
89a6eac535
build-all.py - access pyodide for necessary variables, simplify debug build env
2025-10-28 17:17:20 +05:00
Andrej730
4396126a43
build-all.py - fix for upcoming pyodide changes (cmake INIT flags)
2025-10-28 17:17:20 +05:00
Andrej730
7448feed44
build-all.py - reinitialize wasm cxx flags from cflags to accomodate issue upstream
2025-10-28 17:17:19 +05:00
Andrej730
c8a4f1bbd2
cmake - build without Python libraries on Unix
2025-10-28 17:17:19 +05:00
Andrej730
ace1db739f
build-all - use shutil.which instead of custom function
...
To make it more idiomatic and custom function also was misinterpreting folders with the same name as existing executables.
2025-10-28 17:17:19 +05:00
Andrej730
5b4c54abd2
build-all.py - switch to gmp ftpmirror
...
previous url is inaccessible
2025-10-28 17:17:18 +05:00
Andrej730
12766d61d4
build-all.py - print BUILD_DIR
2025-10-28 17:17:18 +05:00
Andrej730
f8bb04eae3
build-all.py - accomodate pyodide build system automatically
...
as it's the main way to build the wasm package
2025-10-28 17:17:18 +05:00
Andrej730
7ca44b5677
build-all.py wasm - move SIDE_MODULE=2 to cmake
...
Next to `EXPORTED_FUNCTIONS` and avoid possible issues with pyodide in the future (pyodide is using `SIDE_MODULE=1`, but currently not providing it libraries of type `MODULE`, only for shared ones).
2025-10-28 17:17:17 +05:00
Andrej730
6345b052da
build-all.py - add a note about alternative gmp mirror
2025-10-28 17:17:17 +05:00
Andrej730
bcaa412f4b
build-all.py - don't pass side module flags as usual flags
...
As they're parsed by emcmake automatically https://github.com/pyodide/pyodide-build/blob/bdd0b1422064de6d92264a08c599e85001a28567/pyodide_build/tools/cmake/Modules/Platform/Emscripten.cmake#L105-L107
2025-10-28 17:17:17 +05:00
Andrej730
9f6536b263
build-all.py - option to build wasm outside pyodide for debugging
2025-10-28 17:17:17 +05:00
Andrej730
226581f76e
build-all.py - provide exported functions to target explicitly
...
Otherwise it broke compilation in some cases when cmake would try to test that linker is working.
2025-10-28 17:17:17 +05:00
Andrej730
e833d0cd13
build-all - wasm to use packages instead of providing includes/libs paths explicitly
...
More complicated than I anticipated😅
Details
https://discourse.cmake.org/t/provide-absolute-paths-to-dependencies-with-cmake-find-root-path-search-during-cross-compilation-wasm/15241
2025-10-28 17:17:16 +05:00
Andrej730
ed3c95d9d7
build-all.py - move unsupported dependencies to script
2025-10-28 17:17:16 +05:00
Andrej730
80c0932174
build-all.py - print IFCOS_SCHEMAS
2025-10-28 17:17:16 +05:00
Andrej730
73a238e7b0
build-all.py - document required wasm variables
2025-10-28 17:17:16 +05:00
Andrej730
b95900f154
build-all.py - fix issue building wasm on apple device
2025-10-28 17:17:16 +05:00
Andrej730
da66e3c908
build-all.py - remove --host none from wasm args
...
As it's now obsolete and producing warnings `configure: WARNING: the "none" host is obsolete, use --disable-assembly`.
2025-10-28 17:17:16 +05:00
Andrej730
e04cc47022
build-all.py - bump freetype to avoid issues on cmake 4+
2025-10-28 17:17:16 +05:00
Andrej730
ce427698d9
build-all.py - add note on --without-xxx option
2025-10-28 17:17:16 +05:00
Andrej730
d3beae1374
Add Python 3.14 builds
2025-10-28 17:17:16 +05:00
Andrej730
3efd88b0d6
build-all - deduce python components from python path
2025-10-28 17:17:15 +05:00
Thomas Krijnen
89defa9b6b
build-all.py ruff: noqa: UP035
2025-10-26 10:20:13 +01:00
Thomas Krijnen
e2cf60f0c1
Update to gmp 6.3.0 #7200
2025-10-21 12:18:48 +02:00
Andrej730
fb304e141a
build-all.py - note on doubled compilation times
2025-10-04 21:40:07 +05:00
Esteban Dugueperoux
ab0a602f9f
black: Format incorrectly formated files ( #7194 )
2025-10-04 18:59:42 +05:00
Thomas Krijnen
02713dbd39
nix build script add occt 7.9.1 patch
2025-10-03 18:08:37 +02:00
Thomas Krijnen
d58dae5d2f
nix build script add occt 7.9.1 patch
2025-10-03 18:05:39 +02:00
Andrej730
923e8423f9
black .
2025-09-29 16:43:28 +05:00
myoualid
c64b477e53
last attempt to fix WASM build: libxml2 without threads and use explicit libxml2 paths
2025-09-29 00:49:12 +01:00
myoualid
4f7501e1e8
set Eigen3 path for WASM build to avoid find_package issues following commit 235eb3c83c
2025-09-28 21:56:27 +01:00
myoualid
a1f20ec7bb
add explicit OCCT paths for WASM builds
2025-09-28 20:20:43 +01:00
myoualid
e2ee6c6e56
Fix WASM build by reverting CGAL handling to explicit paths from commit 3ec7b71565
2025-09-28 16:43:58 +01:00
myoualid
6940a05f2b
remove yacc dependency for wasm build
2025-09-28 13:51:38 +01:00
Andrej730
7a33a9eb02
build_osx - fix issue building arm64
2025-09-26 21:53:33 +05:00
Andrej730
07ba483a13
build-all - bump Python version to fix issue cross compiling
...
Not sure which patch version exactly fixed it, but 3.13.6 works.
2025-09-26 21:53:33 +05:00
Andrej730
f9ee838cd2
build-all - cross compile dependencies
2025-09-26 21:53:32 +05:00
Andrej730
cce0c39ab2
build-all.py - provide with-openssl for python on Mac
2025-09-26 21:53:32 +05:00
Andrej730
6b705f0448
build-all.py - document ADD_COMMIT_SHA env var
2025-09-26 21:53:32 +05:00
Andrej730
cac41064e0
build_osx - attempt to cross-compile intel binaries
...
ccache step broke (https://github.com/hendrikmuhs/ccache-action/issues/374 ) and macos-13 is now deprecated in general -
https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
2025-09-26 21:53:32 +05:00