Hi Vasi, Thanks for the info.
I made an error before and adding static works. The size of the compiler is then more than doubled to about 1.2 Mbyte and it still works OK. I will do a test on another computer where I got issues with the GLIBC to see if that is gone. But I also read that it is not recommeded to do this, see: https://stackoverflow.com/questions/57476533/why-is-statically-linking-glibc-discouraged So it looks that one problem might then be replaced by another problem. Are there any other JAL users that have problems with the Linux version of jalv2? "If it ain't broken don't fix it" 🙂 Kind regards, Rob ________________________________ Van: jallib@googlegroups.com <jallib@googlegroups.com> namens vasi vasi <funl...@gmail.com> Verzonden: zondag 26 mei 2024 03:13 Aan: jallib@googlegroups.com <jallib@googlegroups.com> Onderwerp: Re: [jallib] Linux executable You can check with the following command if you executable is static: $=> ldd jalv2-native And you must get the following message: not a dynamic executable Or, you can install MIdnight Commander (it looks like Norton COmmander from MS-DOS) with sudo apt install mc then run it, navigate to the jalv2 executable, position the bas/cursor over it and press F3 button. After a red dialog that announces you that there are no symbols, press enter and you will get a window with details about the executable. You get more info than using just the ldd command. On Sun, May 26, 2024 at 4:00 AM vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> wrote: this is the Makefile.inc I used On Sun, May 26, 2024 at 3:50 AM vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> wrote: Using musl-gcc, with -Werror and -fPIC removed and adding -static to LFLAGS, I get a size of 530272 bytes, statically linked and striped. LinuxMint LMDE 6 here. musl library is a very small library compared to glibc. On Sun, May 26, 2024 at 3:34 AM vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> wrote: I never heard that you are not allowed to create static executables!! Any linux provide also a set of static libraries. Only certain libraries are dynamic and these days, you do not get a static version of glibc. So, don't worry, you can compile jalv2 statically, it won't include glibc. You don't need musl, I will look into it, but it is not needed. On Thu, May 23, 2024 at 10:51 PM Rob CJ <rob...@hotmail.com<mailto:rob...@hotmail.com>> wrote: Hi Vasi, I tried this: * sudo apt -y install musl-tools * Added: -static in the Makefile.inc to the linker flag * Changed (as a hack): $(CC) by musl-gcc Compiled the compiler but the size is exactly the same with and without the -static option. I would expect the file to be bigger for the static version. Any suggestions? Kind regards, Rob ________________________________ Van: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> namens Rob CJ <rob...@hotmail.com<mailto:rob...@hotmail.com>> Verzonden: donderdag 23 mei 2024 19:32 Aan: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> Onderwerp: Re: [jallib] Linux executable Hi Vasi, I am no Linux expert (always using Windows) and I had a quick look on the internet and I read that you are not allowed to statically link GLIBC due to licensing. I saw some info about musl but no clue (yet) what to do. Any hints would help. Thanks. Kind regards, Rob ________________________________ Van: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> namens vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> Verzonden: woensdag 22 mei 2024 19:43 Aan: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> Onderwerp: Re: [jallib] Linux executable Hi Rob, No problems for me because I recompiled it to be statically linked. On Wed, May 22, 2024 at 8:01 PM Rob CJ <rob...@hotmail.com<mailto:rob...@hotmail.com>> wrote: Hi Vasi, I had problems with GLIBC version 2.29. In order to solve that I recompiled the JAL compiler with an older version of gcc and that solved that issue. I can have a look a linking it statically. Are you - or other JAL users - experiencing problems with the current version (2.5r8) of the JAL compiler? Kind regards, Rob ________________________________ Van: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> namens vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> Verzonden: woensdag 22 mei 2024 13:38 Aan: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> Onderwerp: [jallib] Linux executable Hi Rob, I see you provide executables for linux that are dynamically linked... A statically linked executable can work on both glibc and musl based distributions (Alpine and Void linux as two main examples as musl platforms) no matter on which platform this was compiled (be it glibc or musl), and it can also work on much older linux distros. It will help also with old projects that require a specific version of jalv2 compiler. Right now, a static link edit is possible only by modifying the Makefiles at source level. I have a lot of old applications dynamically linked that do not work on today's computers and operating systems. Is not only that many are written in an old standard, not supported by the compiler, but in many cases, even the GUI libraries are not available anymore. And jalv2 can be linked statically. Maybe you don't know, but there are "recent" changes in GLIBC that will prevent shared programs to work on linux distributions that have GLIBC at a lower version than 2.34 (don't know if is the case of the jalv2 compiler though). I think is in Jalv2 interest to avoid this vulnerability of Linux/UNIX world. -- Vasi -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/CABsDq%3D9%3D%3DPqrr7ffPaVDg3qSYTiwQKKhbroLpWucDDNjb9XrVA%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CABsDq%3D9%3D%3DPqrr7ffPaVDg3qSYTiwQKKhbroLpWucDDNjb9XrVA%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB16373F60F98E826FCC3DA47AE6EB2%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB16373F60F98E826FCC3DA47AE6EB2%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>. -- Vasi -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/CABsDq%3D-nUyCPhH2a%2B3xgLg9U-O-WX3qXi5rhgY4pVemaF3AG6w%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CABsDq%3D-nUyCPhH2a%2B3xgLg9U-O-WX3qXi5rhgY4pVemaF3AG6w%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB16374EF7B6C5195047F9FE5DE6F42%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB16374EF7B6C5195047F9FE5DE6F42%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB1637505145320A13F3399B55E6F42%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB1637505145320A13F3399B55E6F42%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>. -- Vasi -- Vasi -- Vasi -- Vasi -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com<mailto:jallib+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/CABsDq%3D-rWNG98bOZN_58%3DPVTtKidm_hxdXsPQO-h_XV3Rw39uQ%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CABsDq%3D-rWNG98bOZN_58%3DPVTtKidm_hxdXsPQO-h_XV3Rw39uQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB1637AD1F43A4607D2451962EE6F72%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.