Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error installing the sysdig on Bottlerocket OS #1891

Open
lancezhongZen opened this issue Jul 20, 2022 · 1 comment
Open

Compilation error installing the sysdig on Bottlerocket OS #1891

lancezhongZen opened this issue Jul 20, 2022 · 1 comment

Comments

@lancezhongZen
Copy link

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

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 22, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
@therealbobo therealbobo reopened this Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants