RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1138
Joined: 2019-04-24, 09:38

RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by Pentium4User » 2024-03-21, 10:20

Hello!

I am currently trying to build RPM packages for Pale Moon on Fedora 39. Be ware, this is my first experience with building operating system packages.
This is the .spec file.

Code: Select all

[m@fedora palemoon-rpm]$ cat palemoon.spec 
Name:       palemoon-sse2
Version:    1
Release:    1
Summary:    Pale Moon SSE2
License:    MPL
BuildRequires: python-unversioned-command gtk3-devel dbus-glib-devel GConf2-devel autoconf213 yasm mesa-libGL-devel alsa-lib-devel libXt-devel openssl-devel sqlite-devel pulseaudio-libs-devel python2 gtk3-devel gtk2-devel
%description
Pale Moon SSE2 build

%prep
# we have no source, so nothing here

%build
cd /home/m/palemoon-rpm
pwd
bash ./mach Build
bash ./mach package

%install
mkdir -p %{buildroot}/opt
tar -xvf obj-x86_64-pc-linux-gnu/dist/palemoon-33.0.1.linux-x86_64-gtk3.tar.xz -C %{buildroot}/opt

%files


%changelog
# let's skip this for now
[m@fedora palemoon-rpm]$ 
After some time it fails with the following errors:

Code: Select all

43:56.56 ../../build/unix/gold/ld: error: /home/m/palemoon-rpm/obj-x86_64-pc-linux-gnu/toolkit/library/../../dom/bindings/UnifiedBindings19.o: file is empty
43:56.56 ../../build/unix/gold/ld: error: /home/m/palemoon-rpm/obj-x86_64-pc-linux-gnu/toolkit/library/../../dom/bindings/UnifiedBindings2.o: file is empty
What am I doing wrong?

kind regards
Pentium4User
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1742
Joined: 2013-05-20, 18:19
Location: Somewhere in Sector 001

Re: RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by trava90 » 2024-03-21, 16:17

What's your mozconfig look like?

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1138
Joined: 2019-04-24, 09:38

Re: RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by Pentium4User » 2024-03-21, 18:27

trava90 wrote:
2024-03-21, 16:17
What's your mozconfig look like?

Code: Select all

# Clear this if not a 64bit build
_BUILD_64=1

# Set GTK Version to 2 or 3
_GTK_VERSION=3

# Standard build options for Pale Moon
ac_add_options --enable-application=palemoon
ac_add_options --enable-optimize="-O2 -w"
ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION
ac_add_options --enable-jemalloc
ac_add_options --enable-strip
ac_add_options --enable-devtools
ac_add_options --enable-av1
ac_add_options --enable-jxl
ac_add_options --disable-webrtc
ac_add_options --disable-gamepad
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --with-pthreads
#gconf abgestellt
ac_add_options --disable-gconf

# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
ac_add_options --enable-official-branding
export MOZILLA_OFFICIAL=1

# Processor architecture specific build options
if [ -n "$_BUILD_64" ]; then
  ac_add_options --x-libraries=/usr/lib64
else
  ac_add_options --x-libraries=/usr/lib
fi

export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION
If I build manually without involving RPM it builds fine.
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
micwoj92
Fanatic
Fanatic
Posts: 175
Joined: 2020-12-22, 20:57

Re: RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by micwoj92 » 2024-03-21, 18:41

I've had similar issues on my old desktop. It used to crash a lot under heavy lot, especially IO. Turned out disk was fscked. Well, for me it didn't matter if I used to build manually or as a "system package", using pacman/makepkg.
Off-topic:
Also as of recent I've switched to bfd linker, binaries are smaller and the whole build process takes same time. YMMW

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1138
Joined: 2019-04-24, 09:38

Re: RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by Pentium4User » 2024-03-21, 18:52

It is a virtual machine running on VBox. Load is heavy when using rpmbuild.
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
RealityRipple
Astronaut
Astronaut
Posts: 666
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: RPM build /dom/bindings/UnifiedBindings19.o: file is empty

Unread post by RealityRipple » 2024-03-22, 16:05

If it's not on already, try enabling Use Host I/O Cache for your VHD's Storage Controller? Might help to write files faster.