Skip to content

Instantly share code, notes, and snippets.

@ilyaevseev
Created March 7, 2018 13:28
Show Gist options
  • Save ilyaevseev/66cd121eef0247da49a521a71a01cf5c to your computer and use it in GitHub Desktop.
Save ilyaevseev/66cd121eef0247da49a521a71a01cf5c to your computer and use it in GitHub Desktop.
Try to build Chelsio drivers under Fedora27
$ LANG=C make nic
Building for kernel 4.15.6-300.fc27.x86_64
Building for kernel 4.15.6-300.fc27.x86_64
##################################################
# Building Network Drivers #
##################################################
Preparing for build ...
#### Preparing cxgb4 ####
make[3]: Nothing to be done for 'prep'.
#######################
#### cxgb4 ####
#######################
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_main.o
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_main.c: In function 'cfg_queues':
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_main.c:6916:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (avail_eth_qsets > max_eth_qsets);
^~
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_main.c:6917:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
avail_eth_qsets = max_eth_qsets;
^~~~~~~~~~~~~~~
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/l2t.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/clip_tbl.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_ethtool.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_cxgbtool.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_filter.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/cxgb4_debugfs.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/t4_hw.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/t4_linux_debugfs.o
CC [M] /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.o
In file included from ./include/linux/swab.h:5:0,
from ./include/uapi/linux/byteorder/little_endian.h:13,
from ./include/linux/byteorder/little_endian.h:5,
from ./arch/x86/include/uapi/asm/byteorder.h:5,
from ./include/asm-generic/bitops/le.h:6,
from ./arch/x86/include/asm/bitops.h:518,
from ./include/linux/bitops.h:38,
from ./include/linux/kernel.h:11,
from ./include/linux/list.h:9,
from ./include/linux/module.h:9,
from /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c:12:
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c: In function 'reclaimable':
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c:520:22: error: implicit declaration of function 'ACCESS_ONCE'; did you mean 'READ_ONCE'? [-Werror=implicit-function-declaration]
int hw_cidx = ntohs(ACCESS_ONCE(q->stat->cidx));
^
./include/uapi/linux/swab.h:101:54: note: in definition of macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
./include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
#define ___ntohs(x) __be16_to_cpu(x)
^~~~~~~~~~~~~
./include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
#define ntohs(x) ___ntohs(x)
^~~~~~~~
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c:520:16: note: in expansion of macro 'ntohs'
int hw_cidx = ntohs(ACCESS_ONCE(q->stat->cidx));
^~~~~
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c: In function 't4_sge_init':
/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.c:6488:2: error: implicit declaration of function 'setup_timer'; did you mean 'sk_stop_timer'? [-Werror=implicit-function-declaration]
setup_timer(&s->rx_timer, sge_rx_timer_cb, (unsigned long)adap);
^~~~~~~~~~~
sk_stop_timer
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:317: /home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4/sge.o] Error 1
make[4]: *** [Makefile:1513: _module_/home/evseev/soft/Chelsio/ChelsioUwire-3.6.0.3/build/src/network/cxgb4] Error 2
make[3]: *** [Makefile:82: build] Error 2
make[2]: *** [Makefile:1243: cxgb4] Error 2
***********************
* Summary *
***********************
CONFIG = UNIFIED_WIRE
Protocol Modules\Libraries\Tools Action Status
------------------------------------------------------------------------------------------
Network(NIC) cxgb4 Build Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment