Hi Stefan, Hi KiCad users,

Tanks for testing. I was able to trace the error down to our libcxxabi.
Something is wrong here. If you want/have to work with kicad 8.0.4, here
is a workaround:

$ cd /usr/src && patch -p1 -E < ~/patches/libcxxabi.diff
$ cd gnu/lib/libcxxabi && make clean && make && doas make install

diff --git a/gnu/lib/libcxxabi/Makefile b/gnu/lib/libcxxabi/Makefile
index 81673e86a2b..692ab7cc72e 100644
--- a/gnu/lib/libcxxabi/Makefile
+++ b/gnu/lib/libcxxabi/Makefile
@@ -54,6 +54,7 @@ CPPFLAGS+=    -Wall -I${SHDRDIR} -I${HDRDIR} -I${UHDRDIR} \
 CPPFLAGS+=     -D_LIBUNWIND_IS_NATIVE_ONLY
 CPPFLAGS+=     -D_LIBCXXABI_BUILDING_LIBRARY
 CPPFLAGS+=     -D_LIBCPP_BUILDING_LIBRARY
+CPPFLAGS+=     -D_LIBCXXABI_FORGIVING_DYNAMIC_CAST
 CPPFLAGS+=     -DNDEBUG
 CFLAGS+=       -nostdlib -funwind-tables
 CXXFLAGS+=     -nostdlib -nostdinc++ -funwind-tables

In the end i suspect we don't want this in base.

The full journey you can read here:
https://gitlab.com/kicad/code/kicad/-/issues/18621

Rafael


On Sun Aug 18, 2024 at 09:52:59PM GMT, Stefan Hagen wrote:
> Rafael Sadowski wrote (2024-08-15 07:52 CEST):
> > Please find below a kicad 8.0.4 update diff (inline) and attached
> > kicad-share.diff (which is simple an make update-plist diff).
> > 
> > Here are some customisations and I would like to explain them:
> > 
> > - Enable i18n translation by default.
> > - Remove Git dependency to build it
> > - Set NANODBC_ENABLE_UNICODE to unbreak the build (conflicts with system
> >   libs)
> > - Remove CMAKE_BUILD_TYPE=Release, it's our default target.
> > - Disable auto updates for kicad
> > 
> > - When you open a project, the message ‘Configuration Global Footprint
> >   Library Table’ is shown with 3 options. The default recommended option
> >   leads in crashes in my tests.
> > 
> >   Creating an empty global fingerprint footprint table works properly,
> >   so I decided to chance option recommendations. (See
> >   patch-common_dialogs_dialog_global_lib_table_config_cpp)
> > 
> > I played a little bit with the system templates.
> > 
> > OK to update kicad?
> 
> Hi Rafael,
> 
> Importing settings from an older kicad version leads to crashes. I had
> to rm -rf .config/kicad .local/share/kicad after that to be able to open
> the pcb editor on a demo project.
> 
> However, clicking around there makes it crash again and it doesn't recover 
> when started again.
> 
> To reproduce:
> 1. Open the first demo project (complex hierarchy)
> 2. Open the schematic editor by clicking on the pcb file
> 3. Choose empty global fingerprint footprint table as recommended
> 4. Open the footprint editor from the schematic editor
> 
> Video: https://ptrace.org/kicad_trial.mp4
> 
> I didn't look at the changes, but I noticed that a build log file
> snuck into the diff:
> 
> > diff --git a/cad/kicad-share/packages3D/_ok_configure.pbh 
> > b/cad/kicad-share/packages3D/_ok_configure.pbh
> > new file mode 100644
> > index 00000000000..bd6da5b8a4a
> > --- /dev/null
> > +++ b/cad/kicad-share/packages3D/_ok_configure.pbh
> > @@ -0,0 +1,13 @@
> > +===> Building from scratch kicad-packages3D-8.0.4
> > +===> kicad-packages3D-8.0.4 depends on: cmake-* -> cmake-3.30.1v1
> > +===> kicad-packages3D-8.0.4 depends on: ninja-* -> ninja-1.11.1p0v0
> > +===> kicad-packages3D-8.0.4 depends on: bzip2-* -> bzip2-1.0.8p0
> > +===>  Checking files for kicad-packages3D-8.0.4
> > +`/usr/ports/distfiles/kicad-packages3D-8.0.4.tar.bz2' is up to date.
> > +>> (SHA256) kicad-packages3D-8.0.4.tar.bz2: OK
> > +===>  Extracting for kicad-packages3D-8.0.4
> > +
> > +Signal caught, cleaning up.
> > +*** Signal SIGINT in . (do-extract)
> > +*** Signal SIGINT in . 
> > (/usr/ports/pobj/kicad-packages3D-8.0.4/.extract_done)
> > +*** Error 1 in /home/rsadowski/wip-ports/cad/kicad-share/packages3D 
> > (/usr/ports/infrastructure/mk/bsd.port.mk:2704 'configure': @lock=kicad-...)
> 
> Best regards,
> Stefan
> 

Reply via email to