Skip to content

Instantly share code, notes, and snippets.

View thierry-FreeBSD's full-sized avatar

Thierry Thomas thierry-FreeBSD

View GitHub Profile
@thierry-FreeBSD
thierry-FreeBSD / hs_err_pid64195.log
Created June 28, 2025 20:45
Fatal JRE error trying to run Scilab compiled with JDK11
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (decoder_elf.hpp:45), pid=64195, tid=101848
# Error: ShouldNotReachHere()
#
# JRE version: OpenJDK Runtime Environment (11.0.27+6) (build 11.0.27+6-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.27+6-1, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Core dump will be written. Default location: /usr/ports/math/scilab/work/scilab-6.1.1/scilab-bin.core
#
@thierry-FreeBSD
thierry-FreeBSD / lapack.log
Created January 18, 2025 14:11
lapack.log
This file has been truncated, but you can view the full file.
MASTER_SITES contains
https://github.com/Reference-LAPACK/lapack/archive/refs/tags/:src, please use
USE_GITHUB instead.
===> License BSD3CLAUSE accepted by the user
===> lapack-3.12.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lapack-3.12.1 for building
===> Extracting for lapack-3.12.1
=> SHA256 Checksum OK for lapack-3.12.1/v3.12.1.tar.gz.
=> SHA256 Checksum OK for lapack-3.12.1/manpages.tgz.
@thierry-FreeBSD
thierry-FreeBSD / poudrière_emulation_arm64.txt
Last active December 21, 2022 16:07
FreeBSD : create a poudriere jail to build packages by emulation for arm64-aarch64
# pkg install qemu-user-static
# binmiscctl add arm64-aarch64 \
--interpreter "/usr/local/bin/qemu-aarch64-static" \
--magic "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00" \
--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \
--size 20 --set-enabled
# service qemu_user_static onestart
(you can also add qemu_user_static_enable="YES" to your /etc/rc.conf )
# poudriere jail -c -j 13arm64 -a arm64.aarch64 -v 13.1-RELEASE
@thierry-FreeBSD
thierry-FreeBSD / patch-lib_util_mutil.ml
Created April 7, 2022 13:16
Fix compilation error on compare for geneweb 7.0.0
--- lib/util/mutil.ml.orig 2020-10-30 14:13:59 UTC
+++ lib/util/mutil.ml
@@ -536,7 +536,7 @@ let list_map_sort_uniq (fn : 'a -> 'b) l =
| [], l2 -> rev_append l2 accu
| l1, [] -> rev_append l1 accu
| h1::t1, h2::t2 ->
- let c = compare h1 h2 in
+ let c = Stdlib.compare h1 h2 in
if c = 0 then rev_merge t1 t2 (h1::accu)
else if c < 0
--- src/ppx_deriving_yojson_runtime.mli.orig 2020-11-07 23:40:55 UTC
+++ src/ppx_deriving_yojson_runtime.mli
@@ -1,4 +1,4 @@
-type 'a error_or = ('a, string) Result.result
+type 'a error_or = ('a, string) Result.t
val ( >>= ) : 'a error_or -> ('a -> 'b error_or) -> 'b error_or
val ( >|= ) : 'a error_or -> ('a -> 'b) -> 'b error_or
@@ -18,7 +18,7 @@ module Int64 : (module type of Int64)
module Nativeint : (module type of Nativeint)
--- wordcloud/query_integral_image.c.orig 2018-07-26 16:13:02 UTC
+++ wordcloud/query_integral_image.c
@@ -15445,7 +15445,9 @@ static PyTypeObject __pyx_type___pyx_array = {
sizeof(struct __pyx_array_obj), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_array, /*tp_dealloc*/
+#if PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
+#endif
0, /*tp_getattr*/
--- symcxx/_symcxx.cpp.orig 2018-07-02 12:52:18 UTC
+++ symcxx/_symcxx.cpp
@@ -48521,7 +48521,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx__Matri
sizeof(struct __pyx_obj_6symcxx_7_symcxx__Matrix), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_6symcxx_7_symcxx__Matrix, /*tp_dealloc*/
+#if PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
+#endif
0, /*tp_getattr*/
$ python3.8 -c 'import numpy; numpy.linalg.test()'
NumPy version 1.20.3
NumPy relaxed strides checking option: True
NumPy CPU features: SSE SSE2 SSE3 SSSE3* SSE41* POPCNT* SSE42* AVX* F16C* FMA3? AVX2? AVX512F? AVX512CD? AVX512_KNL? AVX512_SKX? AVX512_CLX? AVX512_CNL? AVX512_ICL?
s...............................................F.............................................................................................................................................................................................................. [ 83%]
.........................................x......... [100%]
============================================================================================================================== FAILURES =================================================================================
Extra tables GNU and Hurd build and install fine on FreeBSD, pinball finds them, but they cannot be loaded:
MenuSub::perform() load table
MenuSub::draw() load table
MenuSub::draw() load table
MenuSub::draw() load table
No current table name! (the first time is normal...)
SignalSender::clear()
loaded texture: /usr/local/share/pinball/gnu/tiles3.png
size 256 256
When Code_Aster has been compiled by Gcc and TFEL/MFront has been compiled by clang, we got a linker error:
$ gfortran9 -Wl,--allow-multiple-definition -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -Wl,--export-dynamic -fopenmp -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/lib64 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/lib64 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/li