Baseline build platform

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
gth
Posts: 4
Joined: Wed Nov 07, 2018 11:21 pm

Baseline build platform

Post by gth »

Okay, not having much success just getting the basic build platform going.

1. Ubuntu 18.04 server (don't need no damn desktop :)

2. Get the operating system up to date

Code: Select all

sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt-get update
sudo apt-get upgrade
3. Install pre-requisite items for openwrt/gargoyle builds

Code: Select all

sudo apt-get install build-essential binutils bzip2 gawk gettext patch unzip flex uglifyjs p7zip p7zip-full msmtp
sudo apt-get install lib32gcc1 gcc-multilib git git-core subversion 
sudo apt-get install libncurses5-dev libz-dev zlib1g-dev libc6-dev-i386 libssl-dev 
sudo apt-get install asciidoc texinfo
4. Get the gargoyle sources (not as root)

Code: Select all

git clone git://github.com/ericpaulbishop/gargoyle.git
5. Compile time.

Code: Select all

cd gargoyle
make FULL_BUILD=true ar71xx
...after a few false starts due to insufficient disk space (I'dsuggest allocating minimum 30GB for this environment, based on my experience so far), I've got the following error:

Code: Select all

/usr/bin/install -c -m 644 /home/gth/gargoyle/ramips-src/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/gcc/version.h /home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/plugin/include/version.h
/usr/bin/install -c -m 644 b-header-vars /home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/plugin/include/b-header-vars
make[6]: Leaving directory '/home/gth/gargoyle/ramips-src/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/gcc'
make[6]: write error: stdout
Makefile:3958: recipe for target 'install-gcc' failed
make[5]: *** [install-gcc] Error 1
make[5]: Leaving directory '/home/gth/gargoyle/ramips-src/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal'
Makefile:46: recipe for target '/home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.gcc_minimal_installed' failed
make[4]: *** [/home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.gcc_minimal_installed] Error 2
make[4]: Leaving directory '/home/gth/gargoyle/ramips-src/toolchain/gcc/minimal'
toolchain/Makefile:81: recipe for target 'toolchain/gcc/minimal/install' failed
make[3]: *** [toolchain/gcc/minimal/install] Error 2
make[3]: Leaving directory '/home/gth/gargoyle/ramips-src'
toolchain/Makefile:80: recipe for target '/home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install' failed
make[2]: *** [/home/gth/gargoyle/ramips-src/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[2]: Leaving directory '/home/gth/gargoyle/ramips-src'
/home/gth/gargoyle/ramips-src/include/toplevel.mk:181: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/gth/gargoyle/ramips-src'
find: ‘’: No such file or directory
find: ‘’: No such file or directory
To my newbie eyes, it seems like it's trying to build gcc as part of the toolset, but failing?

Any advice is welcome. :)

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Baseline build platform

Post by ispyisail »

try switch to

Code: Select all

base_on_openwrt_remerge

Code: Select all

git checkout base_on_openwrt_remerge
I haven't used "master" in so long it might be broken

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Baseline build platform

Post by ispyisail »

just in case

Code: Select all

sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo

Lantis
Moderator
Posts: 6920
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Baseline build platform

Post by Lantis »

ispyisail wrote:try switch to

Code: Select all

base_on_openwrt_remerge

Code: Select all

git checkout base_on_openwrt_remerge
I haven't used "master" in so long it might be broken
This would be my advice as well.
At least we can try to assist you there.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply