Re: [Emc-developers] Fw: RTAI Package Building Failure
On Tue, 24 Oct 2023 at 23:46, Alec Ari via Emc-developers wrote: > mv debian/linuxcnc/usr/share/doc/linuxcnc/examples > debian/linuxcnc/usr/share/doc/linuxcnc > mv: cannot stat 'debian/linuxcnc/usr/share/doc/linuxcnc/examples': No such > file or directory I found that, though not the "why" it's https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L88 I think that the @MAIN_PACKAGE_NAME@ needs to be "/tmp", at least for the RTAI build. (no idea why, though) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
I am seeing something very strange, there are two files (Master_Documentation and drivers/mb2hal) that keep failing with: make[2]: *** No rule to make target 'depends/drivers/mb2hal.d', needed by 'Makefile'. Stop. make[2]: Leaving directory '/home/andypugh/linuxcnc-dev/src' make[1]: *** [debian/rules:55: override_dh_auto_build-arch] Error 2 And, sure enough, the files don't exist: These files also fail in every language directory too. But always the same two files. andypugh@rm-one:~/linuxcnc-dev$ ls -l src/depends/ drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 code drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 common drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 config drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 drivers drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 examples drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 gcode drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 getting-started drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 gui drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 hal drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 install drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 integrator drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 ladder drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 lathe drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 man1 drwxr-xr-x 2 andypugh andypugh 12288 Oct 25 00:21 man3 drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 man9 -rw-r--r-- 1 andypugh andypugh 1883 Oct 25 00:21 Master_Developer.d -rw-r--r-- 1 andypugh andypugh 0 Oct 25 00:21 Master_Documentation.d.tmp -rw-r--r-- 1 andypugh andypugh 1528 Oct 25 00:21 Master_Getting_Started.d -rw-r--r-- 1 andypugh andypugh 875 Oct 25 00:21 Master_Integrator.d drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 motion drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 plasma drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 remap drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 tooldatabase drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 user There is a tmp file which isn't getting renamed (but it's also a zero-bytes zombie) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
I haven't been following the docs issue too closely but this is all dead code from what I gather: debian/configure: while test $# -ne 0; do case "$1" in noauto) BUILD_AUTO=false ;; rtai) BUILD_RTAI=true ;; rtai=*) BUILD_RTAI=true; RTAI_DEV=${1#rtai=} ;; xenomai) BUILD_XENOMAI=true ;; no-docs) unset ENABLE_BUILD_DOCUMENTATION ;; *) echo 1>&2 "Unknown feature: $1"; exit 99 ;; esac shift done So I made this patch: https://github.com/NTULINUX/linuxcnc-rtai-gnu11/commit/aadd9b81ee03b5054774df8ee55fffa6f91381ca Now when I run: ./debian/configure -r nodocs Docs don't get built but the build still fails to due examples missing: # `.../doc/linuxcnc`) because that's where the # `linuxcnc` launcher script looks for them, and that's # inconvenient to change. dh_installdocs --doc-main-package=linuxcnc --package=linuxcnc install -m0755 -d debian/linuxcnc/usr/share/doc/linuxcnc install -p -m0644 debian/copyright debian/linuxcnc/usr/share/doc/linuxcnc/copyright mkdir -p debian/linuxcnc/usr/share/doc/linuxcnc mv debian/linuxcnc/usr/share/doc/linuxcnc/examples debian/linuxcnc/usr/share/doc/linuxcnc mv: cannot stat 'debian/linuxcnc/usr/share/doc/linuxcnc/examples': No such file or directory make[1]: *** [debian/rules:88: override_dh_installdocs-arch] Error 1 make[1]: Leaving directory '/home/ntu/linuxcnc-rtai-gnu11' make: *** [debian/rules:43: binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
On Tue, 24 Oct 2023 at 01:41, Rod Webster wrote: > > > Still can't build a package, the system really does seem to be > > impossible to persuade to not build docs > > Steffan put a PR forward to enable this the debian way > https://github.com/LinuxCNC/linuxcnc/pull/2647 I can try it, but I am not sure that it will work. It will (I think) only affect override_dh_auto_build-indep: https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L57 But I think it still runs override_dh_installdocs-arch: https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L81 And here are un-switched docs-related actions also in: override_dh_auto_install-indep: override_dh_installdocs-indep: And even with these commented out, the system _still_ fails, complaining about missing docs packages files. It _really_ doesn't want to make debs without docs. Now, maybe I can change this with parameters to the dpkg-buildpackage command. -uc is right (sign after building) but possibly -T is relevant? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
Updated results: Runtest: 259 tests run, 256 successful, 3 failed + 0 expected, 1 skipped Failed: /home/ntu/linuxcnc/tests/pyhal /home/ntu/linuxcnc/tests/realtime-math /home/ntu/linuxcnc/tests/symbols.0 realtime-math failed only because: + set -xe + halcompile --install rtmath.comp + halrun dotest.hal halrun: Realtime already running. Use 'halrun -U' to stop existing realtime session. I'm going to take a wild guess and say it's because the test before it, pyhal failed and LinuxCNC didn't clean it up properly so I manually invoked it: halcompile --install tests/realtime-math/rtmath.comp halrun tests/realtime-math/dotest.hal cat tests/realtime-math/result: make KBUILD_EXTRA_SYMBOLS=/home/ntu/linuxcnc/rtlib/Module.symvers -C /lib/modules/5.4.258-rtai-amd64/build M=/tmp/tmpulx4m1mf CC=gcc V=0 modules make[1]: Entering directory '/usr/src/linux-headers-5.4.258-rtai-amd64' CC [M] /tmp/tmpulx4m1mf/rtmath.o Building modules, stage 2. MODPOST 1 modules CC [M] /tmp/tmpulx4m1mf/rtmath.mod.o LD [M] /tmp/tmpulx4m1mf/rtmath.ko make[1]: Leaving directory '/usr/src/linux-headers-5.4.258-rtai-amd64' cp rtmath.ko /home/ntu/linuxcnc/rtlib/ Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
He shoots HE SCORES!!! SUBDIRS was being used again when it shouldn't be, I didn't remove all the instances I guess. M= is the way to go, and I fixed the tests. Commit: https://github.com/NTULINUX/linuxcnc-rtai-gnu11/commit/867ac21bfa2138988d1fd800126be23cb3d4cb60 CHEERS! Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
Error for personalities_mod: cat /home/ntu/linuxcnc/tests/halcompile/personalities_mod/stderr + set -e + halcompile --personalities=2 --install lincurve_test.comp mkdir: cannot create directory '.tmp_41640': Permission denied blah blah blah mkdir: cannot create directory ‘.tmp_41846’: Permission denied scripts/kconfig/conf.c:700:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied 700 | } | ^ compilation terminated. make[3]: *** [scripts/Makefile.host:124: scripts/kconfig/conf.o] Error 1 make[2]: *** [Makefile:597: syncconfig] Error 2 make[1]: *** [Makefile:703: include/config/auto.conf.cmd] Error 2 make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/config/tristate.conf' make[1]: unlink: include/config/tristate.conf: Permission denied make: *** [/home/ntu/linuxcnc/src/Makefile.modinc:92: modules] Error 2 Error for rtapi-app-main-fails: cat /home/ntu/linuxcnc/tests/module-loading/rtapi-app-main-fails/stderr + halcompile --install rtapi_app_main_fails.comp mkdir: cannot create directory '.tmp_71498': Permission denied blah blah blah mkdir: cannot create directory ‘.tmp_71704’: Permission denied scripts/kconfig/conf.c:700:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied 700 | } | ^ compilation terminated. make[3]: *** [scripts/Makefile.host:124: scripts/kconfig/conf.o] Error 1 make[2]: *** [Makefile:597: syncconfig] Error 2 make[1]: *** [Makefile:703: include/config/auto.conf.cmd] Error 2 make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/config/tristate.conf' make[1]: unlink: include/config/tristate.conf: Permission denied make: *** [/home/ntu/linuxcnc/src/Makefile.modinc:92: modules] Error 2 + halrun -v setup.hal setup.hal:1: Can't find module 'rtapi_app_main_fails' in /home/ntu/linuxcnc/rtlib + RETVAL=1 + '[' 1 -eq 0 ']' + echo 'the module failed to load, just like it should' + exit 0 Same kind of error for realtime-math: cat /home/ntu/linuxcnc/tests/realtime-math/stderr + set -xe + halcompile --install rtmath.comp mkdir: cannot create directory '.tmp_76537': Permission denied blah blah blah mkdir: cannot create directory ‘.tmp_76743’: Permission denied scripts/kconfig/conf.c:700:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied 700 | } | ^ compilation terminated. make[3]: *** [scripts/Makefile.host:124: scripts/kconfig/conf.o] Error 1 make[2]: *** [Makefile:597: syncconfig] Error 2 make[1]: *** [Makefile:703: include/config/auto.conf.cmd] Error 2 make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/config/tristate.conf' make[1]: unlink: include/config/tristate.conf: Permission denied make: *** [/home/ntu/linuxcnc/src/Makefile.modinc:92: modules] Error 2 Final result: Running test: /home/ntu/linuxcnc/tests/uspace/spawnv-root Runtest: 260 tests run, 250 successful, 10 failed + 0 expected, 1 skipped Failed: /home/ntu/linuxcnc/tests/halcompile/personalities_mod /home/ntu/linuxcnc/tests/halcompile/relative-header /home/ntu/linuxcnc/tests/halcompile/serial-out-of-tree /home/ntu/linuxcnc/tests/lowlevel/mutex /home/ntu/linuxcnc/tests/module-loading/rtapi-app-main-fails /home/ntu/linuxcnc/tests/pyhal /home/ntu/linuxcnc/tests/realtime-math /home/ntu/linuxcnc/tests/rtapi-shmem /home/ntu/linuxcnc/tests/symbols.0 /home/ntu/linuxcnc/tests/symbols.1 Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
> Still can't build a package, the system really does seem to be > impossible to persuade to not build docs Steffan put a PR forward to enable this the debian way https://github.com/LinuxCNC/linuxcnc/pull/2647 Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Tue, 24 Oct 2023 at 10:31, andy pugh wrote: > Alec: Do the tests pass with your run-in-place build, by the way? I am > getting some odd errors in the maths tests, but not ones that seem to > be related to maths. > They actually look like a permissions problem with the temp directory. > > Still can't build a package, the system really does seem to be > impossible to persuade to not build docs. I should probably have put > my efforts into fixing the doc build instead. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
Alec: Do the tests pass with your run-in-place build, by the way? I am getting some odd errors in the maths tests, but not ones that seem to be related to maths. They actually look like a permissions problem with the temp directory. Still can't build a package, the system really does seem to be impossible to persuade to not build docs. I should probably have put my efforts into fixing the doc build instead. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers