Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Audit_arch value inavalable #105

Open
sanjitpush opened this issue Mar 25, 2018 · 1 comment
Open

Audit_arch value inavalable #105

sanjitpush opened this issue Mar 25, 2018 · 1 comment

Comments

@sanjitpush
Copy link

Hi,
I'm trying to experiment with lepton for my software portability class, however when I try to run lepton on one of my class servers I get these errors:

src/io/seccomp-bpf.hh:61:3: warning: #warning "Platform does not support seccomp filter yet" [-Wcpp]
src/io/Seccomp.cc:58:4: error: #error "AUDIT_ARCH value unavailable"
/# error "AUDIT_ARCH value unavailable"
^~~~~

and

src/lepton/jpgcoder.cc: In function ‘int app_main(int, char**)’:
src/lepton/jpgcoder.cc:855:13: error: ‘__builtin_cpu_supports’ was not declared in this scope
__builtin_cpu_supports("avx2")
I'm compiling with the option you gave in issue 71 .

Is there any advice you can give?

Thank you,
Sanjit

@danielrh
Copy link
Contributor

danielrh commented Mar 27, 2018

in Seccomp.cc you can change all instances of #ifdef __linux to #if 0 and just avoid the security code altogether
you could pull that into a compile flag in cmake if you'd like

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants