Compile error 18.06

Hello

I have been able to compile about a month old openWRT 18.06 but now fails after I updated feeds and pulled newest version from 18.06:

make -C /home/heautio/openwrt/build_dir/host/u-boot-2018.03 HOSTCFLAGS="-O2 -I/home/heautio/openwrt/staging_dir/host/include " HOSTLDFLAGS="-L/home/heautio/openwrt/staging_dir/host/lib " no-dot-config-targets=tools-only CONFIG_MKIMAGE_DTC_PATH=dtc CONFIG_FIT_SIGNATURE=y tools-only
make[4]: Entering directory '/home/heautio/openwrt/build_dir/host/u-boot-2018.03'
  HOSTCC  scripts/basic/fixdep
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  HOSTCC  tools/bmp_logo
In file included from ././include/compiler.h:46:0,
                 from <command-line>:0:
/home/heautio/openwrt/staging_dir/host/include/byteswap.h:2:2: warning: #include_next is a GCC extension
 #include_next <byteswap.h>
  ^~~~~~~~~~~~
  HOSTCC  tools/envcrc.o
In file included from include/configs/mx28evk.h:274:0,
                 from include/config.h:5,
                 from tools/envcrc.c:21:
include/configs/mxs.h:37:10: fatal error: asm/arch/iomux-mx28.h: No such file or directory
 #include <asm/arch/iomux-mx28.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Is there patch available to fix this?

About my env even though I don't think there is an issues, it was working fine earlier:
OS: Ubuntu 18.04.3 LTS
GCC: 7.4.0
Target: mxs, imx28
Device: imx28evk (tried also the others and same issue)

Did you try removing /home/heautio/openwrt/staging_dir/ and compiling again? That should forcibly recompile some stuff at least.

OpenWrt builds its own toolchain and is compatible with a fairly broad selection of GCC versions, so Ubuntu's GCC 7.4 shouldn't be an issue by itself.

Yes, I did but did not help.

Found the solution by doing these steps:

force undoing all local changes just in case.. Hex-value is my latest pulled version
git reset --hard b9e685eed53e1ac98a080ed5d2516949d90467c9

make dirclean
make distclean
make

latest make-command forces menuconfig as no device is selected. After selecting the correct imx28 device I can compile again successfully.

this topic can be closed.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.