YuzukiHD / TinyVision

TinyVision - A Tiny Linux Board / IPC / Server / Router / And so on...
https://yuzukihd.top/TinyVision/#/
GNU Lesser General Public License v2.1
162 stars 21 forks source link

error while compile tina5 #23

Closed mahdi2001h closed 7 months ago

mahdi2001h commented 7 months ago

Hi I have following error while i want to compile Tina 5.0 base this link: https://tinyvision.yuzukihd.top/#/?id=tina-50-linux-开发

this error is in compile openWRT sysroot step:

...
copy from /home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision/defconfig
target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice
target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice
target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
#
# No change to .config
#
copy to /home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision/defconfig
make[2]: Entering directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
Makefile:29: "NOTE: Will skip kernel build."
The command image-prereq(include/kernel-build.mk) execute.
time: target/linux/prereq#0.07#0.04#0.12
make[2]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
make[1]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
 make[1] world
 make[2] -C /home/mahdi/tina-v853-open/openwrt/target/v851se check
 make[2] target/compile
 make[3] -C /home/mahdi/tina-v853-open/openwrt/target/v851se compile
    ERROR: target/linux failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/mahdi/tina-v853-open/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed
make: *** [world] Error 1
make: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
INFO: build_openwrt_rootfs failed

and when add V=s to file build/mkcmd.sh

--- <unnamed>
+++ <unnamed>
@@ -4,7 +4,7 @@
    local openwrt_rootdir=${LICHEE_TOP_DIR}/openwrt/openwrt

    echo "==mkcmd.sh: build_openwrt_rootfs $@=="
-   ${LICHEE_TOP_DIR}/prebuilt/hostbuilt/make4.1/bin/make -C ${openwrt_rootdir}  $@
+   ${LICHEE_TOP_DIR}/prebuilt/hostbuilt/make4.1/bin/make -C ${openwrt_rootdir} V=s $@

    return $?
 }

full log :

copy from /home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision/defconfig
target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice
target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice
target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
#
# No change to .config
#
copy to /home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision/defconfig
make[2]: Entering directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
Makefile:29: "NOTE: Will skip kernel build."
The command image-prereq(include/kernel-build.mk) execute.
time: target/linux/prereq#0.11#0.10#0.21
make[2]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
make[1]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
make[1]: Entering directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
make[2]: Entering directory '/home/mahdi/tina-v853-open/openwrt/target/v851se'
/home/mahdi/tina-v853-open/openwrt/openwrt/include/target.mk:248: CPU_TYPE "xscale" doesn't correspond to a known type
Parse error at /home/mahdi/tina-v853-open/openwrt/openwrt/scripts/kconfig.pl line 144.
make[2]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/target/v851se'
time: target/linux/check#0.01#0.00#0.01
make[2]: Entering directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
make[3]: Entering directory '/home/mahdi/tina-v853-open/openwrt/target/v851se'
make[4]: Entering directory '/home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision'
Makefile:29: "NOTE: Will skip kernel build."
rm -rf /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision
mkdir -p /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision
mkdir -p /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision
if [ -d /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9 ]; then rmdir /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9; fi
if [ -L /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9 ]; then rm -f /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9; fi
ln -s "/kernel/linux-4.9/" /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9
if [ -d /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/user_headers ]; then rm -rf /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/user_headers; fi
touch /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e
touch: cannot touch '/home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e': No such file or directory
Makefile:29: recipe for target '/home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e' failed
make[4]: *** [/home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e] Error 1
make[4]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/target/v851se/v851se-tinyvision'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/target/v851se'
time: target/linux/compile#0.04#0.02#0.07
    ERROR: target/linux failed to build.
target/Makefile:23: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 1
make[2]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
target/Makefile:18: recipe for target '/home/mahdi/tina-v853-open/openwrt/openwrt/staging_dir/target/stamp/.target_compile' failed
make[1]: *** [/home/mahdi/tina-v853-open/openwrt/openwrt/staging_dir/target/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
/home/mahdi/tina-v853-open/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed
make: *** [world] Error 2
make: Leaving directory '/home/mahdi/tina-v853-open/openwrt/openwrt'
INFO: build_openwrt_rootfs failed

how to fix ?

YuzukiTsuru commented 7 months ago
CPU_TYPE "xscale" doesn't correspond to a known type
touch: cannot touch '/home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e': No such file or directory

What's your Host machine? OS, Arch?

mahdi2001h commented 7 months ago

ubuntu 18.04.06 x86 in wmware

YuzukiTsuru commented 7 months ago

try to manually run this

touch /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/linux-4.9/.prepared_d41d8cd98f00b204e9800998ecf8427e

and see what it output

mahdi2001h commented 7 months ago

same No such file or directory error

this is file list

mahdi@ubuntu:~$ ls -la /home/mahdi/tina-v853-open/out/v851se/tinyvision/openwrt/build_dir/target/linux-v851se-tinyvision/
total 8
drwxr-xr-x 2 mahdi mahdi 4096 Apr  8 01:44 .
drwxr-xr-x 4 mahdi mahdi 4096 Apr  8 01:44 ..
lrwxrwxrwx 1 mahdi mahdi   18 Apr  8 01:44 linux-4.9 -> /kernel/linux-4.9/

the linux-4.9 link is broken

mahdi2001h commented 7 months ago

I rebuilt from scratch and no longer get the error