tau-OS / libhelium

The Application Framework for tauOS apps
https://docs.developers.tauos.co/libhelium/libhelium-1
GNU Lesser General Public License v3.0
17 stars 3 forks source link

ninja install fails with `error: unable to open `_build/lib/libhelium-1.so.1.p/Models/Application.c' for writing` #35

Closed leinardi closed 1 year ago

leinardi commented 1 year ago

What Happened?

The step ninja -v -C _build install of the installation fails with the following error on Ubuntu 22.04.

Steps to Reproduce

On Ubuntu 22.04:

clone --branch 1.5.19 https://github.com/tau-OS/libhelium.git
cd libhelium || return $?
meson _build --prefix=/usr
ninja -v -C _build install

Expected Behavior

The library is installed on the system.

OS Version

Other Linux

Software Version

Latest release (I have run all updates)

Log Output

$ ninja -v -C _build install
ninja: Entering directory `_build'
[1/102] /usr/bin/glib-compile-resources ../data/he.gresource.xml --sourcedir ../data --sourcedir ../ --internal --generate --target he-gresource.h
[2/102] /usr/bin/glib-compile-resources ../data/he.gresource.xml --sourcedir ../data --sourcedir ../ --internal --generate --target he-gresource.c --dependency-file he-gresource.c.d
[3/102] valac -C --debug --debug --define=LINUX --abi-stability --target-glib=2.50 --gresourcesdir /home/rleinardi/Workspace/Misc/libhelium/_build/demo/data --pkg posix --pkg gtk4 --pkg gee-0.8 --pkg gobject-2.0 --target-glib 2.50 --pkg glib-2.0 --pkg gio-unix-2.0 --pkg gio-2.0 --color=always --directory lib/libhelium-1.so.1.p --basedir ../lib --library libhelium-1 --header lib/libhelium-1.h --vapi ../libhelium-1.vapi --gir ../He-1.gir --gresources=../data/gresource.xml --gresources=../data/he.gresource.xml ../lib/Models/Application.vala ../lib/Models/Bin.vala ../lib/Models/Button.vala ../lib/Models/ButtonContent.vala ../lib/Models/Colors.vala ../lib/Models/Schemes/Content.vala ../lib/Models/Schemes/Default.vala ../lib/Models/Schemes/Monochrome.vala ../lib/Models/Schemes/Muted.vala ../lib/Models/Schemes/Scheme.vala ../lib/Models/Schemes/Vibrant.vala ../lib/Models/View.vala ../lib/Models/Window.vala ../lib/Utils/Color.vala ../lib/Utils/Color/ARGB.vala ../lib/Utils/Color/CAM16.vala ../lib/Utils/Color/GdkRGBA.vala ../lib/Utils/Color/HCT/CriticalPlanes.vala ../lib/Utils/Color/HCT/HCT.vala ../lib/Utils/Color/HCT/HCTSolver.vala ../lib/Utils/Color/Hexcode.vala ../lib/Utils/Color/LAB.vala ../lib/Utils/Color/LCH.vala ../lib/Utils/Color/RGB.vala ../lib/Utils/Color/XYZ.vala ../lib/Utils/Desktop.vala ../lib/Utils/Ensor/Ensor.vala ../lib/Utils/Ensor/Quantize/Quantizer.vala ../lib/Utils/Ensor/Quantize/QuantizerCelebi.vala ../lib/Utils/Ensor/Quantize/QuantizerMap.vala ../lib/Utils/Ensor/Quantize/QuantizerResult.vala ../lib/Utils/Ensor/Quantize/QuantizerWsmeans.vala ../lib/Utils/Ensor/Quantize/QuantizerWu.vala ../lib/Utils/Ensor/Score.vala ../lib/Utils/Math.vala ../lib/Utils/Misc.vala ../lib/Utils/Portal.vala ../lib/Utils/ViewingConditions.vala ../lib/Widgets/AboutWindow.vala ../lib/Widgets/AppBar.vala ../lib/Widgets/ApplicationWindow.vala ../lib/Widgets/Avatar.vala ../lib/Widgets/Badge.vala ../lib/Widgets/Banner.vala ../lib/Widgets/BottomBar.vala ../lib/Widgets/Chip.vala ../lib/Widgets/ChipGroup.vala ../lib/Widgets/ContentBlock.vala ../lib/Widgets/ContentBlockImage.vala ../lib/Widgets/ContentBlockImageCluster.vala ../lib/Widgets/ContentList.vala ../lib/Widgets/DatePicker.vala ../lib/Widgets/Dialog.vala ../lib/Widgets/DisclosureButton.vala ../lib/Widgets/EmptyPage.vala ../lib/Widgets/FillButton.vala ../lib/Widgets/IconicButton.vala ../lib/Widgets/MiniContentBlock.vala ../lib/Widgets/ModifierBadge.vala ../lib/Widgets/NavigationRail.vala ../lib/Widgets/OutlineButton.vala ../lib/Widgets/OverlayButton.vala ../lib/Widgets/PillButton.vala ../lib/Widgets/SegmentedButton.vala ../lib/Widgets/SettingsList.vala ../lib/Widgets/SettingsPage.vala ../lib/Widgets/SettingsRow.vala ../lib/Widgets/SettingsWindow.vala ../lib/Widgets/SideBar.vala ../lib/Widgets/SwitchBar.vala ../lib/Widgets/Tab.vala ../lib/Widgets/TabPage.vala ../lib/Widgets/TabSwitcher.vala ../lib/Widgets/TextButton.vala ../lib/Widgets/TextField.vala ../lib/Widgets/TimePicker.vala ../lib/Widgets/TintButton.vala ../lib/Widgets/Toast.vala ../lib/Widgets/ViewAux.vala ../lib/Widgets/ViewChooser.vala ../lib/Widgets/ViewDual.vala ../lib/Widgets/ViewMono.vala ../lib/Widgets/ViewSubTitle.vala ../lib/Widgets/ViewSwitcher.vala ../lib/Widgets/ViewTitle.vala ../lib/Widgets/WelcomeScreen.vala ../lib/Main.vala
FAILED: lib/libhelium-1.so.1.p/Models/Application.c lib/libhelium-1.so.1.p/Models/Bin.c lib/libhelium-1.so.1.p/Models/Button.c lib/libhelium-1.so.1.p/Models/ButtonContent.c lib/libhelium-1.so.1.p/Models/Colors.c lib/libhelium-1.so.1.p/Models/Schemes/Content.c lib/libhelium-1.so.1.p/Models/Schemes/Default.c lib/libhelium-1.so.1.p/Models/Schemes/Monochrome.c lib/libhelium-1.so.1.p/Models/Schemes/Muted.c lib/libhelium-1.so.1.p/Models/Schemes/Scheme.c lib/libhelium-1.so.1.p/Models/Schemes/Vibrant.c lib/libhelium-1.so.1.p/Models/View.c lib/libhelium-1.so.1.p/Models/Window.c lib/libhelium-1.so.1.p/Utils/Color.c lib/libhelium-1.so.1.p/Utils/Color/ARGB.c lib/libhelium-1.so.1.p/Utils/Color/CAM16.c lib/libhelium-1.so.1.p/Utils/Color/GdkRGBA.c lib/libhelium-1.so.1.p/Utils/Color/HCT/CriticalPlanes.c lib/libhelium-1.so.1.p/Utils/Color/HCT/HCT.c lib/libhelium-1.so.1.p/Utils/Color/HCT/HCTSolver.c lib/libhelium-1.so.1.p/Utils/Color/Hexcode.c lib/libhelium-1.so.1.p/Utils/Color/LAB.c lib/libhelium-1.so.1.p/Utils/Color/LCH.c lib/libhelium-1.so.1.p/Utils/Color/RGB.c lib/libhelium-1.so.1.p/Utils/Color/XYZ.c lib/libhelium-1.so.1.p/Utils/Desktop.c lib/libhelium-1.so.1.p/Utils/Ensor/Ensor.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/Quantizer.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/QuantizerCelebi.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/QuantizerMap.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/QuantizerResult.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/QuantizerWsmeans.c lib/libhelium-1.so.1.p/Utils/Ensor/Quantize/QuantizerWu.c lib/libhelium-1.so.1.p/Utils/Ensor/Score.c lib/libhelium-1.so.1.p/Utils/Math.c lib/libhelium-1.so.1.p/Utils/Misc.c lib/libhelium-1.so.1.p/Utils/Portal.c lib/libhelium-1.so.1.p/Utils/ViewingConditions.c lib/libhelium-1.so.1.p/Widgets/AboutWindow.c lib/libhelium-1.so.1.p/Widgets/AppBar.c lib/libhelium-1.so.1.p/Widgets/ApplicationWindow.c lib/libhelium-1.so.1.p/Widgets/Avatar.c lib/libhelium-1.so.1.p/Widgets/Badge.c lib/libhelium-1.so.1.p/Widgets/Banner.c lib/libhelium-1.so.1.p/Widgets/BottomBar.c lib/libhelium-1.so.1.p/Widgets/Chip.c lib/libhelium-1.so.1.p/Widgets/ChipGroup.c lib/libhelium-1.so.1.p/Widgets/ContentBlock.c lib/libhelium-1.so.1.p/Widgets/ContentBlockImage.c lib/libhelium-1.so.1.p/Widgets/ContentBlockImageCluster.c lib/libhelium-1.so.1.p/Widgets/ContentList.c lib/libhelium-1.so.1.p/Widgets/DatePicker.c lib/libhelium-1.so.1.p/Widgets/Dialog.c lib/libhelium-1.so.1.p/Widgets/DisclosureButton.c lib/libhelium-1.so.1.p/Widgets/EmptyPage.c lib/libhelium-1.so.1.p/Widgets/FillButton.c lib/libhelium-1.so.1.p/Widgets/IconicButton.c lib/libhelium-1.so.1.p/Widgets/MiniContentBlock.c lib/libhelium-1.so.1.p/Widgets/ModifierBadge.c lib/libhelium-1.so.1.p/Widgets/NavigationRail.c lib/libhelium-1.so.1.p/Widgets/OutlineButton.c lib/libhelium-1.so.1.p/Widgets/OverlayButton.c lib/libhelium-1.so.1.p/Widgets/PillButton.c lib/libhelium-1.so.1.p/Widgets/SegmentedButton.c lib/libhelium-1.so.1.p/Widgets/SettingsList.c lib/libhelium-1.so.1.p/Widgets/SettingsPage.c lib/libhelium-1.so.1.p/Widgets/SettingsRow.c lib/libhelium-1.so.1.p/Widgets/SettingsWindow.c lib/libhelium-1.so.1.p/Widgets/SideBar.c lib/libhelium-1.so.1.p/Widgets/SwitchBar.c lib/libhelium-1.so.1.p/Widgets/Tab.c lib/libhelium-1.so.1.p/Widgets/TabPage.c lib/libhelium-1.so.1.p/Widgets/TabSwitcher.c lib/libhelium-1.so.1.p/Widgets/TextButton.c lib/libhelium-1.so.1.p/Widgets/TextField.c lib/libhelium-1.so.1.p/Widgets/TimePicker.c lib/libhelium-1.so.1.p/Widgets/TintButton.c lib/libhelium-1.so.1.p/Widgets/Toast.c lib/libhelium-1.so.1.p/Widgets/ViewAux.c lib/libhelium-1.so.1.p/Widgets/ViewChooser.c lib/libhelium-1.so.1.p/Widgets/ViewDual.c lib/libhelium-1.so.1.p/Widgets/ViewMono.c lib/libhelium-1.so.1.p/Widgets/ViewSubTitle.c lib/libhelium-1.so.1.p/Widgets/ViewSwitcher.c lib/libhelium-1.so.1.p/Widgets/ViewTitle.c lib/libhelium-1.so.1.p/Widgets/WelcomeScreen.c lib/libhelium-1.so.1.p/Main.c lib/libhelium-1.h lib/libhelium-1.vapi lib/He-1.gir 
valac -C --debug --debug --define=LINUX --abi-stability --target-glib=2.50 --gresourcesdir /home/rleinardi/Workspace/Misc/libhelium/_build/demo/data --pkg posix --pkg gtk4 --pkg gee-0.8 --pkg gobject-2.0 --target-glib 2.50 --pkg glib-2.0 --pkg gio-unix-2.0 --pkg gio-2.0 --color=always --directory lib/libhelium-1.so.1.p --basedir ../lib --library libhelium-1 --header lib/libhelium-1.h --vapi ../libhelium-1.vapi --gir ../He-1.gir --gresources=../data/gresource.xml --gresources=../data/he.gresource.xml ../lib/Models/Application.vala ../lib/Models/Bin.vala ../lib/Models/Button.vala ../lib/Models/ButtonContent.vala ../lib/Models/Colors.vala ../lib/Models/Schemes/Content.vala ../lib/Models/Schemes/Default.vala ../lib/Models/Schemes/Monochrome.vala ../lib/Models/Schemes/Muted.vala ../lib/Models/Schemes/Scheme.vala ../lib/Models/Schemes/Vibrant.vala ../lib/Models/View.vala ../lib/Models/Window.vala ../lib/Utils/Color.vala ../lib/Utils/Color/ARGB.vala ../lib/Utils/Color/CAM16.vala ../lib/Utils/Color/GdkRGBA.vala ../lib/Utils/Color/HCT/CriticalPlanes.vala ../lib/Utils/Color/HCT/HCT.vala ../lib/Utils/Color/HCT/HCTSolver.vala ../lib/Utils/Color/Hexcode.vala ../lib/Utils/Color/LAB.vala ../lib/Utils/Color/LCH.vala ../lib/Utils/Color/RGB.vala ../lib/Utils/Color/XYZ.vala ../lib/Utils/Desktop.vala ../lib/Utils/Ensor/Ensor.vala ../lib/Utils/Ensor/Quantize/Quantizer.vala ../lib/Utils/Ensor/Quantize/QuantizerCelebi.vala ../lib/Utils/Ensor/Quantize/QuantizerMap.vala ../lib/Utils/Ensor/Quantize/QuantizerResult.vala ../lib/Utils/Ensor/Quantize/QuantizerWsmeans.vala ../lib/Utils/Ensor/Quantize/QuantizerWu.vala ../lib/Utils/Ensor/Score.vala ../lib/Utils/Math.vala ../lib/Utils/Misc.vala ../lib/Utils/Portal.vala ../lib/Utils/ViewingConditions.vala ../lib/Widgets/AboutWindow.vala ../lib/Widgets/AppBar.vala ../lib/Widgets/ApplicationWindow.vala ../lib/Widgets/Avatar.vala ../lib/Widgets/Badge.vala ../lib/Widgets/Banner.vala ../lib/Widgets/BottomBar.vala ../lib/Widgets/Chip.vala ../lib/Widgets/ChipGroup.vala ../lib/Widgets/ContentBlock.vala ../lib/Widgets/ContentBlockImage.vala ../lib/Widgets/ContentBlockImageCluster.vala ../lib/Widgets/ContentList.vala ../lib/Widgets/DatePicker.vala ../lib/Widgets/Dialog.vala ../lib/Widgets/DisclosureButton.vala ../lib/Widgets/EmptyPage.vala ../lib/Widgets/FillButton.vala ../lib/Widgets/IconicButton.vala ../lib/Widgets/MiniContentBlock.vala ../lib/Widgets/ModifierBadge.vala ../lib/Widgets/NavigationRail.vala ../lib/Widgets/OutlineButton.vala ../lib/Widgets/OverlayButton.vala ../lib/Widgets/PillButton.vala ../lib/Widgets/SegmentedButton.vala ../lib/Widgets/SettingsList.vala ../lib/Widgets/SettingsPage.vala ../lib/Widgets/SettingsRow.vala ../lib/Widgets/SettingsWindow.vala ../lib/Widgets/SideBar.vala ../lib/Widgets/SwitchBar.vala ../lib/Widgets/Tab.vala ../lib/Widgets/TabPage.vala ../lib/Widgets/TabSwitcher.vala ../lib/Widgets/TextButton.vala ../lib/Widgets/TextField.vala ../lib/Widgets/TimePicker.vala ../lib/Widgets/TintButton.vala ../lib/Widgets/Toast.vala ../lib/Widgets/ViewAux.vala ../lib/Widgets/ViewChooser.vala ../lib/Widgets/ViewDual.vala ../lib/Widgets/ViewMono.vala ../lib/Widgets/ViewSubTitle.vala ../lib/Widgets/ViewSwitcher.vala ../lib/Widgets/ViewTitle.vala ../lib/Widgets/WelcomeScreen.vala ../lib/Main.vala
error: unable to open `/home/rleinardi/Workspace/Misc/libhelium/_build/lib/libhelium-1.so.1.p/Models/Application.c' for writing
Compilation failed: 1 error(s), 0 warning(s)
[4/102] /usr/local/bin/sass --no-source-map ../subprojects/tau-helium/Helium/gtk-4.0/gtk.scss subprojects/tau-helium/Helium/gtk-4.0/gtk.css
[5/102] /usr/local/bin/sass --no-source-map ../subprojects/tau-helium/Helium/gtk-4.0/gtk-dark.scss subprojects/tau-helium/Helium/gtk-4.0/gtk-dark.css
[6/102] /usr/local/bin/sass ../subprojects/tau-helium/Helium/gtk-3.0/gtk-dark.scss subprojects/tau-helium/Helium/gtk-3.0/gtk-dark.css
[7/102] /usr/local/bin/sass ../subprojects/tau-helium/Helium/gtk-3.0/gtk.scss subprojects/tau-helium/Helium/gtk-3.0/gtk.css
ninja: build stopped: subcommand failed.


### Hardware Info

Not relevant.
lexisother commented 1 year ago

Cannot reproduce on Arch.

git clone https://github.com/tau-OS/libhelium && \
meson --prefix /usr builddir && \
cd builddir && \
meson compile && \
sudo meson install
lleyton commented 1 year ago

Let me pull out an Ubuntu container, to make sure it's not a specific issue there.

leinardi commented 1 year ago

Hold on, it seems a permission issue:

$ ll /home/rleinardi/Workspace/Misc/libhelium/_build/lib/libhelium-1.so.1.p/Models/Application.c
-rw-r--r-- 1 root root 135681 apr 17 18:47 /home/rleinardi/Workspace/Misc/libhelium/_build/lib/libhelium-1.so.1.p/Models/Application.c

I actually didn't clone it, I just did a git fetch && git clean -xdf.

After sudo rm -rf _build is now working and the permission is also fine:

$ ll /home/rleinardi/Workspace/Misc/libhelium/_build/lib/libhelium-1.so.1.p/Models/Application.c
-rw-rw-r-- 1 rleinardi rleinardi 135681 apr 28 19:24 /home/rleinardi/Workspace/Misc/libhelium/_build/lib/libhelium-1.so.1.p/Models/Application.c

Maybe it was due to some test I did in the past. Closing, sorry for the noise.

lleyton commented 1 year ago

No problem!