Build error with Debian 11
Posted: Fri Oct 15, 2021 5:51 am
I started with a basic Debian 11 installation (running as a container under Proxmox VE 7) and then created a small script to assert my Gargoyle build environment and consequently execute the build.
#!/usr/bin/env bash
function setup_prerequisites()
{
# On debian-11 lib32gcc1 was replaced by lib32gcc-s1
time sudo apt-get install -y build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo vim net-tools npm python-is-python3
return $?;
};
function perform_build()
{
[[ "${1}" == "clean" ]] && [[ -d gargoyle ]] && rm -rf gargoyle;
[[ ! -d gargoyle ]] && git clone http://github.com/ericpaulbishop/gargoyle.git;
# lets try this later after a simple build works first
# [[ -d gargoyle ]] && { cd gargoyle; time (make cleanup; make distclean; make FULL_BUILD=true FORCE=1 x86); };
[[ -d gargoyle ]] && { cd gargoyle; time make x86; };
};
setup_prerequisites && perform_build $*;
The full output was to large to put here, hence it can be reviewed at: https://pastebin.com/W9CJtWJ7
Then from bash I executed:
$ ./build-gargoyle clean
[..serious snippage...]
Checking 'ldconfig-stub'... ok.
Build dependency: Please install Python 2.x
Prerequisite check failed. Use FORCE=1 to override.
make[3]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:177: staging_dir/host/.prereq-build] Error 1
make[3]: Leaving directory '/home/stuart/gargoyle/x86-src'
make[2]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:83: prepare-tmpinfo] Error 2
make[2]: Leaving directory '/home/stuart/gargoyle/x86-src'
make[1]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:225: world] Error 2
make[1]: Leaving directory '/home/stuart/gargoyle/x86-src'
find: 'bin/packages/i386_pentium4': No such file or directory
find: '': No such file or directory
find: '': No such file or directory
find: 'bin/targets/x86/generic': No such file or directory
find: '': No such file or directory
find: '': No such file or directory
ls: cannot access 'bin/targets': No such file or directory
real 5m4.575s
user 1m6.500s
sys 0m20.150s
$
$ ls -la /usr/bin/python*
lrwxrwxrwx 1 root root 7 Mar 02 2021 19:44:22 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 9 Apr 05 2021 12:00:48 /usr/bin/python3 -> python3.9
-rwxr-xr-x 1 root root 5479736 Feb 28 2021 17:03:44 /usr/bin/python3.9
lrwxrwxrwx 1 root root 58 Mar 19 2021 16:14:05 /usr/bin/pythontex -> ../share/texlive/texmf-dist/scripts/pythontex/pythontex.py
Python 2 is surely NOT installed as it is unsupported and ostensibly has unresolved security flaws at this juncture. Thus, python3 is the only version of python instantiated upon the instance I am creating the build environment for.
Might I respectfully ask, why this error might be occuring?
It is worthy of notation that I additionally attempted such a build with the 1.12 stable version and saw the same error.
Thanks in advance!
#!/usr/bin/env bash
function setup_prerequisites()
{
# On debian-11 lib32gcc1 was replaced by lib32gcc-s1
time sudo apt-get install -y build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo vim net-tools npm python-is-python3
return $?;
};
function perform_build()
{
[[ "${1}" == "clean" ]] && [[ -d gargoyle ]] && rm -rf gargoyle;
[[ ! -d gargoyle ]] && git clone http://github.com/ericpaulbishop/gargoyle.git;
# lets try this later after a simple build works first
# [[ -d gargoyle ]] && { cd gargoyle; time (make cleanup; make distclean; make FULL_BUILD=true FORCE=1 x86); };
[[ -d gargoyle ]] && { cd gargoyle; time make x86; };
};
setup_prerequisites && perform_build $*;
The full output was to large to put here, hence it can be reviewed at: https://pastebin.com/W9CJtWJ7
Then from bash I executed:
$ ./build-gargoyle clean
[..serious snippage...]
Checking 'ldconfig-stub'... ok.
Build dependency: Please install Python 2.x
Prerequisite check failed. Use FORCE=1 to override.
make[3]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:177: staging_dir/host/.prereq-build] Error 1
make[3]: Leaving directory '/home/stuart/gargoyle/x86-src'
make[2]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:83: prepare-tmpinfo] Error 2
make[2]: Leaving directory '/home/stuart/gargoyle/x86-src'
make[1]: *** [/home/stuart/gargoyle/x86-src/include/toplevel.mk:225: world] Error 2
make[1]: Leaving directory '/home/stuart/gargoyle/x86-src'
find: 'bin/packages/i386_pentium4': No such file or directory
find: '': No such file or directory
find: '': No such file or directory
find: 'bin/targets/x86/generic': No such file or directory
find: '': No such file or directory
find: '': No such file or directory
ls: cannot access 'bin/targets': No such file or directory
real 5m4.575s
user 1m6.500s
sys 0m20.150s
$
$ ls -la /usr/bin/python*
lrwxrwxrwx 1 root root 7 Mar 02 2021 19:44:22 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 9 Apr 05 2021 12:00:48 /usr/bin/python3 -> python3.9
-rwxr-xr-x 1 root root 5479736 Feb 28 2021 17:03:44 /usr/bin/python3.9
lrwxrwxrwx 1 root root 58 Mar 19 2021 16:14:05 /usr/bin/pythontex -> ../share/texlive/texmf-dist/scripts/pythontex/pythontex.py
Python 2 is surely NOT installed as it is unsupported and ostensibly has unresolved security flaws at this juncture. Thus, python3 is the only version of python instantiated upon the instance I am creating the build environment for.
Might I respectfully ask, why this error might be occuring?
It is worthy of notation that I additionally attempted such a build with the 1.12 stable version and saw the same error.
Thanks in advance!