<div dir="ltr">Hi,<div><br></div><div>I wanted to setup for some tests an environment running uml, and I found it's not compiling on master with default config. The error seems similar to a previous one I found in the bug tracker.</div><div><br></div><div><a href="https://dev.openwrt.org/ticket/870">https://dev.openwrt.org/ticket/870</a><br></div><div><br></div><div>Is anyone actually maintaining UML or managed to make it work? What other ways of testing without a device would you propose? I had thought on a qemu kvm x86 image if there is no other way, but the UML seemed like the most straightforward to be able to develop in the local machine.</div><div><br></div><div>Cheers!</div><div><br></div><div>The logs/target/linux/install.txt has the following output:</div><div><div>make[3]: Entering directory '/home/javier/projects/openwrt/target/linux'</div><div>make[4]: Entering directory '/home/javier/projects/openwrt/target/linux/uml'</div><div>/home/javier/projects/openwrt/scripts/<a href="http://kconfig.pl">kconfig.pl</a>  + /home/javier/projects/openwrt/target/linux/generic/config-3.18 /home/javier/projects/openwrt/target/linux/uml/config/x86_64 > /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target</div><div>awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/javier/projects/openwrt/.config >> /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target</div><div>echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target</div><div>echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target</div><div>echo "# CONFIG_KALLSYMS_UNCOMPRESSED is not set" >> /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target</div><div>/home/javier/projects/openwrt/scripts/<a href="http://metadata.pl">metadata.pl</a> kconfig /home/javier/projects/openwrt/tmp/.packageinfo /home/javier/projects/openwrt/.config 3.18 > /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.override</div><div>/home/javier/projects/openwrt/scripts/<a href="http://kconfig.pl">kconfig.pl</a> 'm+' '+' /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.target /dev/null /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.override > /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config</div><div>mv /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.old</div><div>grep -v INITRAMFS /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config.old > /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config</div><div>echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config</div><div>rm -rf /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/modules</div><div>export MAKEFLAGS= ; [ -d /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/user_headers ] || make -C /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21 HOSTCFLAGS="-O2 -I/home/javier/projects/openwrt/staging_dir/host/include -I/home/javier/projects/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="" ARCH="um" KBUILD_HAVE_NLS=no CONFIG_SHELL="bash" V='' CC="ccache gcc" INSTALL_HDR_PATH=/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/user_headers headers_install</div><div>. /home/javier/projects/openwrt/include/shell.sh; grep '=[ym]' /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config | LC_ALL=C sort | md5s > /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.vermagic</div><div>touch /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.configured</div><div>rm -f /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/root-uml/init</div><div>make -C /home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21 HOSTCFLAGS="-O2 -I/home/javier/projects/openwrt/staging_dir/host/include -I/home/javier/projects/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="" ARCH="um" KBUILD_HAVE_NLS=no CONFIG_SHELL="bash" V='' CC="ccache gcc" all modules</div><div>make[5]: Entering directory '/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21'</div><div>scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig</div><div>net/sched/Kconfig:43: warning: menuconfig statement without prompt</div><div>#</div><div># configuration written to .config</div><div>#</div><div>  CHK     include/generated/uapi/linux/version.h</div><div>make[6]: 'arch/x86/um/user-offsets.s' is up to date.</div><div>  CHK     include/config/kernel.release</div><div>  CHK     include/generated/utsrelease.h</div><div>  CALL    scripts/checksyscalls.sh</div><div>:  CHK     include/generated/compile.h</div><div>  QUOTE   arch/um/kernel/config.tmp</div><div>  QUOTE   arch/um/kernel/config.c</div><div>  CC      arch/um/kernel/config.o</div><div>arch/um/kernel/config.c:1556:502: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'</div><div>arch/um/kernel/config.c:1556:742: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'</div><div>arch/um/kernel/config.c:1548:56: warning: 'print_config' defined but not used [-Wunused-function]</div><div>arch/um/kernel/config.c:1556:291: warning: '__uml_help_str_print_config' defined but not used [-Wunused-variable]</div><div>arch/um/kernel/config.c:1556:600: warning: '__uml_setup_str_print_config' defined but not used [-Wunused-variable]</div><div>scripts/Makefile.build:257: recipe for target 'arch/um/kernel/config.o' failed</div><div>make[6]: *** [arch/um/kernel/config.o] Error 1</div><div>Makefile:937: recipe for target 'arch/um/kernel' failed</div><div>make[5]: *** [arch/um/kernel] Error 2</div><div>make[5]: Leaving directory '/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21'</div><div>Makefile:36: recipe for target '/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.image' failed</div><div>make[4]: *** [/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.image] Error 2</div><div>make[4]: Leaving directory '/home/javier/projects/openwrt/target/linux/uml'</div><div>Makefile:13: recipe for target 'install' failed</div><div>make[3]: *** [install] Error 2</div><div>make[3]: Leaving directory '/home/javier/projects/openwrt/target/linux'</div><div>target/Makefile:21: recipe for target 'target/linux/install' failed</div><div>make[2]: *** [target/linux/install] Error 2</div><div>make[2]: Leaving directory '/home/javier/projects/openwrt'</div><div>target/Makefile:17: recipe for target '/home/javier/projects/openwrt/staging_dir/target-x86_64_musl-1.1.11/stamp/.target_install' failed</div><div>make[1]: *** [/home/javier/projects/openwrt/staging_dir/target-x86_64_musl-1.1.11/stamp/.target_install] Error 2</div><div>make[1]: Leaving directory '/home/javier/projects/openwrt'</div><div>/home/javier/projects/openwrt/include/<a href="http://toplevel.mk:179">toplevel.mk:179</a>: recipe for target 'world' failed</div><div>make: *** [world] Error 2</div></div><div><br></div></div>