Greetings, after being able to build BRLCAD without "-DBRLCAD_BUNDLED_LIBS=ON" option, both Archer and Mged crash.
This is the output from Mged while using GDB:
gdb bin/mged
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc64le-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bin/mged...
(gdb) run
Starting program: /home/yamira/software/brlcad-7.32.2/build/bin/mged
warning: Could not load shared library symbols for linux-vdso64.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x3fffe7685070 (LWP 17504)]
[New Thread 0x3fffe6d43070 (LWP 17505)]
[New Thread 0x3fffe6542070 (LWP 17506)]
[New Thread 0x3fffe5d41070 (LWP 17507)]
[New Thread 0x3fffe5540070 (LWP 17508)]
[New Thread 0x3fffe4d3f070 (LWP 17509)]
[New Thread 0x3fffcffff070 (LWP 17510)]
[New Thread 0x3fffcf7fe070 (LWP 17511)]
[New Thread 0x3fffceffd070 (LWP 17512)]
[New Thread 0x3fffce7fc070 (LWP 17513)]
[New Thread 0x3fffcdffb070 (LWP 17514)]
[New Thread 0x3fffcd7fa070 (LWP 17515)]
[New Thread 0x3fffccff9070 (LWP 17516)]
[New Thread 0x3fffaffff070 (LWP 17517)]
[New Thread 0x3fffaf7fe070 (LWP 17518)]
[New Thread 0x3fffaeffd070 (LWP 17519)]
[New Thread 0x3fffae7fc070 (LWP 17520)]
[New Thread 0x3fffadffb070 (LWP 17521)]
[New Thread 0x3fffad7fa070 (LWP 17522)]
[New Thread 0x3fffacff9070 (LWP 17523)]
[New Thread 0x3fff8ffff070 (LWP 17525)]
[New Thread 0x3fff8f7fe070 (LWP 17526)]
[New Thread 0x3fff8effd070 (LWP 17527)]
[New Thread 0x3fff8e7fc070 (LWP 17528)]
[New Thread 0x3fff8dffb070 (LWP 17529)]
[New Thread 0x3fff8d7fa070 (LWP 17530)]
[New Thread 0x3fff8cff9070 (LWP 17531)]
[New Thread 0x3fff6ffff070 (LWP 17532)]
[New Thread 0x3fff6f7fe070 (LWP 17533)]
[New Thread 0x3fff6effd070 (LWP 17534)]
[New Thread 0x3fff6e7fc070 (LWP 17535)]
[New Thread 0x3fff6dffb070 (LWP 17536)]
[New Thread 0x3fff6d7fa070 (LWP 17537)]
[New Thread 0x3fff6cff9070 (LWP 17538)]
[New Thread 0x3fff4ffff070 (LWP 17539)]
[New Thread 0x3fff4f7fe070 (LWP 17540)]
[New Thread 0x3fff4effd070 (LWP 17541)]
[New Thread 0x3fff4e7fc070 (LWP 17542)]
[New Thread 0x3fff4dffb070 (LWP 17543)]
[New Thread 0x3fff4d7fa070 (LWP 17544)]
Thread 1 "mged" received signal SIGSEGV, Segmentation fault.
--Type <RET> for more, q to quit, c to continue without paging--
0x00003fffeff09b54 in glGetIntegerv () from /usr/lib/libGLX_mesa.so.0
(gdb) quit
A debugging session is active.
Inferior 1 [process 17499] will be killed.
Regarding Archer, the output is different:
gdb bin/archer
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc64le-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bin/archer...
(gdb) run
Starting program: /home/yamira/software/brlcad-7.32.2/build/bin/archer
warning: Could not load shared library symbols for linux-vdso64.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x3fffef90c070 (LWP 17592)]
invalid command name "::hv3::formmanager"
Unexpected error encountered while running Archer.
Aborting.
[Thread 0x3fffef90c070 (LWP 17592) exited]
[Inferior 1 (process 17589) exited with code 01]
Thank you for this report. Can you tell what your operating system and hardware is? Also, it would help if you ran "b exit" and "bt" so we can see the full backtrace where they are halting. At a glance, archer and mged appear to be failing for completely different reasons.
One workaround is to disable opengl (-DBRLCAD_ENABLE_OPENGL=OFF) which should make mged work, but will disable archer completely.
My apologies for my ignorance:
Operating system: Void GNU Linux
CPU: POWER9 ppc64le
GPU: AMD Vega 64
Motherboard: Talos II Lite (https://www.raptorcs.com/content/TL1MB1/intro.html)
regarding "bt" and "b exit " on mged:
regarding "bt" and "b exit " on Archer:
I can confirm I can run Mged by disabling OpenGL.
Tell me if you need more info, I will gladly provide it.
That's perfect for mged, thank you! For archer, you have to run "b exit" first, then "run", then "bt". You may need to run "b exit_" alternatively.
Ok, this is the output, you can tell that I don't know what I'm doing :P
I have to go so my next reply might be way later. I will be online as soon as I can.
thats my mistake, I meant "b _exit"...
Sorry for the delay:
You set the breakpoint correctly with "b _exit" but then needed to run "bt" to get the backtrace.
Can you see if "bwish" runs? Should just pop open a simple window.
And seems BWISH runs without issues
One detail, I see that you have not installed... on your hardware, installation may be necessary.
You are on a hardware configuration that we've not tested the GUI on ourselves before. Both the OpenGL/Mesa issue affecting MGED and the hv3/tk8.6 issue affecting Archer appear to be likely related. Since you have a solution for MGED (i.e., X11-only), it may be best to focus on what's going wrong with Archer. Have you tried compiling against a system-installed tcl/tk 8.6 instead of bundled libs?
Greetings, after realizing I didn't have tcl's dev packages installed, I proceeded in installing them and now I cannot compile it and the following error appears
If I build it with the bundled libs, another compilation error appears:
Thank you a lof for your help
Hi Draena, so this is complex because each change you make or try involves a whole chain of events that have different requirements and things to check. When you installed new system libraries, did you rebuild completely fresh? You will want to delete your build directory every time you change what's installed on your system.
The first error (default build) appears to be some incompatibility between Itk and (presumably) your system IncrTcl. What (if any) version of IncrTcl do you have installed on your system?
For the second error (bundled build), that seems to be this issue: https://gitlab.kitware.com/paraview/paraview/-/issues/18176
Greetings Sean, I made sure I deleted the build directories after doing any changes, the error messages are the same.
Regarding tcl, I have 8.6.11 installed on my system.