This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

recipe for target 'defconfig-wl18xx' failed for kernel 3.12.10

Hi guys

I have been trying to compile a firmware for my wl18xx and went through the procedure on http://processors.wiki.ti.com/index.php/WL18xx_System_Build_Scripts#Step_1:_Download_the_Build_Scripts 

and I have issues with the process. I have TI's 3.12.10 kernel and the .config is attached here.

bsmwire-my.sharepoint.com/.../guestaccess.aspx

 I have the kernel fully built. Here is the issue:

****** *******
INSTALL libreg
#@ldconfig
INSTALL libreg-headers
GEN keys-gcrypt.c
Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/sforshee.key.pub.pem
GZIP crda.8
GZIP regdbdump.8
INSTALL crda
INSTALL regdbdump
INSTALL 85-regulatory.rules
INSTALL crda.8.gz
INSTALL regdbdump.8.gz
****** *******
Copy original source files ...
Applying patches from patches to /home/ali/projects/wl18xx_fw/build-utilites/src/compat_wireless ...
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Done!
Generating local configuration database from kernel ... done.
/home/ali/projects/wl18xx_fw/build-utilites/toolchain/bin/arm-linux-gnueabihf-gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
/home/ali/projects/wl18xx_fw/build-utilites/toolchain/bin/arm-linux-gnueabihf-gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
/home/ali/projects/wl18xx_fw/build-utilites/toolchain/bin/arm-linux-gnueabihf-gcc conf.o zconf.tab.o -o conf
./kconf/conf: 1: ./kconf/conf: Syntax error: word unexpected (expecting ")")
Makefile.real:41: recipe for target 'defconfig-wl18xx' failed
make[1]: *** [defconfig-wl18xx] Error 2
Makefile:42: recipe for target 'defconfig-wl18xx' failed
make: *** [defconfig-wl18xx] Error 2
/--------------
| Your backport package isn't configured, please configure it
| using one of the following options:
| To configure manually:
| make oldconfig
| make menuconfig
|
| To get defaults for certain drivers:
| make defconfig-alx
| make defconfig-ar5523
| make defconfig-ath10k
| make defconfig-ath5k
| make defconfig-ath6kl
| make defconfig-ath9k
| make defconfig-ath9k-debug
| make defconfig-carl9170
| make defconfig-hwsim
| make defconfig-ieee802154
| make defconfig-igb
| make defconfig-media
| make defconfig-nfc
| make defconfig-rtlwifi
| make defconfig-wcn36xx
| make defconfig-wil6210
| make defconfig-wl18xx
| make defconfig-wwan
\--
Makefile.real:45: recipe for target '.config' failed
make[2]: *** [.config] Error 1
Makefile:42: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:32: recipe for target 'default' failed
make: *** [default] Error 2
****** ERROR 0 *******
ali@ALI:~/projects/wl18xx_fw/build-utilites$ vi setup-env
ali@ALI:~/projects/wl18xx_fw/build-utilites$ ./build_wl18xx.sh update R8.7
Setting TOOLCHAIN_PATH path to default
Using user defined kernel
Makefile was found. Kernel version was set to 3.12.10.
***** setting up workspace and building all *****
***** Using tag R8.7 *****
Cleaning outputs

What is the issue? What can I do to fix this?

Thanks

  • hi , pls list all the commands you ran
    Saurabh
  • I followed the steps in:

    http://processors.wiki.ti.com/index.php/WL18xx_System_Build_Scripts#Step_1:_Download_the_Build_Scripts

    one by one...so here are the steps:

    git clone git://git.ti.com/wilink8-wlan/build-utilites.git

    cd build-utilites/

    ./build_wl18xx.sh init

    ./build_wl18xx.sh update R8.7 <-- this is where it starts to fail

    are there any other instructions?

  • Hello,

    Can you confirm that before running the build scrip, you already have your 3.12.10 kernel pointed in setup-env built already?
    When using the scripts for building the wl18xx related modules, it has to be built already (zImage and modules).

    You can just run the script for building the modules only first until it is sorted out:

    ./build_wl18xx.sh modules

    After this is sorted out you can proceed to run the full build

    BR,
    Eyal
  • build-utilites$ ./build_wl18xx.sh update R8.7

    ****** *******
    INSTALL libreg
    #@ldconfig
    INSTALL libreg-headers
    GEN keys-gcrypt.c
    Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/sforshee.key.pub.pem
    GZIP crda.8
    GZIP regdbdump.8
    INSTALL crda
    INSTALL regdbdump
    INSTALL 85-regulatory.rules
    INSTALL crda.8.gz
    INSTALL regdbdump.8.gz
    ****** *******
    Copy original source files ...
    Applying patches from patches to /home/ali/projects/wifi/build-utilites/src/compat_wireless ...
    Modify Kconfig tree ...
    Rewrite Makefiles and Kconfig files ...
    Done!
    Generating local configuration database from kernel ... done.
    Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
    make[2]: Wall: Command not found
    <builtin>: recipe for target 'conf.o' failed
    make[2]: [conf.o] Error 127 (ignored)
    Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
    make[2]: Wall: Command not found
    <builtin>: recipe for target 'zconf.tab.o' failed
    make[2]: [zconf.tab.o] Error 127 (ignored)
    conf.o zconf.tab.o -o conf
    make[2]: conf.o: Command not found
    <builtin>: recipe for target 'conf' failed
    make[2]: *** [conf] Error 127
    Makefile.real:41: recipe for target 'defconfig-wl18xx' failed
    make[1]: *** [defconfig-wl18xx] Error 2
    Makefile:42: recipe for target 'defconfig-wl18xx' failed
    make: *** [defconfig-wl18xx] Error 2
    /--------------
    | Your backport package isn't configured, please configure it
    | using one of the following options:
    | To configure manually:
    | make oldconfig
    | make menuconfig
    |
    | To get defaults for certain drivers:
    | make defconfig-alx
    | make defconfig-ar5523
    | make defconfig-ath10k
    | make defconfig-ath5k
    | make defconfig-ath6kl
    | make defconfig-ath9k
    | make defconfig-ath9k-debug
    | make defconfig-carl9170
    | make defconfig-hwsim
    | make defconfig-ieee802154
    | make defconfig-igb
    | make defconfig-media
    | make defconfig-nfc
    | make defconfig-rtlwifi
    | make defconfig-wcn36xx
    | make defconfig-wil6210
    | make defconfig-wl18xx
    | make defconfig-wwan
    \--
    Makefile.real:45: recipe for target '.config' failed
    make[2]: *** [.config] Error 1
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2
    ****** ERROR 0 *******
    ali@ALI:~/projects/wifi/build-utilites$ ./build_wl18xx.sh modules
    Setting TOOLCHAIN_PATH path to default
    Using user defined kernel
    Makefile was found. Kernel version was set to 3.12.10.
    ***** building only Driver modules *****
    Copy original source files ...
    Applying patches from patches to /home/ali/projects/wifi/build-utilites/src/compat_wireless ...
    Modify Kconfig tree ...
    Rewrite Makefiles and Kconfig files ...
    Done!
    Generating local configuration database from kernel ... done.
    Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
    make[2]: Wall: Command not found
    <builtin>: recipe for target 'conf.o' failed
    make[2]: [conf.o] Error 127 (ignored)
    Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
    make[2]: Wall: Command not found
    <builtin>: recipe for target 'zconf.tab.o' failed
    make[2]: [zconf.tab.o] Error 127 (ignored)
    conf.o zconf.tab.o -o conf
    make[2]: conf.o: Command not found
    <builtin>: recipe for target 'conf' failed
    make[2]: *** [conf] Error 127
    Makefile.real:41: recipe for target 'defconfig-wl18xx' failed
    make[1]: *** [defconfig-wl18xx] Error 2
    Makefile:42: recipe for target 'defconfig-wl18xx' failed
    make: *** [defconfig-wl18xx] Error 2
    /--------------
    | Your backport package isn't configured, please configure it
    | using one of the following options:
    | To configure manually:
    | make oldconfig
    | make menuconfig
    |
    | To get defaults for certain drivers:
    | make defconfig-alx
    | make defconfig-ar5523
    | make defconfig-ath10k
    | make defconfig-ath5k
    | make defconfig-ath6kl
    | make defconfig-ath9k
    | make defconfig-ath9k-debug
    | make defconfig-carl9170
    | make defconfig-hwsim
    | make defconfig-ieee802154
    | make defconfig-igb
    | make defconfig-media
    | make defconfig-nfc
    | make defconfig-rtlwifi
    | make defconfig-wcn36xx
    | make defconfig-wil6210
    | make defconfig-wl18xx
    | make defconfig-wwan
    \--
    Makefile.real:45: recipe for target '.config' failed
    make[2]: *** [.config] Error 1
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2
    ****** ERROR 0 *******

    Here is my setup-env:

    # \\\// 

    # -(o o)-
    #========================oOO==(_)==OOo=======================
    # This file contains the exports needed for automating the
    # build process of WLAN components.
    # Place this file in the same directory with wl18xx_build.sh
    # build scripts. No need to run 'source setup-env', the build
    # scripts will perfom it internaly.
    #===========================================================
    # User specific environment settings - use full PATH

    # if DEFAULT toolchain path is set toolchain will be downloaded to ./toolchain.
    export TOOLCHAIN_PATH=DEFAULT

    # if DEFAULT path to root filesystem is set ./fs folder will be used.
    export ROOTFS=DEFAULT

    #if DEFAULT kernel path is set - kernel will be downloaded (set branch to match kernel version)
    export KERNEL_PATH=/home/ali/Sandbox/svn/FalconKernel/trunk/3.12/

    # if KERNEL_VARIANT below is set the build script will look for kernel specific
    # patches under the patches directory:
    # - patches under the pathces/driver_patches/$KERNEL_VARIANT directory would be
    # applied during "modules" build.
    # - patches under the patches/kernel_patches/$/$KERNEL_VARIANT directory would
    # be applied to the kernel pointed by KERNEL_PATH in case the "patch_kernel"
    # command is used.
    # Note: the kernel is not built automatically after the patches are applied
    export KERNEL_VARIANT=DEFAULT

    export CROSS_COMPILE=/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/arm-linux-gnueabihf-
    export ARCH=arm
    [ "$TOOLCHAIN_PATH" != "DEFAULT" ] && export PATH=$TOOLCHAIN_PATH:$PATH

  • hi ,
    export TOOLCHAIN_PATH=DEFAULT

    are you using the same toolchain ( consult configuration.sh ) to compile both kernel and when running build utilities ? if not , point TOOLCHAIN_PATH to the compiler you used to compiler your kernel

    Saurabh
  • Thanks. I made the change, didn't fix the issue, I got a little farther but I'm stuck here now:

    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/debugfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/debugfs_sta.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/debugfs_netdev.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/acx.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/debugfs_key.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/boot.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh_pathtbl.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh_plink.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh_hwmp.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh_sync.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/init.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/debugfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mesh_ps.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/pm.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_debugfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_ht.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_ht_debugfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/scan.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/sysfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/vendor_cmd.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/testmode.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/sdio.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/main.o
    LD [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mac80211.o
    LD [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/wlcore.o
    LD [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/wlcore_sdio.o
    Makefile:1228: recipe for target '_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless' failed
    make[4]: *** [_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless] Error 2
    Makefile.build:6: recipe for target 'modules' failed
    make[3]: *** [modules] Error 2
    Makefile.real:88: recipe for target 'modules' failed
    make[2]: *** [modules] Error 2
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2
    ****** ERROR 0 *******

    ideas on this one?


    Thanks!

  • My setup-env is this now:

    # \\\//
    # -(o o)-
    #========================oOO==(_)==OOo=======================
    # This file contains the exports needed for automating the
    # build process of WLAN components.
    # Place this file in the same directory with wl18xx_build.sh
    # build scripts. No need to run 'source setup-env', the build
    # scripts will perfom it internaly.
    #===========================================================
    # User specific environment settings - use full PATH

    # if DEFAULT toolchain path is set toolchain will be downloaded to ./toolchain.
    #export TOOLCHAIN_PATH=DEFAULT
    export TOOLCHAIN_PATH=/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/

    # if DEFAULT path to root filesystem is set ./fs folder will be used.
    export ROOTFS=DEFAULT

    #if DEFAULT kernel path is set - kernel will be downloaded (set branch to match kernel version)
    export KERNEL_PATH=/home/ali/Sandbox/svn/FalconKernel/trunk/3.12/

    # if KERNEL_VARIANT below is set the build script will look for kernel specific
    # patches under the patches directory:
    # - patches under the pathces/driver_patches/$KERNEL_VARIANT directory would be
    # applied during "modules" build.
    # - patches under the patches/kernel_patches/$/$KERNEL_VARIANT directory would
    # be applied to the kernel pointed by KERNEL_PATH in case the "patch_kernel"
    # command is used.
    # Note: the kernel is not built automatically after the patches are applied
    export KERNEL_VARIANT=DEFAULT

    export CROSS_COMPILE=arm-linux-gnueabihf-
    export ARCH=arm
    [ "$TOOLCHAIN_PATH" != "DEFAULT" ] && export PATH=$TOOLCHAIN_PATH:$PATH
  • hi , run a clean build and check
    Saurabh
  • I tried to do that:
    ./build_wl18xx.sh -h
    Building full package :
    ./build_wl18xx.sh init <head|TAG> [ Download and Update w/o build ]
    update <head|TAG> [ Update to specific TAG & Build ]
    clean [ Clean & Build ]


    and I issued:
    ./build_wl18xx.sh clean

    and it does the same build, not sure if it really does a clean first but it ends up at the same place:
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/pm.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_debugfs.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_ht.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/rc80211_minstrel_ht_debugfs.o
    LD [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/mac80211/mac80211.o
    Makefile:1228: recipe for target '_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless' failed
    make[4]: *** [_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless] Error 2
    Makefile.build:6: recipe for target 'modules' failed
    make[3]: *** [modules] Error 2
    Makefile.real:88: recipe for target 'modules' failed
    make[2]: *** [modules] Error 2
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2
    ****** ERROR 0 *******


    :(
  • I think in your kernel .config you are enabling CFG80211 and MAC80211.

    Please disable it, rebuild your kernel and try again.

  • You were right about that. I disabled it, recompiled, and got to the same exact error:

    Rewrite Makefiles and Kconfig files ...
    Done!
    Generating local configuration database from kernel ... done.
    cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
    cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
    cc conf.o zconf.tab.o -o conf
    boolean symbol HWMON tested for 'm'? test forced to 'n'
    boolean symbol HWMON tested for 'm'? test forced to 'n'
    #
    # configuration written to .config
    #
    make[5]: 'conf' is up to date.
    boolean symbol HWMON tested for 'm'? test forced to 'n'
    boolean symbol HWMON tested for 'm'? test forced to 'n'
    #
    # configuration written to .config
    #
    Building backport-include/backport/autoconf.h ... done.
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/core.o
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o
    gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
    gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/sysfs.o
    gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
    gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
    gcc: error: unrecognized command line option ‘-mlittle-endian’
    gcc: error: unrecognized command line option ‘-mapcs’
    gcc: error: unrecognized command line option ‘-mno-sched-prolog’
    gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
    gcc: error: unrecognized command line option ‘-mlittle-endian’
    gcc: error: unrecognized command line option ‘-mapcs’
    gcc: error: unrecognized command line option ‘-mno-sched-prolog’
    gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
    scripts/Makefile.build:308: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o' failed
    make[6]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o] Error 1
    scripts/Makefile.build:455: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat' failed
    gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
    gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
    make[5]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat] Error 2
    scripts/Makefile.build:308: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/core.o' failed
    make[6]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/core.o] Error 1
    make[5]: *** Waiting for unfinished jobs....
    make[6]: *** Waiting for unfinished jobs....
    gcc: error: unrecognized command line option ‘-mlittle-endian’
    gcc: error: unrecognized command line option ‘-mapcs’
    gcc: error: unrecognized command line option ‘-mno-sched-prolog’
    gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
    scripts/Makefile.build:308: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/sysfs.o' failed
    make[6]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/sysfs.o] Error 1
    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/radiotap.o
    gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
    gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
    gcc: error: unrecognized command line option ‘-mlittle-endian’
    gcc: error: unrecognized command line option ‘-mapcs’
    gcc: error: unrecognized command line option ‘-mno-sched-prolog’
    gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
    scripts/Makefile.build:308: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/radiotap.o' failed
    make[6]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless/radiotap.o] Error 1
    scripts/Makefile.build:455: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless' failed
    make[5]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/net/wireless] Error 2
    Makefile:1228: recipe for target '_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless' failed
    make[4]: *** [_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless] Error 2
    Makefile.build:6: recipe for target 'modules' failed
    make[3]: *** [modules] Error 2
    Makefile.real:88: recipe for target 'modules' failed
    make[2]: *** [modules] Error 2
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2
    ****** ERROR 0 *******

  • Hi,

    The "unrecognized option" errors indicate that your ARCH and/or CROSS_COMPILE env variables are not pointing to the ARM tool chain. Please check your setup-env file

  • Understood and fixed.

    Makefile:676: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

    CC [M] /home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o
    arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-fstack-protector-strong’
    scripts/Makefile.build:258: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o' failed
    make[6]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat/main.o] Error 1
    scripts/Makefile.build:403: recipe for target '/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat' failed
    make[5]: *** [/home/ali/projects/wifi/build-utilites/src/compat_wireless/compat] Error 2
    Makefile:1403: recipe for target '_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless' failed
    make[4]: *** [_module_/home/ali/projects/wifi/build-utilites/src/compat_wireless] Error 2
    Makefile.build:6: recipe for target 'modules' failed
    make[3]: *** [modules] Error 2
    Makefile.real:88: recipe for target 'modules' failed
    make[2]: *** [modules] Error 2
    Makefile:42: recipe for target 'modules' failed
    make[1]: *** [modules] Error 2
    Makefile:32: recipe for target 'default' failed
    make: *** [default] Error 2

    Did a clean first

    So weird. 

  • Hi,

    CONFIG_CC_STACKPROTECTOR_STRONG

    Did you try disabling this switch in your kernel .config?

  • I sure did:

    3.12$ cat .config | grep "CONFIG_CC_STACKPROTECTOR_STRONG"

    3.12$

    3.12$ cat .config | grep "_STRONG"

    3.12$

    Nothing to be found in .config in my Kernel.

    When I do grep in the build-utilities I get:

    ali@ALI:~/projects/wifi/build-utilites$ grep -iR "CONFIG_CC_STACKPROTECTOR_STRONG" *

    configuration/kernel_4.4.6.config:# CONFIG_CC_STACKPROTECTOR_STRONG is not set

    configuration/kernel_4.1.config:# CONFIG_CC_STACKPROTECTOR_STRONG is not set

    configuration/kernel_4.3.config:# CONFIG_CC_STACKPROTECTOR_STRONG is not set

    configuration/kernel_4.4.config:# CONFIG_CC_STACKPROTECTOR_STRONG is not set

    configuration/kernel_3.14.config:# CONFIG_CC_STACKPROTECTOR_STRONG is not set

    grep: src/ti_utils/wlconf/tests/test-3.3.ini: No such file or directory

    src/driver/Makefile:ifdef CONFIG_CC_STACKPROTECTOR_STRONG

    src/driver/Makefile: $(warning Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: \

    src/driver/arch/mips/configs/pistachio_defconfig:CONFIG_CC_STACKPROTECTOR_STRONG=y

    ali@ALI:~/projects/wifi/build-utilites$

    Not quite sure what the hangup here is, but I don't understasnd where this configuration is set in the chain of things being compiled here that are relevant to me.

    Thanks

  • I didn't see this with any of the tool chains we have used?
    What tool chain are you using for your buid?

    To work around it i suggest editing the makefile:
    src/driver/Makefile

    comment out this code and and run only:

    ./build_wl18xx.sh modules

    and see if it makes a change.

    BR

    Eyal
  • Is there any additional help needed on this thread? Can we close it?

  • I tried everything suggested here, nothing worked.


    The problem still persists. No resolution as of yet. I even tried the cross compiler that came with this package and compiled my kernel with it. Same problem. This takes me in circles, when I fix a problem another problem comes up...when I fix that problem the original problem comes back.

    Any other suggestion guys?

  • Can you try going into:

    src/compat-wireless

    and run the make explicitly pointing to your toolchain and settich ARCH to ARM? something like:
    make KLIB_BUILD=<location of you compiled kernel> ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-

    Wonder if you would see same errors.

    Best Regards,
    Eyal