Keystone build errors - with the latest git pull

120 views
Skip to first unread message

Paul Heath

unread,
Jan 23, 2024, 8:23:13 PM1/23/24
to Keystone Enclave Forum
I've been suddenly getting odd build errors. Both with Ubuntu 22.04 and ubuntu 20.04

Here's the terminal output...

paul@paul-ubuntu20:~/keystone$ make
mkdir -p /home/paul/keystone//build-generic64/overlay
 >>>  (INF) Building Buildroot
set -o pipefail ; make -C /home/paul/keystone//buildroot O=/home/paul/keystone//build-generic64/buildroot.build BR2_EXTERNAL=/home/paul/keystone//overlays/keystone all 2>&1 | \
            tee /home/paul/keystone//build-generic64/build.log | LC_ALL=C grep -of scripts/grep.patterns
>>> host-ccache 3.7.12 Configuring
make[2]: *** [package/pkg-generic.mk:276: /home/paul/keystone/build-generic64/buildroot.build/build/host-ccache-3.7.12/.stamp_configured] Error 23
make[1]: *** [Makefile:82: _all] Error 2
make: *** [Makefile:92: buildroot] Error 2
paul@paul-ubuntu20:~/keystone$


Within the build.log, I see some rsync errors... vis

paul@paul-ubuntu20:~/keystone$ make
mkdir -p /home/paul/keystone//build-generic64/overlay
 >>>  (INF) Building Buildroot
set -o pipefail ; make -C /home/paul/keystone//buildroot O=/home/paul/keystone//build-generic64/buildroot.build BR2_EXTERNAL=/home/paul/keystone//overlays/keystone all 2>&1 | \
            tee /home/paul/keystone//build-generic64/build.log | LC_ALL=C grep -of scripts/grep.patterns
>>> host-ccache 3.7.12 Configuring
make[2]: *** [package/pkg-generic.mk:276: /home/paul/keystone/build-generic64/buildroot.build/build/host-ccache-3.7.12/.stamp_configured] Error 23
make[1]: *** [Makefile:82: _all] Error 2
make: *** [Makefile:92: buildroot] Error 2
paul@paul-ubuntu20:~/keystone$ vim build-generic64/build.log
  1 make[1]: Entering directory '/home/paul/keystone/buildroot'
  2 /usr/bin/make -j1 O=/home/paul/keystone/build-generic64/buildroot.build HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
  3   GEN     /home/paul/keystone/build-generic64/buildroot.build/Makefile
  4 /home/paul/keystone/build-generic64/buildroot.build/.config:3522:warning: override: reassigning to symbol BR2_ROOTFS_OVERLAY
  5 /home/paul/keystone/build-generic64/buildroot.build/.config:3523:warning: override: reassigning to symbol BR2_CCACHE_DIR
  6 #
  7 # configuration written to /home/paul/keystone/build-generic64/buildroot.build/.config
  8 #
  9 ^[[7m>>> host-ccache 3.7.12 Configuring^[[27m
 10 mkdir -p /home/paul/keystone/build-generic64/buildroot.build/per-package/host-ccache/host
 11 rsync -a --link-dest=/home/paul/keystone/build-generic64/buildroot.build/per-package/host-skeleton/host/ /home/paul/keystone/build-generic64/buildroot.build/per-package/host-skeleton/host/ /
 12 rsync: change_dir "/home/paul/keystone/build-generic64/buildroot.build/per-package/host-skeleton/host" failed: No such file or directory (2)
 13 --link-dest arg does not exist: /home/paul/keystone/build-generic64/buildroot.build/per-package/host-skeleton/host
 14 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1205) [sender=3.1.3]
 15 make[2]: *** [package/pkg-generic.mk:276: /home/paul/keystone/build-generic64/buildroot.build/build/host-ccache-3.7.12/.stamp_configured] Error 23
 16 make[1]: *** [Makefile:82: _all] Error 2
 17 make[1]: Leaving directory '/home/paul/keystone/buildroot'
~

      
These things just started a week ago, and there's no clear reason I can see. 
Any ideas anyone ? 

Paul

Paul Heath

unread,
Jan 25, 2024, 4:10:38 PM1/25/24
to Keystone Enclave Forum
ok. This problem has gone away following a very deep clean of the VM I was on... things are building now. 

Paul 

Ramya Boggaram

unread,
Feb 6, 2024, 10:58:32 AM2/6/24
to Keystone Enclave Forum
Hello Paul,

Even I am facing the same issue Can you explain me in detail how to do deep cleaning?

Thanks,
Ramya Boggaram.

Paul Heath

unread,
Feb 7, 2024, 12:11:59 PM2/7/24
to Keystone Enclave Forum
Ramya, 
I just removed the keystone directory and pulled it again. Make sure you have all the build requisite packages installed. 
I have, since working with the Buildroot process a little while, discovered a few ways of 'un-breaking' a build that will not 
complete. In the above instance, the log suggests that the problem happened during the build of 'host-ccache'. 
For the exact point of error, you can go into build-generic/build.log and have a look. But in this case, lets assume host-ccache is
the problem. You can just remove the directory under build-generic/buildroot.build/build/host-ccache-3.7.12, 
or whatever the current package name is. Then restart the make, and Buildroot will go fetch a clean copy of that 
package and try to rebuild it. It seems to me that it is not too hard to get Buildroot into a phase that it is not happy. 

Paul

Reply all
Reply to author
Forward
0 new messages