UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Moto X 2014 Victara

    Scheduled Pinned Locked Moved Porting
    2 Posts 2 Posters 571 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • B Offline
        Bstiler
        last edited by

        I'm trying to build halium-boot for victara but I'm getting a compilation error:

        ============================================
        PLATFORM_VERSION_CODENAME=REL
        PLATFORM_VERSION=7.1.1
        LINEAGE_VERSION=14.1-20190614-UNOFFICIAL-victara
        TARGET_PRODUCT=lineage_victara
        TARGET_BUILD_VARIANT=userdebug
        TARGET_BUILD_TYPE=release
        TARGET_BUILD_APPS=
        TARGET_ARCH=arm
        TARGET_ARCH_VARIANT=armv7-a-neon
        TARGET_CPU_VARIANT=krait
        TARGET_2ND_ARCH=
        TARGET_2ND_ARCH_VARIANT=
        TARGET_2ND_CPU_VARIANT=
        HOST_ARCH=x86_64
        HOST_2ND_ARCH=x86
        HOST_OS=linux
        HOST_OS_EXTRA=Linux-4.15.0-50-generic-x86_64-with-LinuxMint-19.1-tessa
        HOST_CROSS_OS=windows
        HOST_CROSS_ARCH=x86
        HOST_CROSS_2ND_ARCH=x86_64
        HOST_BUILD_TYPE=release
        BUILD_ID=NOF27B
        OUT_DIR=/home/bruno-global/Source/halium-victara/out
        ============================================
        Running kati to generate build-lineage_victara.ninja...
        Starting build with ninja
        ninja: Entering directory `.'
        [ 11% 1/9] build /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/.additional_config
        [ 22% 2/9] Building Kernel Config
        make: Entering directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
          GEN     /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/Makefile
        drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
        #
        # configuration written to .config
        #
        make: Leaving directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
        make: Entering directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
          GEN     /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/Makefile
        scripts/kconfig/conf --savedefconfig=defconfig Kconfig
        drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
        make: Leaving directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
        [ 33% 3/9] Building Kernel Headers
        make: Entering directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
          GEN     /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/Makefile
        drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
        #
        # configuration written to .config
        #
        make: Leaving directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
        make: Entering directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
          CHK     include/linux/version.h
        make: Leaving directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
        [ 44% 4/9] Building Kernel
        FAILED: TARGET_KERNEL_BINARIES 
        /bin/bash -c "(make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/motorola/msm8974 O=/home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" zImage ) && (if grep -q '^CONFIG_OF=y' /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/.config; then 			echo \"Building DTBs\"; 			make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/motorola/msm8974 O=/home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" dtbs; 		fi ) && (if grep -q '^CONFIG_MODULES=y' /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/.config; then 			echo \"Building Kernel Modules\"; 			make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/motorola/msm8974 O=/home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" modules; 		fi )"
        make: Entering directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
          GEN     /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/Makefile
        scripts/kconfig/conf --silentoldconfig Kconfig
        drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
          GEN     /home/bruno-global/Source/halium-victara/out/target/product/victara/obj/KERNEL_OBJ/Makefile
          CHK     include/linux/version.h
          Using /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974 as source for kernel
          CHK     include/generated/utsrelease.h
        make[2]: 'include/generated/mach-types.h' is up to date.
          CALL    /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/checksyscalls.sh
          CC      arch/arm/mm/rodata.o
          CHK     include/generated/compile.h
          CC      kernel/sysctl.o
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mm/rodata.c: In function 'set_page_attributes':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mm/rodata.c:91:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'pmd_t' [-Wformat=]
        error, forbidden warning: rodata.c:91
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'arch/arm/mm/rodata.o' failed
        make[2]: *** [arch/arm/mm/rodata.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'arch/arm/mm' failed
        make[1]: *** [arch/arm/mm] Error 2
        make[1]: ** Esperando que outros processos terminem.
          CC      kernel/sysctl_binary.o
          CC      init/do_mounts.o
          CC      security/apparmor/lsm.o
          CC      mm/memcontrol.o
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/security/apparmor/lsm.c:26:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'security/apparmor/lsm.o' failed
        make[3]: *** [security/apparmor/lsm.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:443: recipe for target 'security/apparmor' failed
        make[2]: *** [security/apparmor] Error 2
        make[2]: ** Esperando que outros processos terminem.
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/tcp.h:212,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/ipv6.h:229,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/ip_vs.h:24,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/kernel/sysctl_binary.c:6:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'kernel/sysctl_binary.o' failed
        make[2]: *** [kernel/sysctl_binary.o] Error 1
        make[2]: ** Esperando que outros processos terminem.
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/tcp.h:212,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/ipv6.h:229,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/ipv6.h:16,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/sunrpc/clnt.h:26,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/nfs_fs.h:57,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/init/do_mounts.c:20:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'init/do_mounts.o' failed
        make[2]: *** [init/do_mounts.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'init' failed
        make[1]: *** [init] Error 2
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/tcp.h:212,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/ipv6.h:229,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/ipv6.h:16,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/sunrpc/clnt.h:26,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/linux/nfs_fs.h:57,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/kernel/sysctl.c:52:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'kernel/sysctl.o' failed
        make[2]: *** [kernel/sysctl.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'kernel' failed
        make[1]: *** [kernel] Error 2
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'security' failed
        make[1]: *** [security] Error 2
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/mm/memcontrol.c:54:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'mm/memcontrol.o' failed
        make[2]: *** [mm/memcontrol.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'mm' failed
        make[1]: *** [mm] Error 2
          CC      arch/arm/mach-msm/ipc_router_smd_xprt.o
          CC      arch/arm/mach-msm/ipc_router.o
          CC      arch/arm/mach-msm/ipc_socket.o
          CC      arch/arm/mach-msm/msm_ipc_router_security.o
          CC      arch/arm/mach-msm/spm-v2.o
          CC      arch/arm/mach-msm/spm_devices.o
          CC      arch/arm/mach-msm/dma_test.o
          CC      arch/arm/mach-msm/keypad-surf-ffa.o
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/ipc_socket.c:30:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/ipc_socket.o' failed
        make[2]: *** [arch/arm/mach-msm/ipc_socket.o] Error 1
        make[2]: ** Esperando que outros processos terminem.
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/msm_ipc_router_security.c:29:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/msm_ipc_router_security.o' failed
        make[2]: *** [arch/arm/mach-msm/msm_ipc_router_security.o] Error 1
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/ipc_router.h:24,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/ipc_router_smd_xprt.c:25:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        In file included from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/sock.h:67:0,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/ipc_router.h:24,
                         from /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/arch/arm/mach-msm/ipc_router.c:40:
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h: In function 'dst_hold':
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/include/net/dst.h:245:2: error: size of unnamed array is negative
          BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
          ^
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/ipc_router.o' failed
        make[2]: *** [arch/arm/mach-msm/ipc_router.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/ipc_router_smd_xprt.o' failed
        make[2]: *** [arch/arm/mach-msm/ipc_router_smd_xprt.o] Error 1
        /home/bruno-global/Source/halium-victara/kernel/motorola/msm8974/Makefile:955: recipe for target 'arch/arm/mach-msm' failed
        make[1]: *** [arch/arm/mach-msm] Error 2
        Makefile:135: recipe for target 'sub-make' failed
        make: *** [sub-make] Error 2
        make: Leaving directory '/home/bruno-global/Source/halium-victara/kernel/motorola/msm8974'
        ninja: build stopped: subcommand failed.
        build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
        
        #### make failed to build some targets (17 seconds) ####
        
        

        To be honest I don't have a clue on how to proceed.
        PS: hybris-boot builds well.

        1 Reply Last reply Reply Quote 0
        • U Offline
          UniSuperBox
          last edited by

          Alright, new devices!

          What changed between building hybris-boot and halium-boot? Were new kernel options enabled? What is your kernel version?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post