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

build failed on ubuntu 20.04 kernel 5.4 with clang 10. #256

Closed
cfc4n opened this issue Nov 3, 2022 · 0 comments · Fixed by #258
Closed

build failed on ubuntu 20.04 kernel 5.4 with clang 10. #256

cfc4n opened this issue Nov 3, 2022 · 0 comments · Fixed by #258
Labels
bug Something isn't working

Comments

@cfc4n
Copy link
Member

cfc4n commented Nov 3, 2022

Describe the bug
build failed on ubuntu 20.04 kernel 5.4 with clang 10.

In file included from kern/openssl_1_1_1a_kern.c:45:
In file included from ./kern/openssl.h:1:
In file included from ./kern/ecapture.h:41:
In file included from /lib/modules/5.4.0-131-generic/build/include/uapi/linux/ptrace.h:143:
In file included from /lib/modules/5.4.0-131-generic/build/arch/x86/include/asm/ptrace.h:5:
/lib/modules/5.4.0-131-generic/build/arch/x86/include/asm/segment.h:266:2: error: expected '(' after 'asm'
        alternative_io ("lsl %[seg],%[p]",
        ^
/lib/modules/5.4.0-131-generic/build/arch/x86/include/asm/alternative.h:240:2: note: expanded from macro 'alternative_io'
        asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature)   \
        ^
/lib/modules/5.4.0-131-generic/build/include/linux/compiler_types.h:214:24: note: expanded from macro 'asm_inline'
#define asm_inline asm __inline

To Reproduce
Steps to reproduce the behavior:

  1. apt install clang llvm make
  2. git clone
  3. make nocore
  4. See error

Expected behavior
build success.

Screenshots

Linux Server/Android (please complete the following information):

  • Env: [run make env to get the environment variables]
  • OS: [e.g. Ubuntu 20.04]
  • Arch: [e.g. x86 64]
  • Kernel Version: [e.g. 5.4]
  • Version: [e.g. 0.4.7-master]

Additional context
Add any other context about the problem here.

ref:

@cfc4n cfc4n added the bug Something isn't working label Nov 3, 2022
cfc4n added a commit that referenced this issue Nov 3, 2022
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n closed this as completed in #258 Nov 4, 2022
cfc4n added a commit that referenced this issue Nov 4, 2022
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant