[OpenWrt-Devel] UML not working in master

Javier Domingo Cansino javierdo1 at gmail.com
Fri Sep 25 19:13:09 EDT 2015


Hi,

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.

https://dev.openwrt.org/ticket/870

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.

Cheers!

The logs/target/linux/install.txt has the following output:
make[3]: Entering directory '/home/javier/projects/openwrt/target/linux'
make[4]: Entering directory '/home/javier/projects/openwrt/target/linux/uml'
/home/javier/projects/openwrt/scripts/kconfig.pl  +
/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
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
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
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
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
/home/javier/projects/openwrt/scripts/metadata.pl 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
/home/javier/projects/openwrt/scripts/kconfig.pl '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
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
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
echo 'CONFIG_INITRAMFS_SOURCE=""' >>
/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.config
rm -rf
/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/modules
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
. /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
touch
/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.configured
rm -f
/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/root-uml/init
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
make[5]: Entering directory
'/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21'
scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig
net/sched/Kconfig:43: warning: menuconfig statement without prompt
#
# configuration written to .config
#
  CHK     include/generated/uapi/linux/version.h
make[6]: 'arch/x86/um/user-offsets.s' is up to date.
  CHK     include/config/kernel.release
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
:  CHK     include/generated/compile.h
  QUOTE   arch/um/kernel/config.tmp
  QUOTE   arch/um/kernel/config.c
  CC      arch/um/kernel/config.o
arch/um/kernel/config.c:1556:502: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__used'
arch/um/kernel/config.c:1556:742: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__used'
arch/um/kernel/config.c:1548:56: warning: 'print_config' defined but not
used [-Wunused-function]
arch/um/kernel/config.c:1556:291: warning: '__uml_help_str_print_config'
defined but not used [-Wunused-variable]
arch/um/kernel/config.c:1556:600: warning: '__uml_setup_str_print_config'
defined but not used [-Wunused-variable]
scripts/Makefile.build:257: recipe for target 'arch/um/kernel/config.o'
failed
make[6]: *** [arch/um/kernel/config.o] Error 1
Makefile:937: recipe for target 'arch/um/kernel' failed
make[5]: *** [arch/um/kernel] Error 2
make[5]: Leaving directory
'/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21'
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
make[4]: ***
[/home/javier/projects/openwrt/build_dir/target-x86_64_musl-1.1.11/linux-uml/linux-3.18.21/.image]
Error 2
make[4]: Leaving directory '/home/javier/projects/openwrt/target/linux/uml'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/javier/projects/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/javier/projects/openwrt'
target/Makefile:17: recipe for target
'/home/javier/projects/openwrt/staging_dir/target-x86_64_musl-1.1.11/stamp/.target_install'
failed
make[1]: ***
[/home/javier/projects/openwrt/staging_dir/target-x86_64_musl-1.1.11/stamp/.target_install]
Error 2
make[1]: Leaving directory '/home/javier/projects/openwrt'
/home/javier/projects/openwrt/include/toplevel.mk:179: recipe for target
'world' failed
make: *** [world] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150925/61b40db5/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list