make [2]: *** [sub-make] Erro 2 make [1]: *** [todos] Erro 2

1

Eu tentei instalar o MADWIFI no meu OpenMediaVault-Server. Mais alguma informação necessária?

Eu recebo este erro toda vez que eu digito make :

root@NAS2024:/media/5703066A59887FF7/Dsys/madwifi-0.9.4# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/media/5703066A59887FF7/Dsys/madwifi-0.9.4 modules
make[1]: Entering directory '/usr/src/linux-headers-2.6.32-5-amd64'
  CC [M]  /media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o
/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.c:1: error: bad value (armv4) for -march= switch
make[5]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o] Error 1
make[4]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath] Error 2
make[3]: *** [_module_/media/5703066A59887FF7/Dsys/madwifi-0.9.4] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [modules] Fehler 2

Por que esse erro ocorreu?

    
por Tomblarom 12.05.2014 / 21:20

1 resposta

0

Dê uma olhada nos detalhes sobre como compilar os drivers MadWifi para outras arquiteturas. Tal como no seu caso, você está tentando compilar para o ARM4, embora talvez não intencionalmente.

trecho

Cross-compiling

The build system is designed to support cross-compiling without any modification to the distribution files. It should be sufficient to specify any parameters on the make command line.

In most cases, only KERNELPATH and CROSS_COMPILE need to be defined. CROSS_COMPILE is the prefix for cross-compiling tools. For instance, if the cross compiler is called arm-linux-gcc, set CROSS_COMPILE to "arm-linux-":

    $ make KERNELPATH=/usr/src/linux-arm CROSS_COMPILE=arm-linux-

The build system determines ARCH and TARGET based on the .config file in the Linux build tree. TARGET still may need to be provided on the command line some uncommon systems. If ARCH is determined incorrectly, please report it.

    
por 13.05.2014 / 03:57

Tags