Skip to content

Compilation error installing the sysdig on Bottlerocket OS #1891

Description

@lancezhongZen

Hi, teams.

I am trying to manually install Sysdig in the Bottlerocket OS following this guide Installation Instructions. However, I got the following error when I try to run the make command in the build directory.

  • Made sure installed all the requirements

Any idea where I should look to debug this issue? Thanks!

./include/net/request_sock.h:126:2: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(refcount_read(&req->rsk_refcnt) != 0);
^~~~~~~~~~~~
In file included from ./include/linux/bug.h:5:0,
from ./include/linux/thread_info.h:12,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/rcupdate.h:27,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./arch/x86/include/asm/syscall.h:14,
from /home/ec2-user/sysdig-0.29.3/build/driver/src/main.c:19:
./arch/x86/include/asm/bug.h:36:22: error: expected identifier or ‘(’ before string constant
asm_inline volatile("1:\t" ins "\n"
^
./arch/x86/include/asm/bug.h:88:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));
^~~~~~~~~~
./include/asm-generic/bug.h:104:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE |
^~~~~~~~~~~~
./include/net/request_sock.h:126:2: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(refcount_read(&req->rsk_refcnt) != 0);
^~~~~~~~~~~~
In file included from :0:0:
././include/linux/compiler_types.h:245:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
#define asm_inline asm __inline
^
./arch/x86/include/asm/bug.h:36:2: note: in expansion of macro ‘asm_inline’
asm_inline volatile("1:\t" ins "\n"
^~~~~~~~~~
./arch/x86/include/asm/bug.h:88:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));
^~~~~~~~~~
./include/asm-generic/bug.h:104:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE |
^~~~~~~~~~~~
./include/net/request_sock.h:126:2: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(refcount_read(&req->rsk_refcnt) != 0);
^~~~~~~~~~~~
make[6]: *** [/home/ec2-user/sysdig-0.29.3/build/driver/src/main.o] Error 1
make[5]: *** [/home/ec2-user/sysdig-0.29.3/build/driver/src] Error 2
make[4]: *** [__sub-make] Error 2
make[3]: *** [all] Error 2
make[2]: *** [driver/CMakeFiles/driver] Error 2
make[1]: *** [driver/CMakeFiles/driver.dir/all] Error 2
make: *** [all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions