Build linux external module succeeds only from 2-nd sequential attempt












0















I'm trying to build external linux kernel module qca_cld-2.0.



The problem is, that build succeeds only after second attempt. More specifically




  1. Clean output directory

  2. On the first attempt to build module the error occurs. The command is:


$ make -C /lineage/kernel/samsung/universal7880 M=../../../vendor/qcom/opensource/wlan/qcacld-2.0 O=/lineage/out/target/product/a5y17lte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- modules WLAN_ROOT=../../../vendor/qcom/opens
ource/wlan/qcacld-2.0 MODNAME=wlan CONFIG_CLD_HL_SDIO_CORE=y CONFIG_QCACLD_WLAN_LFR3=y CONFIG_PRIMA_WLAN_OKC=y CONFIG_PRIMA_WLAN_11AC_HIGH_TP=y CONFIG_WLAN_FEATURE_11W=y CONFIG_WLAN_FEATURE_LPSS=y CONFIG_QCOM_VOWIFI_11R=y CONFIG_WLAN_FEATURE_NAN=y CONFIG_WLAN_FEATURE_NAN
_DATAPATH=y CONFIG_QCOM_TDLS=y CONFIG_QCOM_LTE_COEX=y CONFIG_WLAN_SYNC_TSF=y CONFIG_WLAN_FEATURE_MEMDUMP=y CONFIG_WLAN_OFFLOAD_PACKETS=y CONFIG_QCA_WIFI_AUTOMOTIVE_CONC=y CONFIG_WLAN_UDP_RESPONSE_OFFLOAD=y CONFIG_WLAN_FEATURE_RX_WAKELOCK=y CONFIG_WLAN_WOW_PULSE=y BOARD_P
LATFORM=exynos5 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1

See full log




  1. On the second attempt with the same command, build succeeds.


The difference with this two build attempts is output directory structure created and one file generated in module output directories: qcacld-2.0/CORE/HDD/src/.wlan_hdd_assoc.o.d



How should I fix this error, i.e. how should I make my build to succeed with 1 attempt?



UPDATE: seems like I can build it by adding warning surpress flags, but modpost still complains about [-Werror=pointer-sign]



EXTRA_CFLAGS += -Wno-pointer-sign
EXTRA_CFLAGS += -Wno-unused-but-set-variable









share|improve this question





























    0















    I'm trying to build external linux kernel module qca_cld-2.0.



    The problem is, that build succeeds only after second attempt. More specifically




    1. Clean output directory

    2. On the first attempt to build module the error occurs. The command is:


    $ make -C /lineage/kernel/samsung/universal7880 M=../../../vendor/qcom/opensource/wlan/qcacld-2.0 O=/lineage/out/target/product/a5y17lte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- modules WLAN_ROOT=../../../vendor/qcom/opens
    ource/wlan/qcacld-2.0 MODNAME=wlan CONFIG_CLD_HL_SDIO_CORE=y CONFIG_QCACLD_WLAN_LFR3=y CONFIG_PRIMA_WLAN_OKC=y CONFIG_PRIMA_WLAN_11AC_HIGH_TP=y CONFIG_WLAN_FEATURE_11W=y CONFIG_WLAN_FEATURE_LPSS=y CONFIG_QCOM_VOWIFI_11R=y CONFIG_WLAN_FEATURE_NAN=y CONFIG_WLAN_FEATURE_NAN
    _DATAPATH=y CONFIG_QCOM_TDLS=y CONFIG_QCOM_LTE_COEX=y CONFIG_WLAN_SYNC_TSF=y CONFIG_WLAN_FEATURE_MEMDUMP=y CONFIG_WLAN_OFFLOAD_PACKETS=y CONFIG_QCA_WIFI_AUTOMOTIVE_CONC=y CONFIG_WLAN_UDP_RESPONSE_OFFLOAD=y CONFIG_WLAN_FEATURE_RX_WAKELOCK=y CONFIG_WLAN_WOW_PULSE=y BOARD_P
    LATFORM=exynos5 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1

    See full log




    1. On the second attempt with the same command, build succeeds.


    The difference with this two build attempts is output directory structure created and one file generated in module output directories: qcacld-2.0/CORE/HDD/src/.wlan_hdd_assoc.o.d



    How should I fix this error, i.e. how should I make my build to succeed with 1 attempt?



    UPDATE: seems like I can build it by adding warning surpress flags, but modpost still complains about [-Werror=pointer-sign]



    EXTRA_CFLAGS += -Wno-pointer-sign
    EXTRA_CFLAGS += -Wno-unused-but-set-variable









    share|improve this question



























      0












      0








      0








      I'm trying to build external linux kernel module qca_cld-2.0.



      The problem is, that build succeeds only after second attempt. More specifically




      1. Clean output directory

      2. On the first attempt to build module the error occurs. The command is:


      $ make -C /lineage/kernel/samsung/universal7880 M=../../../vendor/qcom/opensource/wlan/qcacld-2.0 O=/lineage/out/target/product/a5y17lte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- modules WLAN_ROOT=../../../vendor/qcom/opens
      ource/wlan/qcacld-2.0 MODNAME=wlan CONFIG_CLD_HL_SDIO_CORE=y CONFIG_QCACLD_WLAN_LFR3=y CONFIG_PRIMA_WLAN_OKC=y CONFIG_PRIMA_WLAN_11AC_HIGH_TP=y CONFIG_WLAN_FEATURE_11W=y CONFIG_WLAN_FEATURE_LPSS=y CONFIG_QCOM_VOWIFI_11R=y CONFIG_WLAN_FEATURE_NAN=y CONFIG_WLAN_FEATURE_NAN
      _DATAPATH=y CONFIG_QCOM_TDLS=y CONFIG_QCOM_LTE_COEX=y CONFIG_WLAN_SYNC_TSF=y CONFIG_WLAN_FEATURE_MEMDUMP=y CONFIG_WLAN_OFFLOAD_PACKETS=y CONFIG_QCA_WIFI_AUTOMOTIVE_CONC=y CONFIG_WLAN_UDP_RESPONSE_OFFLOAD=y CONFIG_WLAN_FEATURE_RX_WAKELOCK=y CONFIG_WLAN_WOW_PULSE=y BOARD_P
      LATFORM=exynos5 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1

      See full log




      1. On the second attempt with the same command, build succeeds.


      The difference with this two build attempts is output directory structure created and one file generated in module output directories: qcacld-2.0/CORE/HDD/src/.wlan_hdd_assoc.o.d



      How should I fix this error, i.e. how should I make my build to succeed with 1 attempt?



      UPDATE: seems like I can build it by adding warning surpress flags, but modpost still complains about [-Werror=pointer-sign]



      EXTRA_CFLAGS += -Wno-pointer-sign
      EXTRA_CFLAGS += -Wno-unused-but-set-variable









      share|improve this question
















      I'm trying to build external linux kernel module qca_cld-2.0.



      The problem is, that build succeeds only after second attempt. More specifically




      1. Clean output directory

      2. On the first attempt to build module the error occurs. The command is:


      $ make -C /lineage/kernel/samsung/universal7880 M=../../../vendor/qcom/opensource/wlan/qcacld-2.0 O=/lineage/out/target/product/a5y17lte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- modules WLAN_ROOT=../../../vendor/qcom/opens
      ource/wlan/qcacld-2.0 MODNAME=wlan CONFIG_CLD_HL_SDIO_CORE=y CONFIG_QCACLD_WLAN_LFR3=y CONFIG_PRIMA_WLAN_OKC=y CONFIG_PRIMA_WLAN_11AC_HIGH_TP=y CONFIG_WLAN_FEATURE_11W=y CONFIG_WLAN_FEATURE_LPSS=y CONFIG_QCOM_VOWIFI_11R=y CONFIG_WLAN_FEATURE_NAN=y CONFIG_WLAN_FEATURE_NAN
      _DATAPATH=y CONFIG_QCOM_TDLS=y CONFIG_QCOM_LTE_COEX=y CONFIG_WLAN_SYNC_TSF=y CONFIG_WLAN_FEATURE_MEMDUMP=y CONFIG_WLAN_OFFLOAD_PACKETS=y CONFIG_QCA_WIFI_AUTOMOTIVE_CONC=y CONFIG_WLAN_UDP_RESPONSE_OFFLOAD=y CONFIG_WLAN_FEATURE_RX_WAKELOCK=y CONFIG_WLAN_WOW_PULSE=y BOARD_P
      LATFORM=exynos5 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1

      See full log




      1. On the second attempt with the same command, build succeeds.


      The difference with this two build attempts is output directory structure created and one file generated in module output directories: qcacld-2.0/CORE/HDD/src/.wlan_hdd_assoc.o.d



      How should I fix this error, i.e. how should I make my build to succeed with 1 attempt?



      UPDATE: seems like I can build it by adding warning surpress flags, but modpost still complains about [-Werror=pointer-sign]



      EXTRA_CFLAGS += -Wno-pointer-sign
      EXTRA_CFLAGS += -Wno-unused-but-set-variable






      makefile linux-kernel kernel-module kbuild






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 14:39







      Dzmitry Sankouski

















      asked Nov 15 '18 at 14:09









      Dzmitry SankouskiDzmitry Sankouski

      315




      315
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321301%2fbuild-linux-external-module-succeeds-only-from-2-nd-sequential-attempt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321301%2fbuild-linux-external-module-succeeds-only-from-2-nd-sequential-attempt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Xamarin.iOS Cant Deploy on Iphone

          Glorious Revolution

          Dulmage-Mendelsohn matrix decomposition in Python