Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
5264 Discussions

Building sepdk kernel module fails when sh -> dash

Nicolas_B_2
Beginner
622 Views

Gentoo, kernel vanilla-sources-3.8.13, sh -> dash. When I run

/opt/intel/vtune_amplifier_xe/sepdk/src $ sudo ./build-driver

I get this error:

In file included from /opt/intel/vtune_amplifier_xe_2015.3.0.403110/sepdk/src/vtsspp/vtss_config.h:31:0,
                 from /opt/intel/vtune_amplifier_xe_2015.3.0.403110/sepdk/src/vtsspp/module.c:28:
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/sepdk/src/vtsspp/vtss_autoconf.h:32:1: error: expected identifier or ‘(’ before ‘-’ token
 -n #define 
 ^
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/sepdk/src/vtsspp/vtss_autoconf.h:32:4: error: stray ‘#’ in program
 -n #define 
    ^
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/sepdk/src/vtsspp/vtss_autoconf.h:35:4: error: stray ‘#’ in program
 -n #define 
    ^

and many more. Upon inspecting vtss_config.h I find this:

    28	#ifndef CONFIG_RING_BUFFER
    29	#error "The kernel should be compiled with CONFIG_RING_BUFFER=y"
    30	#endif /* CONFIG_RING_BUFFER */
    31	
    32	-n #define 
    33	_N VTSS_AUTOCONF_CPUMASK_PARSELIST_USER
    34	 1
    35	-n #define 
    36	_N VTSS_AUTOCONF_DPATH_PATH

Upon switching sh -> bash, the build is fine. I don't quite understand at this point why this is happening. Line vtsspp/Makefile:180 seems fine even under dash.

nick

 

0 Kudos
0 Replies
Reply