# Percona-xtradb-cluster Build issue

**URL:** https://forums.percona.com/t/percona-xtradb-cluster-build-issue/18885
**Category:** Uncategorized
**Created:** [December 2, 2022, 10:28am UTC](https://forums.percona.com/t/percona-xtradb-cluster-build-issue/18885 "2022-12-02T10:28:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MasterCATZ](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@MasterCATZ](https://forums.percona.com/u/MasterCATZ)
#### Post date: [December 2, 2022, 10:28am UTC](https://forums.percona.com/t/percona-xtradb-cluster-build-issue/18885/1 "2022-12-02T10:28:24Z")

</div>

a few issues with the pxc\_builder.sh script

mostly due to the compressed file it downloads having the wrong version number tagged with it

it downloads percona-xtradb-cluster\_8.0.13-3-1.debian.tar.xz how ever this contains Percona-XtraDB-Cluster-8.0.29-21

so the build breaks because it can not access the extracted files

I created a symlink to get around this issue  
ln -s Percona-XtraDB-Cluster-8.0.29-21 Percona-XtraDB-Cluster-8.0.13-3

but then other snags appear as folder paths are case sensitive and through out the build process they have been swapped around

ie  
percona-xtradb-cluster + Percona-XtraDB-Cluster  
percona-xtradb-cluster-8.0.13-3 + Percona-XtraDB-Cluster-8.0.13-3

etc , I also corrected as many of these as I could with symlinks ,

./pxc\_builder.sh --builddir=/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb --install\_deps=1 --get\_sources=1 --build\_source\_deb=1 --build\_deb=1

when script fetches “pxc-80.properties” it leaves  
./pxc\_builder.sh: 710: source: not found  
./pxc\_builder.sh: 780: source: not found

[build.log](https://forums.percona.com/uploads/short-url/gMuoMVgGLeUMiRW43zfS3YeAxio.log) (3.0 MB)

```auto
dpkg-source: warning: extracting unsigned source package (percona-xtradb-cluster_8.0.13-3-1.dsc)
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/percona-xtrabackup-24*': No such file or directory
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/percona-xtrabackup-80*': No such file or directory
mv: cannot stat 'usr/bin': No such file or directory
mv: cannot stat 'usr/lib*': No such file or directory
mv: cannot stat 'usr/bin': No such file or directory
mv: cannot stat 'usr/lib*': No such file or directory
./pxc_builder.sh: 825: [[: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 835: [[: not found
./pxc_builder.sh: 835: xjammy: not found
./pxc_builder.sh: 835: xjammy: not found
./pxc_builder.sh: 835: xjammy: not found

```

and the main wall I am hitting at them moment is this when its not finding the deb files

```auto
bprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o ../../../../archive_output_directory/libz.a 
cd /rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug/extra/protobuf/protobuf-3.19.4/cmake && /usr/bin/cmake -E cmake_symlink_library ../../../../library_output_directory/libprotobuf.so.3.19.4 ../../../../library_output_directory/libprotobuf.so.3.19.4 ../../../../library_output_directory/libprotobuf.so
make[4]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
[25%] Built target libprotobuf
make[3]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
make[2]: *** [Makefile:156: all] Error 2
make[2]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
make[1]: *** [debian/rules:162: override_dh_auto_build] Error 2
make[1]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
cp: cannot stat '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/*.deb': No such file or directory
cp: cannot stat '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/*.deb': No such file or directory
root@ampereubuntusydney:/rpool/percona-xtradb-cluster/build-ps#

```

build-binary.sh did work but I am trying to get deb files

---

<div class="post-metadata">

### Author: ![MasterCATZ](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@MasterCATZ](https://forums.percona.com/u/MasterCATZ)
#### Post date: [December 2, 2022, 10:40pm UTC](https://forums.percona.com/t/percona-xtradb-cluster-build-issue/18885/2 "2022-12-02T22:40:36Z")

</div>

and a fresh install with release-8.0.30  
[record.aus.pxc-build.zip.renamefrom.log](https://forums.percona.com/uploads/short-url/82wC56tp2ImqL1bXR0hvKst3hx3.log) (1.1 MB)  
txt file compressed as zip as over 8mb and renamed to .log so it could be uploaded
