krzys-h / openwrt-icinga2

icinga2 package for OpenWRT
1 stars 1 forks source link

building for x86_64? #1

Open Slydder opened 3 years ago

Slydder commented 3 years ago

if I follow the guide I only get i386_pentium4 support. I need x86_64 though.

I modify the config as follows: .config 35 │ CONFIG_TARGET_ARCH_PACKAGES="x86_64" 36 │ CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -march=x86-64" 37 │ CONFIG_CPU_TYPE="generic"

and Config-build.in 37 │ config TARGET_ARCH_PACKAGES 38 │ string 39 │ default "x86_64" 40 │ 41 │ config DEFAULT_TARGET_OPTIMIZATION 42 │ string 43 │ default "-Os -pipe -march=x86-64" 44 │ 45 │ config CPU_TYPE 46 │ string 47 │ default "generic"

and it dies. Any ideas?

stargieg commented 2 years ago

It works for me openwrt-sdk-19.07.8-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz

echo "src-git packages_icinga2 https://github.com/krzys-h/openwrt-icinga2.git" >> feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
echo "" > .config
echo "# CONFIG_ALL_NONSHARED is not set" >> .config
echo "# CONFIG_ALL_KMODS is not set" >> .config
echo "# CONFIG_ALL is not set" >> .config
echo "# CONFIG_SIGNED_PACKAGES is not set" >> .config
echo "CONFIG_CCACHE=y" >> .config
echo "CONFIG_AUTOREBUILD=n" >> .config
echo "CONFIG_AUTOREMOVE=n" >> .config
echo "CONFIG_PACKAGE_boost=m" >> .config
echo "CONFIG_PACKAGE_icinga2=m" >> .config
make package/feeds/packages/boost/compile
make package/feeds/packages_icinga2/icinga2/compile
make package/index
stargieg commented 2 years ago

Ahh. You need the https://downloads.openwrt.org/releases/19.07.8/targets/x86/64/openwrt-sdk-19.07.8-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz sdk.