Hi Vasi, I uploaded the static version. I did some checking of older version of the JAL compiler and I saw it was a static version before.
Not sure why the original Makefile did not have this option. Anyway it will be in the next bee-package. Compiler version is still the same btw. Kind regards, Rob ________________________________ Van: jallib@googlegroups.com <jallib@googlegroups.com> namens vasi vasi <funl...@gmail.com> Verzonden: maandag 27 mei 2024 23:47 Aan: jallib@googlegroups.com <jallib@googlegroups.com> Onderwerp: Re: [jallib] Linux executable Many say that AppImage can be the solution on the long term.. I personally can't make it work... But I use some applications that come in AppImage format.... I think this is a way to provide dynamically compiled apps to any Linux, but you have to package all teh required libraries. If you forget one, it won't work. It will be the only working solution for a dynamic app that uses dynamic libraries like Qt... but jalv2 does not use such libraries and is easier to compile it statically. But of course, you can try AppImage and decide if is worth the effort. On Mon, May 27, 2024 at 8:25 PM Rob CJ <rob...@hotmail.com<mailto:rob...@hotmail.com>> wrote: Hi Vasi, I did the following test: -) Build the compiler without the static on my Ubuntu laptop on which I got the GLIBC problem. -) Ran that compiler on my Laptop running Virtual Box and Linux Mint. Got the GLIBC error -) Build the compiler with the static on my Ubuntu laptop on which I got the GLIBC problem. -) Ran that compiler on my Laptop running Virtual Box and Linux Mint. Did not get the GLIBC error Screenshot of both runs on my Linux Mint version: [cid:ii_18fbc0106b1cb971f161] So that seems to work nicely. One question though. Somebody suggested me to have a look at the Appimage format: https://docs.appimage.org/packaging-guide/index.html I did not look into that yet, but is that also an option? 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: zondag 26 mei 2024 15:07 Aan: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> Onderwerp: Re: [jallib] Linux executable This discussion or a similar subject was here some time ago... the compiler becomes an educational tool, when you write books about it, with examples and specific libraries and that book must remain relevant in time, with a compiler and projects still usable. As is possible in WIndows. In Linux, you get this with a statically linked compiler. This compiler does not use or need a dynamic loader. Ask Kyle if you don't get it. On Sun, May 26, 2024 at 3:52 PM vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> wrote: Sorry Rob, that really is not our problem. We do not statlically ling glibc. We statically link our executable that do NOT use any shared lib, so it does not need a dynamic loader. Is that simple. Statically linking you app (where is possible) gives you the freedom to run on ANY Linux distribution, old or new. Again, nothing to do with glibc. And also, musl has absolutely nothing to do with glibc. Compiling it dynamically, it means it will... but I already explained you why you don't need to create such vulnerability in Linux. On Sun, May 26, 2024 at 11:10 AM Rob CJ <rob...@hotmail.com<mailto:rob...@hotmail.com>> wrote: 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<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto:jallib@googlegroups.com>> namens vasi vasi <funl...@gmail.com<mailto:funl...@gmail.com>> Verzonden: zondag 26 mei 2024 03:13 Aan: jallib@googlegroups.com<mailto:jallib@googlegroups.com> <jallib@googlegroups.com<mailto: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<mailto: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<https://groups.google.com/d/msgid/jallib/GVXP195MB1637AD1F43A4607D2451962EE6F72%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>. -- 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%3D9N0-UR0ZvZi-9%3D%3DFZCfOGLg2jOFKoWWW9k3N4CYGPGwQ%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CABsDq%3D9N0-UR0ZvZi-9%3D%3DFZCfOGLg2jOFKoWWW9k3N4CYGPGwQ%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/GVXP195MB163709469ED0ECC4F2F748A2E6F02%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB163709469ED0ECC4F2F748A2E6F02%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_HrUMLRcO-v_ZM3bWALeW0fSiN4ON9%3D7rzz1OFytrtjQ%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CABsDq%3D_HrUMLRcO-v_ZM3bWALeW0fSiN4ON9%3D7rzz1OFytrtjQ%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/GVXP195MB1637C4441D185B7A7154BDF6E6F32%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.