Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

build unsupported devices form source and tells some errors

build RR8.1 form sources code and sync device kernel and vendor form https://github.com/kyasu?tab=repositories
and then name lineage.mk to rr.mk,
after servel times it tell follows errors, how to fix it?


[  0% 30/68668] target thumb C: ebtables <= external/ebtables/communication.c
external/ebtables/communication.c:498:3: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]
                EBT_MATCH_ITERATE(e, ebt_translate_match, &m_l);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
out/target/product/hltedcm/obj/KERNEL_OBJ/usr/include/linux/netfilter_bridge/ebtables.h:209:25: note: expanded from macro 'EBT_MATCH_ITERATE'
                __match = (void *)(e) + __i;                \
                          ~~~~~~~~~~~ ^
external/ebtables/communication.c:500:3: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]
                EBT_WATCHER_ITERATE(e, ebt_translate_watcher, &w_l);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
out/target/product/hltedcm/obj/KERNEL_OBJ/usr/include/linux/netfilter_bridge/ebtables.h:232:27: note: expanded from macro 'EBT_WATCHER_ITERATE'
                __watcher = (void *)(e) + __i;              \
                            ~~~~~~~~~~~ ^
external/ebtables/communication.c:754:2: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]
        EBT_ENTRY_ITERATE(repl.entries, repl.entries_size, ebt_translate_chains,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
out/target/product/hltedcm/obj/KERNEL_OBJ/usr/include/linux/netfilter_bridge/ebtables.h:252:31: note: expanded from macro 'EBT_ENTRY_ITERATE'
                __entry = (void *)(entries) + __i;          \
                          ~~~~~~~~~~~~~~~~~ ^
external/ebtables/communication.c:765:2: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]
        EBT_ENTRY_ITERATE((char *)repl.entries, repl.entries_size,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
out/target/product/hltedcm/obj/KERNEL_OBJ/usr/include/linux/netfilter_bridge/ebtables.h:252:31: note: expanded from macro 'EBT_ENTRY_ITERATE'
                __entry = (void *)(entries) + __i;          \
                          ~~~~~~~~~~~~~~~~~ ^
4 warnings generated.
[  0% 32/68668] target thumb C: ebtables <= external/ebtables/useful_functions.c
external/ebtables/useful_functions.c:59:27: warning: incompatible pointer types passing 'struct ether_addr *' to parameter of type 'const struct ether_addr *' [-Wincompatible-pointer-types]
                printf("%s", ether_ntoa((struct ether_addr *) mac));
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
bionic/libc/include/netinet/ether.h:37:42: note: passing argument to parameter here
char* ether_ntoa(const struct ether_addr*) __INTRODUCED_IN(11);
                                         ^

Comments

  • 1 warning generated.
    [  0% 35/68668] target thumb C: ebtables <= external/ebtables/libebtc.c
    external/ebtables/libebtc.c:45:21: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_PRE_ROUTING]"PREROUTING",
                               ^
                               = 
    external/ebtables/libebtc.c:46:18: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_LOCAL_IN]"INPUT",
                            ^
                            = 
    external/ebtables/libebtc.c:47:17: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_FORWARD]"FORWARD",
                           ^
                           = 
    external/ebtables/libebtc.c:48:19: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_LOCAL_OUT]"OUTPUT",
                             ^
                             = 
    external/ebtables/libebtc.c:49:22: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_POST_ROUTING]"POSTROUTING",
                                ^
                                = 
    external/ebtables/libebtc.c:50:18: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
            [NF_BR_BROUTING]"BROUTING"
                            ^
                            = 
    6 warnings generated.
    [  0% 37/68668] target thumb C: ebtables <= external/ebtables/extensions/ebt_among.c
    external/ebtables/extensions/ebt_among.c:446:21: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
                    if (info->bitmask && EBT_AMONG_SRC_NEG) {
                                      ^  ~~~~~~~~~~~~~~~~~
    external/ebtables/extensions/ebt_among.c:446:21: note: use '&' for a bitwise operation
                    if (info->bitmask && EBT_AMONG_SRC_NEG) {
                                      ^~
                                      &
    external/ebtables/extensions/ebt_among.c:446:21: note: remove constant to silence this warning
                    if (info->bitmask && EBT_AMONG_SRC_NEG) {
                                     ~^~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    [  0% 197/68668] host Generated: fs_config_generate_hltedcm <= device/samsung/msm8974-common/config.fs
    FAILED: /home/diyos/rr/out/target/product/hltedcm/gen/EXECUTABLES/fs_config_generate_hltedcm_intermediates/android_filesystem_config.h 
    /bin/bash -c "build/tools/fs_config/fs_config_generator.py fsconfig --aid-header=system/core/include/private/android_filesystem_config.h  device/samsung/msm8974-common/config.fs > /home/diyos/rr/out/target/product/hltedcm/gen/EXECUTABLES/fs_config_generate_hltedcm_intermediates/android_filesystem_config.h"
    Following AID Collisions detected for: 
    Identifier: "AID_QCOM_DIAG" Friendly Name: "qcom_diag" found in file "system/core/include/private/android_filesystem_config.h" and "device/samsung/msm8974-common/config.fs"
    [  0% 206/68668] Building Kernel Config
    make:进入目录'/home/diyos/rr/kernel/samsung/msm8974'
      GEN     /home/diyos/rr/out/target/product/hltedcm/obj/KERNEL_OBJ/Makefile
    sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
    sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
    sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
    sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
    boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
    #
    # configuration written to .config
    #
    make:离开目录“/home/diyos/rr/kernel/samsung/msm8974”
    make:进入目录'/home/diyos/rr/kernel/samsung/msm8974'
      GEN     /home/diyos/rr/out/target/product/hltedcm/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --savedefconfig=defconfig Kconfig
    sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
    sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
    sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
    sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
    boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
    make:离开目录“/home/diyos/rr/kernel/samsung/msm8974”
    ninja: build stopped: subcommand failed.
    01:00:04 ninja failed with: exit status 1

    #### failed to build some targets (03:14 (mm:ss)) ####

  • when use lineage's devices code such as x2 and zl1 devices build also tell these errors.
    RR comb change more and prebuilts change!
  • combo and toolchain can go back to lineageos? 
Sign In or Register to comment.