From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: The unshared changes give a problem with build after doing git pull on next Date: Tue, 06 Aug 2024 16:40:39 +0100 Message-ID: <2E52F538-68BC-48E5-8EF0-9407984B12F5@ipfire.org> In-Reply-To: <184670fa-843f-4d5d-b4c9-1885a995fad8@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7633038661804856564==" List-Id: --===============7633038661804856564== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, We should not touch the mount propagation of the host=E2=80=99s namespace. Instead, we should create our own mount namespace and that should be private. You can however try to see what happens when you add =E2=80=94-propagation=3D= slave to the first unshare command. I just installed the plain Ubuntu Server, installed git, checkout out the rep= ository, downloaded the toolchain and ran the build. -Michael > On 3 Aug 2024, at 12:22, Matthias Fischer w= rote: >=20 > On 03.08.2024 10:54, Michael Tremer wrote: >> Hello Matthias, >=20 > Hi Michael, >=20 > just looked through https://man7.org/linux/man-pages/man1/unshare.1.html > and ran 'findmnt -o+PROPAGATION' (see attachment). >=20 > I don't know if this could help but does this differ from your test > installation? >=20 > Best > Matthias >=20 >>> On 3 Aug 2024, at 08:47, Matthias Fischer = wrote: >>>=20 >>> Hi Michael, >>>=20 >>> [shortened some stuff] >>>=20 >>> ... >>>=20 >>>>>>>=20 >>>>>>> Being curious I tried to build 'next', but I always get the same erro= r: >>>>>>>=20 >>>>>>> ***SNIP*** >>>>>>> root(a)Devel64-1: /git/ipfire-2.x # ./make.sh build >>>>>>> Packaged toolchain compilation >>>>>>> Building IPFire >>>>>>> stage2 >>>>>>> Jul 26 13:32:59: Building stage2 unshare: cannot change >>>>>>> /git/ipfire-2.x/build_x86_64/proc filesystem propagation: Invalid arg= ument >>>=20 >>>>>> ... >>>=20 >>>> It looks like you can simply update the kernel staying on the same relea= se: >>>>=20 >>>> https://ubuntu.com/security/livepatch/docs/livepatch/reference/kernels >>>>=20 >>>> For 22.04 LTS, there is a Linux 6.8 image available. >>>>=20 >>>> Could you check that and confirm that it fixes the mount propagation pro= blem? >>>=20 >>> Done. >>>=20 >>> Current state is as follows: >>>=20 >>> ***SNIP*** >>> ... >>> root(a)Devel64-1: /git/ipfire-2.x # lsb_release -a >>> No LSB modules are available. >>> Distributor ID: Ubuntu >>> Description: Ubuntu 22.04.4 LTS >>> Release: 22.04 >>> Codename: jammy >>> ... >>> root(a)Devel64-1: /git/ipfire-2.x # uname -mrs >>> Linux 6.8.0-39-generic x86_64 >>> ... >>> ***SNAP*** >>>=20 >>> But when I try to build 'next' I get exactly the same error as >>> before: >>>=20 >>> ***SNIP*** >>> root(a)Devel64-1: /git/ipfire-2.x # ./make.sh build >>> Packaged toolchain compilation >>> Building IPFire >>> stage2 >>> Aug 2 21:21:15: Building stage2 unshare: cannot change >>> /git/ipfire-2.x/build_x86_64/proc filesystem propagation: Invalid argument >>=20 >> Ah, this is good information. So it is not the kernel, it rather is Ubuntu= handling something differently. >>=20 >> I will have a look at this and get back to you. >>=20 >>> ERROR: Downloading stage2 >>> [ FAIL ] >>> Check /git/ipfire-2.x/log_x86_64/_build.ipfire.log for errors if >>> applicable [ FAIL ] >>> ***SNAP*** >>>=20 >>> Being curious, I commented line line 633 in 'make.sh' >>> ("--mount-proc=3D${BUILD_DIR}/proc") =3D> Building starts but fails during >>> 'glib 2.77.0': >>>=20 >>> ***SNIP*** >>> ... >>> glib (2.77.0) >>> [ 1:14 ][0/1011] >>>=20 >>> [951/1374] Compiling C object gio/gio.p/gio-tool-tree.c.o >>> [952/1374] Linking target gio/gio >>> [953/1374] Compiling C object >>> gio/gio-querymodules.p/gio-querymodules.c.o >>> [954/1374] Linking target gio/gio-querymodules >>> [955/1374] Compiling C object gio/gresource.p/gresource-tool.c.o >>> [956/1374] Compiling C object >>> gio/glib-compile-schemas.p/.._subprojects_gvdb_gvdb_gvdb-reader.c.o >>> [957/1374] Linking target gio/gresource >>> [958/1374] Compiling C object >>> gio/glib-compile-schemas.p/.._subprojects_gvdb_gvdb_gvdb-builder.c.o >>> [959/1374] Compiling C object >>> gio/glib-compile-resources.p/.._subprojects_gvdb_gvdb_gvdb-reader.c.o >>> [960/1374] Compiling C object >>> gio/glib-compile-resources.p/.._subprojects_gvdb_gvdb_gvdb-builder.c.o >>> [961/1374] Compiling C object >>> gio/glib-compile-resources.p/glib-compile-resources.c.o >>> [962/1374] Linking target gio/glib-compile-resources >>> [963/1374] Compiling C object >>> gio/tests/modules/libtestmodulea.so.p/test-module-a.c.o >>> [964/1374] Compiling C object gio/gapplication.p/gapplication-tool.c.o >>> [965/1374] Compiling C object gio/gsettings.p/gsettings-tool.c.o >>> [966/1374] Linking target gio/tests/modules/libtestmodulea.so >>> [967/1374] Generating gio/tests/plugin-resources.c with a custom command >>> FAILED: gio/tests/plugin-resources.c >>> /usr/src/glib-2.77.0/builddir/gio/glib-compile-resources >>> --compiler=3Dgcc --target=3Dgio/tests/plugin-resources.c --sour >>> cedir=3D/usr/src/glib-2.77.0/gio/tests --internal --generate-source >>> --c-name _g_plugin ../gio/tests/test4.gresource.xml >>> /usr/src/glib-2.77.0/builddir/gio/glib-compile-resources: error >>> while loading shared libraries: libgio-2.0.so.0: can >>> not open shared object file: No such file or directory >>> [968/1374] Linking target gio/gapplication >>> [969/1374] Compiling C object >>> gio/glib-compile-schemas.p/glib-compile-schemas.c.o >>> [970/1374] Linking target gio/gsettings >>> [971/1374] Compiling C object >>> gio/tests/modules/libtestmoduleb.so.p/test-module-b.c.o >>> [972/1374] Compiling C object >>> gio/tests/gdbus-overflow.p/gdbus-overflow.c.o >>> [973/1374] Compiling C object gio/gdbus.p/gdbus-tool.c.o >>> [974/1374] Compiling C object >>> gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.so.= p/meson-gener >>> ated_.._objectmanager-gen.c.o >>> ninja: build stopped: subcommand failed. >>> make: *** [glib:75: /usr/src/log/glib-2.77.0] Error 1 >>> make: Leaving directory '/usr/src/lfs' >>>=20 >>> ERROR: Building glib >>> [ FAIL ] >>> Check /git/ipfire-2.x/log_x86_64/_build.ipfire.log for errors if >>> applicable [ FAIL ] >>> ***SNAP*** >>>=20 >>> Best >>> Matthias >>=20 --===============7633038661804856564== Content-Type: text/plain Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="devels-propagation.txt" MIME-Version: 1.0 77+977+977+9cm9vdEBEZXZlbDY0LTE6IC9naXQvaXBmaXJlLTIueCAjIGZpbmRtbnQgLW8rUFJP UEFHQVRJT04NClRBUkdFVCAgICAgICAgICAgICAgICAgICAgICAgICBTT1VSQ0UgICAgICBGU1RZ UEUgICAgICBPUFRJT05TICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBQUk9QQUdBVElPTg0KLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC9kZXYvc2Rh MSAgIGV4dDQgICAgICAgIHJ3LHJlbGF0aW1lLGVycm9ycz1yZW1vdW50LXJvICAgICAgICAgICAg ICAgICAgICAgICAgIHNoYXJlZA0K77+977+977+977+977+977+9L3N5cyAgICAgICAgICAgICAg ICAgICAgICAgICBzeXNmcyAgICAgICBzeXNmcyAgICAgICBydyxub3N1aWQsbm9kZXYsbm9leGVj LHJlbGF0aW1lICAgICAgICAgICAgICAgICAgICAgICBzaGFyZWQNCu+/ve+/ve+/vSDvv73vv73v v73vv73vv73vv70vc3lzL2tlcm5lbC9zZWN1cml0eSAgICAgICBzZWN1cml0eWZzICBzZWN1cml0 eWZzICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lICAgICAgICAgICAgICAgICAgICAg ICBzaGFyZWQNCu+/ve+/ve+/vSDvv73vv73vv73vv73vv73vv70vc3lzL2ZzL2Nncm91cCAgICAg ICAgICAgICBjZ3JvdXAyICAgICBjZ3JvdXAyICAgICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJl bGF0aW1lLG5zZGVsZWdhdGUsbWVtb3J5X3JlYyBzaGFyZWQNCu+/ve+/ve+/vSDvv73vv73vv73v v73vv73vv70vc3lzL2ZzL3BzdG9yZSAgICAgICAgICAgICBwc3RvcmUgICAgICBwc3RvcmUgICAg ICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lICAgICAgICAgICAgICAgICAgICAgICBz aGFyZWQNCu+/ve+/ve+/vSDvv73vv73vv73vv73vv73vv70vc3lzL2ZzL2JwZiAgICAgICAgICAg ICAgICBicGYgICAgICAgICBicGYgICAgICAgICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0 aW1lLG1vZGU9NzAwICAgICAgICAgICAgICBzaGFyZWQNCu+/ve+/ve+/vSDvv73vv73vv73vv73v v73vv70vc3lzL2tlcm5lbC9kZWJ1ZyAgICAgICAgICBkZWJ1Z2ZzICAgICBkZWJ1Z2ZzICAgICBy dyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lICAgICAgICAgICAgICAgICAgICAgICBzaGFy ZWQNCu+/ve+/ve+/vSDvv73vv73vv73vv73vv73vv70vc3lzL2tlcm5lbC90cmFjaW5nICAgICAg ICB0cmFjZWZzICAgICB0cmFjZWZzICAgICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1l ICAgICAgICAgICAgICAgICAgICAgICBzaGFyZWQNCu+/ve+/ve+/vSDvv73vv73vv73vv73vv73v v70vc3lzL2ZzL2Z1c2UvY29ubmVjdGlvbnMgICBmdXNlY3RsICAgICBmdXNlY3RsICAgICBydyxu b3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lICAgICAgICAgICAgICAgICAgICAgICBzaGFyZWQN Cu+/ve+/ve+/vSDvv73vv73vv73vv73vv73vv70vc3lzL2tlcm5lbC9jb25maWcgICAgICAgICBj b25maWdmcyAgICBjb25maWdmcyAgICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lICAg ICAgICAgICAgICAgICAgICAgICBzaGFyZWQNCu+/ve+/ve+/ve+/ve+/ve+/vS9wcm9jICAgICAg ICAgICAgICAgICAgICAgICAgcHJvYyAgICAgICAgcHJvYyAgICAgICAgcncsbm9zdWlkLG5vZGV2 LG5vZXhlYyxyZWxhdGltZSAgICAgICAgICAgICAgICAgICAgICAgc2hhcmVkDQrvv73vv73vv70g 77+977+977+977+977+977+9L3Byb2Mvc3lzL2ZzL2JpbmZtdF9taXNjICAgc3lzdGVtZC0xICAg YXV0b2ZzICAgICAgcncscmVsYXRpbWUsZmQ9MjkscGdycD0xLHRpbWVvdXQ9MCxtaW5wcm90bz01 LG1heHByb3Qgc2hhcmVkDQrvv73vv73vv70gICDvv73vv73vv73vv73vv73vv70vcHJvYy9zeXMv ZnMvYmluZm10X21pc2MgYmluZm10X21pc2MgYmluZm10X21pc2Mgcncsbm9zdWlkLG5vZGV2LG5v ZXhlYyxyZWxhdGltZSAgICAgICAgICAgICAgICAgICAgICAgc2hhcmVkDQrvv73vv73vv73vv73v v73vv70vZGV2ICAgICAgICAgICAgICAgICAgICAgICAgIHVkZXYgICAgICAgIGRldnRtcGZzICAg IHJ3LG5vc3VpZCxyZWxhdGltZSxzaXplPTgxMjA4NzJrLG5yX2lub2Rlcz0yMDMwMjE4LG1vIHNo YXJlZA0K77+977+977+9IO+/ve+/ve+/ve+/ve+/ve+/vS9kZXYvcHRzICAgICAgICAgICAgICAg ICAgIGRldnB0cyAgICAgIGRldnB0cyAgICAgIHJ3LG5vc3VpZCxub2V4ZWMscmVsYXRpbWUsZ2lk PTUsbW9kZT02MjAscHRteG1vZGU9MDAwIHNoYXJlZA0K77+977+977+9IO+/ve+/ve+/ve+/ve+/ ve+/vS9kZXYvc2htICAgICAgICAgICAgICAgICAgIHRtcGZzICAgICAgIHRtcGZzICAgICAgIHJ3 LG5vc3VpZCxub2Rldixpbm9kZTY0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYXJl ZA0K77+977+977+9IO+/ve+/ve+/ve+/ve+/ve+/vS9kZXYvbXF1ZXVlICAgICAgICAgICAgICAg IG1xdWV1ZSAgICAgIG1xdWV1ZSAgICAgIHJ3LG5vc3VpZCxub2Rldixub2V4ZWMscmVsYXRpbWUg ICAgICAgICAgICAgICAgICAgICAgIHNoYXJlZA0K77+977+977+9IO+/ve+/ve+/ve+/ve+/ve+/ vS9kZXYvaHVnZXBhZ2VzICAgICAgICAgICAgIGh1Z2V0bGJmcyAgIGh1Z2V0bGJmcyAgIHJ3LHJl bGF0aW1lLHBhZ2VzaXplPTJNICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYXJlZA0K 77+977+977+977+977+977+9L3J1biAgICAgICAgICAgICAgICAgICAgICAgICB0bXBmcyAgICAg ICB0bXBmcyAgICAgICBydyxub3N1aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lLHNpemU9MTYyODgy OGssbW9kZT03NSBzaGFyZWQNCiAg77+977+977+977+977+977+9L3J1bi9sb2NrICAgICAgICAg ICAgICAgICAgdG1wZnMgICAgICAgdG1wZnMgICAgICAgcncsbm9zdWlkLG5vZGV2LG5vZXhlYyxy ZWxhdGltZSxzaXplPTUxMjBrLGlub2RlNjQgICAgc2hhcmVkDQogIO+/ve+/ve+/ve+/ve+/ve+/ vS9ydW4vY3JlZGVudGlhbHMvc3lzdGVtZC1zeXN1c2Vycy5zZXJ2aWNlDQogIO+/ve+/ve+/vSAg ICAgICAgICAgICAgICAgICAgICAgICAgICByYW1mcyAgICAgICByYW1mcyAgICAgICBybyxub3N1 aWQsbm9kZXYsbm9leGVjLHJlbGF0aW1lLG1vZGU9NzAwICAgICAgICAgICAgICBzaGFyZWQNCiAg 77+977+977+977+977+977+9L3J1bi91c2VyLzAgICAgICAgICAgICAgICAgdG1wZnMgICAgICAg dG1wZnMgICAgICAgcncsbm9zdWlkLG5vZGV2LHJlbGF0aW1lLHNpemU9MTYyODgyNGssbnJfaW5v ZGVzPTQwNzIgc2hhcmVkDQo= --===============7633038661804856564==--