Project

General

Profile

Actions

Bug #4152

closed

fatal error: 'gnu/stubs-32.h' file not found

Added by Donald Hoskins over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 6.0

Description

Built from master@95729e923f39b5adda31e4843a1b6ee06edbb0c8

Error shows fatal error: 'gnu/stubs-32.h' file not found when attempting to build with --enable-ebpf-build

Host is x86_64-unknown-linux-gnu, Target is mips64-unknown-linux-muslabi64sf

Both systems are 64-bit systems, is it an error that Suricata is trying to find 32-bit header files?


Files

suricata-build.log.tgz (40.6 KB) suricata-build.log.tgz Full Build output Donald Hoskins, 11/16/2020 07:37 PM

Related issues 1 (0 open1 closed)

Copied to Suricata - Bug #4313: fatal error: 'gnu/stubs-32.h' file not foundClosedShivani BhardwajActions
Actions #1

Updated by Victor Julien over 3 years ago

  • Status changed from New to Feedback
  • Assignee set to Eric Leblond

I believe the ebpf compilation uses 32 bit for some things. Eric, any comments?

Actions #2

Updated by Eric Leblond over 3 years ago

Victor Julien wrote in #note-1:

I believe the ebpf compilation uses 32 bit for some things. Eric, any comments?

It should find the architecture at configure time (it is using '-I/usr/include/$(build_cpu)-$(build_os)/').

What is the complete output of build error ?

Actions #3

Updated by Donald Hoskins over 3 years ago

Full build output.

This happens when I add the --enable-ebpf-build flag and not if I leave it off :)

Actions #4

Updated by Victor Julien over 3 years ago

Eric I believe Donald is cross compiling to misp64.

Actions #5

Updated by Donald Hoskins over 3 years ago

Victor Julien wrote in #note-4:

Eric I believe Donald is cross compiling to misp64.

Correct - Sorry, I forget that isn't ordinary :)

Build System is x86_64-unknown-linux-gnu (Ubuntu 20.04, in my case) and Host/Target system is mips64-unknown-linux-muslabi64sf

This is being done inside of an OpenWrt build environment. But since the Build and Host/Target are both 64-bit.. That is why the question :)

Actions #6

Updated by Victor Julien about 3 years ago

  • Status changed from Feedback to In Review
  • Target version set to 7.0.0-beta1
Actions #8

Updated by Victor Julien about 3 years ago

  • Status changed from In Review to Closed
  • Label Needs backport to 6.0 added
Actions #9

Updated by Jeff Lucovsky about 3 years ago

  • Copied to Bug #4313: fatal error: 'gnu/stubs-32.h' file not found added
Actions

Also available in: Atom PDF