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

fatal error: 'bits/libc-header-start.h' file not found #26

Open
R3tr0BoiDX opened this issue Dec 29, 2022 · 2 comments
Open

fatal error: 'bits/libc-header-start.h' file not found #26

R3tr0BoiDX opened this issue Dec 29, 2022 · 2 comments

Comments

@R3tr0BoiDX
Copy link

Hey,

I do have a problem however. When I try to build the project, it tells me, that bits/libc-header-start.h is missing. Heres the full error:

pi@raspberrypi:~/rpi-ws281x-rust $ cargo run --example basic
   Compiling rs_ws281x v0.4.4 (/home/pi/rpi-ws281x-rust)
error: failed to run custom build command for `rs_ws281x v0.4.4 (/home/pi/rpi-ws281x-rust)`

Caused by:
  process didn't exit successfully: `/home/pi/rpi-ws281x-rust/target/debug/build/rs_ws281x-d2fc28725d587891/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-search="/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out"
  TARGET = Some("arm-unknown-linux-gnueabihf")
  OPT_LEVEL = Some("0")
  HOST = Some("aarch64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_arm-unknown-linux-gnueabihf
  CC_arm-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CC_arm_unknown_linux_gnueabihf
  CC_arm_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = None
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:rerun-if-env-changed=CFLAGS_arm-unknown-linux-gnueabihf
  CFLAGS_arm-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CFLAGS_arm_unknown_linux_gnueabihf
  CFLAGS_arm_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = None
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/mailbox.o" "-c" "src/rpi_ws281x/mailbox.c"
  exit status: 0
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/ws2811.o" "-c" "src/rpi_ws281x/ws2811.c"
  exit status: 0
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/pwm.o" "-c" "src/rpi_ws281x/pwm.c"
  exit status: 0
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/pcm.o" "-c" "src/rpi_ws281x/pcm.c"
  exit status: 0
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/dma.o" "-c" "src/rpi_ws281x/dma.c"
  exit status: 0
  running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-march=armv6" "-marm" "-mfpu=vfp" "-Wall" "-Wextra" "-o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/rpihw.o" "-c" "src/rpi_ws281x/rpihw.c"
  exit status: 0
  cargo:rerun-if-env-changed=AR_arm-unknown-linux-gnueabihf
  AR_arm-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=AR_arm_unknown_linux_gnueabihf
  AR_arm_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_AR
  TARGET_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  running: "arm-linux-gnueabihf-ar" "cq" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/libws2811.a" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/mailbox.o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/ws2811.o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/pwm.o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/pcm.o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/dma.o" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/src/rpi_ws281x/rpihw.o"
  exit status: 0
  running: "arm-linux-gnueabihf-ar" "s" "/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out/libws2811.a"
  exit status: 0
  cargo:rustc-link-lib=static=ws2811
  cargo:rustc-link-search=native=/home/pi/rpi-ws281x-rust/target/arm-unknown-linux-gnueabihf/debug/build/rs_ws281x-902c76c27182f66e/out
  cargo:rustc-link-lib=static=ws2811

  --- stderr
  /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
  thread 'main' panicked at 'Unable to generate bindings: ClangDiagnostic("/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found\n")', build.rs:66:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

libc6-dev is already installed and up to date

I also tried to cargo clean and then cargo build again, with them same result

When I tried to built it with cargo build --verbose it tells me, that its apparently failing here:

   Compiling rs_ws281x v0.4.4 (/home/pi/rpi-ws281x-rust)
     Running `/home/pi/rpi-ws281x-rust/target/debug/build/rs_ws281x-d2fc28725d587891/build-script-build`
error: failed to run custom build command for `rs_ws281x v0.4.4 (/home/pi/rpi-ws281x-rust)`

My rustc version is: rustc 1.66.0 (69f9c33d7 2022-12-12)

I also tried to explicitly install sudo apt install build-essential clang libssl-dev and rebooted, yet, still no luck. Another clean and build also didn't helped.

dpkg -L libc6-dev yields:

pi@raspberrypi:~/rpi-ws281x-rust $ dpkg -L libc6-dev
/.
/usr
/usr/include
/usr/include/aarch64-linux-gnu
/usr/include/aarch64-linux-gnu/a.out.h
/usr/include/aarch64-linux-gnu/bits
/usr/include/aarch64-linux-gnu/bits/a.out.h
/usr/include/aarch64-linux-gnu/bits/argp-ldbl.h
/usr/include/aarch64-linux-gnu/bits/auxv.h
/usr/include/aarch64-linux-gnu/bits/byteswap.h
/usr/include/aarch64-linux-gnu/bits/cmathcalls.h
/usr/include/aarch64-linux-gnu/bits/confname.h
/usr/include/aarch64-linux-gnu/bits/cpu-set.h
/usr/include/aarch64-linux-gnu/bits/dirent.h
/usr/include/aarch64-linux-gnu/bits/dirent_ext.h
/usr/include/aarch64-linux-gnu/bits/dlfcn.h
/usr/include/aarch64-linux-gnu/bits/elfclass.h
/usr/include/aarch64-linux-gnu/bits/endian.h
/usr/include/aarch64-linux-gnu/bits/endianness.h
/usr/include/aarch64-linux-gnu/bits/environments.h
/usr/include/aarch64-linux-gnu/bits/epoll.h
/usr/include/aarch64-linux-gnu/bits/err-ldbl.h
/usr/include/aarch64-linux-gnu/bits/errno.h
/usr/include/aarch64-linux-gnu/bits/error-ldbl.h
/usr/include/aarch64-linux-gnu/bits/error.h
/usr/include/aarch64-linux-gnu/bits/eventfd.h
/usr/include/aarch64-linux-gnu/bits/fcntl-linux.h
/usr/include/aarch64-linux-gnu/bits/fcntl.h
/usr/include/aarch64-linux-gnu/bits/fcntl2.h
/usr/include/aarch64-linux-gnu/bits/fenv.h
/usr/include/aarch64-linux-gnu/bits/fenvinline.h
/usr/include/aarch64-linux-gnu/bits/floatn-common.h
/usr/include/aarch64-linux-gnu/bits/floatn.h
/usr/include/aarch64-linux-gnu/bits/flt-eval-method.h
/usr/include/aarch64-linux-gnu/bits/fp-fast.h
/usr/include/aarch64-linux-gnu/bits/fp-logb.h
/usr/include/aarch64-linux-gnu/bits/getopt_core.h
/usr/include/aarch64-linux-gnu/bits/getopt_ext.h
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h
/usr/include/aarch64-linux-gnu/bits/hwcap.h
/usr/include/aarch64-linux-gnu/bits/in.h
/usr/include/aarch64-linux-gnu/bits/indirect-return.h
/usr/include/aarch64-linux-gnu/bits/initspin.h
/usr/include/aarch64-linux-gnu/bits/inotify.h
/usr/include/aarch64-linux-gnu/bits/ioctl-types.h
/usr/include/aarch64-linux-gnu/bits/ioctls.h
/usr/include/aarch64-linux-gnu/bits/ipc-perm.h
/usr/include/aarch64-linux-gnu/bits/ipc.h
/usr/include/aarch64-linux-gnu/bits/ipctypes.h
/usr/include/aarch64-linux-gnu/bits/iscanonical.h
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h
/usr/include/aarch64-linux-gnu/bits/libm-simd-decl-stubs.h
/usr/include/aarch64-linux-gnu/bits/link.h
/usr/include/aarch64-linux-gnu/bits/local_lim.h
/usr/include/aarch64-linux-gnu/bits/locale.h
/usr/include/aarch64-linux-gnu/bits/long-double.h
/usr/include/aarch64-linux-gnu/bits/math-vector.h
/usr/include/aarch64-linux-gnu/bits/mathcalls-helper-functions.h
/usr/include/aarch64-linux-gnu/bits/mathcalls-narrow.h
/usr/include/aarch64-linux-gnu/bits/mathcalls.h
/usr/include/aarch64-linux-gnu/bits/mathdef.h
/usr/include/aarch64-linux-gnu/bits/mathinline.h
/usr/include/aarch64-linux-gnu/bits/mman-linux.h
/usr/include/aarch64-linux-gnu/bits/mman-map-flags-generic.h
/usr/include/aarch64-linux-gnu/bits/mman-shared.h
/usr/include/aarch64-linux-gnu/bits/mman.h
/usr/include/aarch64-linux-gnu/bits/monetary-ldbl.h
/usr/include/aarch64-linux-gnu/bits/mqueue.h
/usr/include/aarch64-linux-gnu/bits/mqueue2.h
/usr/include/aarch64-linux-gnu/bits/msq-pad.h
/usr/include/aarch64-linux-gnu/bits/msq.h
/usr/include/aarch64-linux-gnu/bits/netdb.h
/usr/include/aarch64-linux-gnu/bits/param.h
/usr/include/aarch64-linux-gnu/bits/poll.h
/usr/include/aarch64-linux-gnu/bits/poll2.h
/usr/include/aarch64-linux-gnu/bits/posix1_lim.h
/usr/include/aarch64-linux-gnu/bits/posix2_lim.h
/usr/include/aarch64-linux-gnu/bits/posix_opt.h
/usr/include/aarch64-linux-gnu/bits/printf-ldbl.h
/usr/include/aarch64-linux-gnu/bits/procfs-extra.h
/usr/include/aarch64-linux-gnu/bits/procfs-id.h
/usr/include/aarch64-linux-gnu/bits/procfs-prregset.h
/usr/include/aarch64-linux-gnu/bits/procfs.h
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h
/usr/include/aarch64-linux-gnu/bits/ptrace-shared.h
/usr/include/aarch64-linux-gnu/bits/resource.h
/usr/include/aarch64-linux-gnu/bits/sched.h
/usr/include/aarch64-linux-gnu/bits/select.h
/usr/include/aarch64-linux-gnu/bits/select2.h
/usr/include/aarch64-linux-gnu/bits/sem-pad.h
/usr/include/aarch64-linux-gnu/bits/sem.h
/usr/include/aarch64-linux-gnu/bits/semaphore.h
/usr/include/aarch64-linux-gnu/bits/setjmp.h
/usr/include/aarch64-linux-gnu/bits/setjmp2.h
/usr/include/aarch64-linux-gnu/bits/shm-pad.h
/usr/include/aarch64-linux-gnu/bits/shm.h
/usr/include/aarch64-linux-gnu/bits/shmlba.h
/usr/include/aarch64-linux-gnu/bits/sigaction.h
/usr/include/aarch64-linux-gnu/bits/sigcontext.h
/usr/include/aarch64-linux-gnu/bits/sigevent-consts.h
/usr/include/aarch64-linux-gnu/bits/siginfo-arch.h
/usr/include/aarch64-linux-gnu/bits/siginfo-consts-arch.h
/usr/include/aarch64-linux-gnu/bits/siginfo-consts.h
/usr/include/aarch64-linux-gnu/bits/signal_ext.h
/usr/include/aarch64-linux-gnu/bits/signalfd.h
/usr/include/aarch64-linux-gnu/bits/signum-generic.h
/usr/include/aarch64-linux-gnu/bits/signum.h
/usr/include/aarch64-linux-gnu/bits/sigstack.h
/usr/include/aarch64-linux-gnu/bits/sigthread.h
/usr/include/aarch64-linux-gnu/bits/sockaddr.h
/usr/include/aarch64-linux-gnu/bits/socket-constants.h
/usr/include/aarch64-linux-gnu/bits/socket.h
/usr/include/aarch64-linux-gnu/bits/socket2.h
/usr/include/aarch64-linux-gnu/bits/socket_type.h
/usr/include/aarch64-linux-gnu/bits/ss_flags.h
/usr/include/aarch64-linux-gnu/bits/stab.def
/usr/include/aarch64-linux-gnu/bits/stat.h
/usr/include/aarch64-linux-gnu/bits/statfs.h
/usr/include/aarch64-linux-gnu/bits/statvfs.h
/usr/include/aarch64-linux-gnu/bits/statx-generic.h
/usr/include/aarch64-linux-gnu/bits/statx.h
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h
/usr/include/aarch64-linux-gnu/bits/stdio-ldbl.h
/usr/include/aarch64-linux-gnu/bits/stdio.h
/usr/include/aarch64-linux-gnu/bits/stdio2.h
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h
/usr/include/aarch64-linux-gnu/bits/stdlib-bsearch.h
/usr/include/aarch64-linux-gnu/bits/stdlib-float.h
/usr/include/aarch64-linux-gnu/bits/stdlib-ldbl.h
/usr/include/aarch64-linux-gnu/bits/stdlib.h
/usr/include/aarch64-linux-gnu/bits/string_fortified.h
/usr/include/aarch64-linux-gnu/bits/strings_fortified.h
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h
/usr/include/aarch64-linux-gnu/bits/sys_errlist.h
/usr/include/aarch64-linux-gnu/bits/syscall.h
/usr/include/aarch64-linux-gnu/bits/sysctl.h
/usr/include/aarch64-linux-gnu/bits/syslog-ldbl.h
/usr/include/aarch64-linux-gnu/bits/syslog-path.h
/usr/include/aarch64-linux-gnu/bits/syslog.h
/usr/include/aarch64-linux-gnu/bits/sysmacros.h
/usr/include/aarch64-linux-gnu/bits/termios-baud.h
/usr/include/aarch64-linux-gnu/bits/termios-c_cc.h
/usr/include/aarch64-linux-gnu/bits/termios-c_cflag.h
/usr/include/aarch64-linux-gnu/bits/termios-c_iflag.h
/usr/include/aarch64-linux-gnu/bits/termios-c_lflag.h
/usr/include/aarch64-linux-gnu/bits/termios-c_oflag.h
/usr/include/aarch64-linux-gnu/bits/termios-misc.h
/usr/include/aarch64-linux-gnu/bits/termios-struct.h
/usr/include/aarch64-linux-gnu/bits/termios-tcflow.h
/usr/include/aarch64-linux-gnu/bits/termios.h
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h
/usr/include/aarch64-linux-gnu/bits/time.h
/usr/include/aarch64-linux-gnu/bits/time64.h
/usr/include/aarch64-linux-gnu/bits/timerfd.h
/usr/include/aarch64-linux-gnu/bits/timesize.h
/usr/include/aarch64-linux-gnu/bits/timex.h
/usr/include/aarch64-linux-gnu/bits/types
/usr/include/aarch64-linux-gnu/bits/types/FILE.h
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h
/usr/include/aarch64-linux-gnu/bits/types/__sigval_t.h
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h
/usr/include/aarch64-linux-gnu/bits/types/error_t.h
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h
/usr/include/aarch64-linux-gnu/bits/types/res_state.h
/usr/include/aarch64-linux-gnu/bits/types/sig_atomic_t.h
/usr/include/aarch64-linux-gnu/bits/types/sigevent_t.h
/usr/include/aarch64-linux-gnu/bits/types/siginfo_t.h
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h
/usr/include/aarch64-linux-gnu/bits/types/sigval_t.h
/usr/include/aarch64-linux-gnu/bits/types/stack_t.h
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h
/usr/include/aarch64-linux-gnu/bits/types/struct_iovec.h
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h
/usr/include/aarch64-linux-gnu/bits/types/struct_osockaddr.h
/usr/include/aarch64-linux-gnu/bits/types/struct_rusage.h
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h
/usr/include/aarch64-linux-gnu/bits/types/struct_sigstack.h
/usr/include/aarch64-linux-gnu/bits/types/struct_statx.h
/usr/include/aarch64-linux-gnu/bits/types/struct_statx_timestamp.h
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h
/usr/include/aarch64-linux-gnu/bits/types/time_t.h
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h
/usr/include/aarch64-linux-gnu/bits/types.h
/usr/include/aarch64-linux-gnu/bits/typesizes.h
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h
/usr/include/aarch64-linux-gnu/bits/uio-ext.h
/usr/include/aarch64-linux-gnu/bits/uio_lim.h
/usr/include/aarch64-linux-gnu/bits/unistd.h
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h
/usr/include/aarch64-linux-gnu/bits/utmp.h
/usr/include/aarch64-linux-gnu/bits/utmpx.h
/usr/include/aarch64-linux-gnu/bits/utsname.h
/usr/include/aarch64-linux-gnu/bits/waitflags.h
/usr/include/aarch64-linux-gnu/bits/waitstatus.h
/usr/include/aarch64-linux-gnu/bits/wchar-ldbl.h
/usr/include/aarch64-linux-gnu/bits/wchar.h
/usr/include/aarch64-linux-gnu/bits/wchar2.h
/usr/include/aarch64-linux-gnu/bits/wctype-wchar.h
/usr/include/aarch64-linux-gnu/bits/wordsize.h
/usr/include/aarch64-linux-gnu/bits/xopen_lim.h
/usr/include/aarch64-linux-gnu/fpu_control.h
/usr/include/aarch64-linux-gnu/gnu
/usr/include/aarch64-linux-gnu/gnu/lib-names-lp64.h
/usr/include/aarch64-linux-gnu/gnu/lib-names.h
/usr/include/aarch64-linux-gnu/gnu/libc-version.h
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h
/usr/include/aarch64-linux-gnu/gnu/stubs.h
/usr/include/aarch64-linux-gnu/ieee754.h
/usr/include/aarch64-linux-gnu/sys
/usr/include/aarch64-linux-gnu/sys/acct.h
/usr/include/aarch64-linux-gnu/sys/auxv.h
/usr/include/aarch64-linux-gnu/sys/bitypes.h
/usr/include/aarch64-linux-gnu/sys/cdefs.h
/usr/include/aarch64-linux-gnu/sys/dir.h
/usr/include/aarch64-linux-gnu/sys/elf.h
/usr/include/aarch64-linux-gnu/sys/epoll.h
/usr/include/aarch64-linux-gnu/sys/errno.h
/usr/include/aarch64-linux-gnu/sys/eventfd.h
/usr/include/aarch64-linux-gnu/sys/fanotify.h
/usr/include/aarch64-linux-gnu/sys/fcntl.h
/usr/include/aarch64-linux-gnu/sys/file.h
/usr/include/aarch64-linux-gnu/sys/fsuid.h
/usr/include/aarch64-linux-gnu/sys/gmon.h
/usr/include/aarch64-linux-gnu/sys/gmon_out.h
/usr/include/aarch64-linux-gnu/sys/ifunc.h
/usr/include/aarch64-linux-gnu/sys/inotify.h
/usr/include/aarch64-linux-gnu/sys/ioctl.h
/usr/include/aarch64-linux-gnu/sys/ipc.h
/usr/include/aarch64-linux-gnu/sys/kd.h
/usr/include/aarch64-linux-gnu/sys/klog.h
/usr/include/aarch64-linux-gnu/sys/mman.h
/usr/include/aarch64-linux-gnu/sys/mount.h
/usr/include/aarch64-linux-gnu/sys/msg.h
/usr/include/aarch64-linux-gnu/sys/mtio.h
/usr/include/aarch64-linux-gnu/sys/param.h
/usr/include/aarch64-linux-gnu/sys/pci.h
/usr/include/aarch64-linux-gnu/sys/personality.h
/usr/include/aarch64-linux-gnu/sys/poll.h
/usr/include/aarch64-linux-gnu/sys/prctl.h
/usr/include/aarch64-linux-gnu/sys/procfs.h
/usr/include/aarch64-linux-gnu/sys/profil.h
/usr/include/aarch64-linux-gnu/sys/ptrace.h
/usr/include/aarch64-linux-gnu/sys/queue.h
/usr/include/aarch64-linux-gnu/sys/quota.h
/usr/include/aarch64-linux-gnu/sys/random.h
/usr/include/aarch64-linux-gnu/sys/raw.h
/usr/include/aarch64-linux-gnu/sys/reboot.h
/usr/include/aarch64-linux-gnu/sys/resource.h
/usr/include/aarch64-linux-gnu/sys/select.h
/usr/include/aarch64-linux-gnu/sys/sem.h
/usr/include/aarch64-linux-gnu/sys/sendfile.h
/usr/include/aarch64-linux-gnu/sys/shm.h
/usr/include/aarch64-linux-gnu/sys/signal.h
/usr/include/aarch64-linux-gnu/sys/signalfd.h
/usr/include/aarch64-linux-gnu/sys/socket.h
/usr/include/aarch64-linux-gnu/sys/socketvar.h
/usr/include/aarch64-linux-gnu/sys/soundcard.h
/usr/include/aarch64-linux-gnu/sys/stat.h
/usr/include/aarch64-linux-gnu/sys/statfs.h
/usr/include/aarch64-linux-gnu/sys/statvfs.h
/usr/include/aarch64-linux-gnu/sys/swap.h
/usr/include/aarch64-linux-gnu/sys/syscall.h
/usr/include/aarch64-linux-gnu/sys/sysctl.h
/usr/include/aarch64-linux-gnu/sys/sysinfo.h
/usr/include/aarch64-linux-gnu/sys/syslog.h
/usr/include/aarch64-linux-gnu/sys/sysmacros.h
/usr/include/aarch64-linux-gnu/sys/termios.h
/usr/include/aarch64-linux-gnu/sys/time.h
/usr/include/aarch64-linux-gnu/sys/timeb.h
/usr/include/aarch64-linux-gnu/sys/timerfd.h
/usr/include/aarch64-linux-gnu/sys/times.h
/usr/include/aarch64-linux-gnu/sys/timex.h
/usr/include/aarch64-linux-gnu/sys/ttychars.h
/usr/include/aarch64-linux-gnu/sys/ttydefaults.h
/usr/include/aarch64-linux-gnu/sys/types.h
/usr/include/aarch64-linux-gnu/sys/ucontext.h
/usr/include/aarch64-linux-gnu/sys/uio.h
/usr/include/aarch64-linux-gnu/sys/un.h
/usr/include/aarch64-linux-gnu/sys/unistd.h
/usr/include/aarch64-linux-gnu/sys/user.h
/usr/include/aarch64-linux-gnu/sys/utsname.h
/usr/include/aarch64-linux-gnu/sys/vfs.h
/usr/include/aarch64-linux-gnu/sys/vlimit.h
/usr/include/aarch64-linux-gnu/sys/vt.h
/usr/include/aarch64-linux-gnu/sys/vtimes.h
/usr/include/aarch64-linux-gnu/sys/wait.h
/usr/include/aarch64-linux-gnu/sys/xattr.h
/usr/include/aio.h
/usr/include/aliases.h
/usr/include/alloca.h
/usr/include/ar.h
/usr/include/argp.h
/usr/include/argz.h
/usr/include/arpa
/usr/include/arpa/ftp.h
/usr/include/arpa/inet.h
/usr/include/arpa/nameser.h
/usr/include/arpa/nameser_compat.h
/usr/include/arpa/telnet.h
/usr/include/arpa/tftp.h
/usr/include/assert.h
/usr/include/byteswap.h
/usr/include/complex.h
/usr/include/cpio.h
/usr/include/ctype.h
/usr/include/dirent.h
/usr/include/dlfcn.h
/usr/include/elf.h
/usr/include/endian.h
/usr/include/envz.h
/usr/include/err.h
/usr/include/errno.h
/usr/include/error.h
/usr/include/execinfo.h
/usr/include/fcntl.h
/usr/include/features.h
/usr/include/fenv.h
/usr/include/finclude
/usr/include/finclude/aarch64-linux-gnu
/usr/include/finclude/aarch64-linux-gnu/math-vector-fortran.h
/usr/include/fmtmsg.h
/usr/include/fnmatch.h
/usr/include/fstab.h
/usr/include/fts.h
/usr/include/ftw.h
/usr/include/gconv.h
/usr/include/getopt.h
/usr/include/glob.h
/usr/include/gnu-versions.h
/usr/include/grp.h
/usr/include/gshadow.h
/usr/include/iconv.h
/usr/include/ifaddrs.h
/usr/include/inttypes.h
/usr/include/langinfo.h
/usr/include/lastlog.h
/usr/include/libgen.h
/usr/include/libintl.h
/usr/include/limits.h
/usr/include/link.h
/usr/include/locale.h
/usr/include/malloc.h
/usr/include/math.h
/usr/include/mcheck.h
/usr/include/memory.h
/usr/include/mntent.h
/usr/include/monetary.h
/usr/include/mqueue.h
/usr/include/net
/usr/include/net/ethernet.h
/usr/include/net/if.h
/usr/include/net/if_arp.h
/usr/include/net/if_packet.h
/usr/include/net/if_ppp.h
/usr/include/net/if_shaper.h
/usr/include/net/if_slip.h
/usr/include/net/ppp-comp.h
/usr/include/net/ppp_defs.h
/usr/include/net/route.h
/usr/include/netash
/usr/include/netash/ash.h
/usr/include/netatalk
/usr/include/netatalk/at.h
/usr/include/netax25
/usr/include/netax25/ax25.h
/usr/include/netdb.h
/usr/include/neteconet
/usr/include/neteconet/ec.h
/usr/include/netinet
/usr/include/netinet/ether.h
/usr/include/netinet/icmp6.h
/usr/include/netinet/if_ether.h
/usr/include/netinet/if_fddi.h
/usr/include/netinet/if_tr.h
/usr/include/netinet/igmp.h
/usr/include/netinet/in.h
/usr/include/netinet/in_systm.h
/usr/include/netinet/ip.h
/usr/include/netinet/ip6.h
/usr/include/netinet/ip_icmp.h
/usr/include/netinet/tcp.h
/usr/include/netinet/udp.h
/usr/include/netipx
/usr/include/netipx/ipx.h
/usr/include/netiucv
/usr/include/netiucv/iucv.h
/usr/include/netpacket
/usr/include/netpacket/packet.h
/usr/include/netrom
/usr/include/netrom/netrom.h
/usr/include/netrose
/usr/include/netrose/rose.h
/usr/include/nfs
/usr/include/nfs/nfs.h
/usr/include/nl_types.h
/usr/include/nss.h
/usr/include/obstack.h
/usr/include/paths.h
/usr/include/poll.h
/usr/include/printf.h
/usr/include/proc_service.h
/usr/include/protocols
/usr/include/protocols/routed.h
/usr/include/protocols/rwhod.h
/usr/include/protocols/talkd.h
/usr/include/protocols/timed.h
/usr/include/pthread.h
/usr/include/pty.h
/usr/include/pwd.h
/usr/include/re_comp.h
/usr/include/regex.h
/usr/include/regexp.h
/usr/include/resolv.h
/usr/include/rpc
/usr/include/rpc/auth.h
/usr/include/rpc/auth_des.h
/usr/include/rpc/auth_unix.h
/usr/include/rpc/clnt.h
/usr/include/rpc/key_prot.h
/usr/include/rpc/netdb.h
/usr/include/rpc/pmap_clnt.h
/usr/include/rpc/pmap_prot.h
/usr/include/rpc/pmap_rmt.h
/usr/include/rpc/rpc.h
/usr/include/rpc/rpc_msg.h
/usr/include/rpc/svc.h
/usr/include/rpc/svc_auth.h
/usr/include/rpc/types.h
/usr/include/rpc/xdr.h
/usr/include/rpcsvc
/usr/include/rpcsvc/bootparam.h
/usr/include/rpcsvc/bootparam_prot.h
/usr/include/rpcsvc/bootparam_prot.x
/usr/include/rpcsvc/key_prot.h
/usr/include/rpcsvc/key_prot.x
/usr/include/rpcsvc/klm_prot.h
/usr/include/rpcsvc/klm_prot.x
/usr/include/rpcsvc/mount.h
/usr/include/rpcsvc/mount.x
/usr/include/rpcsvc/nfs_prot.h
/usr/include/rpcsvc/nfs_prot.x
/usr/include/rpcsvc/nlm_prot.h
/usr/include/rpcsvc/nlm_prot.x
/usr/include/rpcsvc/rex.h
/usr/include/rpcsvc/rex.x
/usr/include/rpcsvc/rquota.h
/usr/include/rpcsvc/rquota.x
/usr/include/rpcsvc/rstat.h
/usr/include/rpcsvc/rstat.x
/usr/include/rpcsvc/rusers.h
/usr/include/rpcsvc/rusers.x
/usr/include/rpcsvc/sm_inter.h
/usr/include/rpcsvc/sm_inter.x
/usr/include/rpcsvc/spray.h
/usr/include/rpcsvc/spray.x
/usr/include/sched.h
/usr/include/scsi
/usr/include/scsi/scsi.h
/usr/include/scsi/scsi_ioctl.h
/usr/include/scsi/sg.h
/usr/include/search.h
/usr/include/semaphore.h
/usr/include/setjmp.h
/usr/include/sgtty.h
/usr/include/shadow.h
/usr/include/signal.h
/usr/include/spawn.h
/usr/include/stab.h
/usr/include/stdc-predef.h
/usr/include/stdint.h
/usr/include/stdio.h
/usr/include/stdio_ext.h
/usr/include/stdlib.h
/usr/include/string.h
/usr/include/strings.h
/usr/include/syscall.h
/usr/include/sysexits.h
/usr/include/syslog.h
/usr/include/tar.h
/usr/include/termio.h
/usr/include/termios.h
/usr/include/tgmath.h
/usr/include/thread_db.h
/usr/include/threads.h
/usr/include/time.h
/usr/include/ttyent.h
/usr/include/uchar.h
/usr/include/ucontext.h
/usr/include/ulimit.h
/usr/include/unistd.h
/usr/include/utime.h
/usr/include/utmp.h
/usr/include/utmpx.h
/usr/include/values.h
/usr/include/wait.h
/usr/include/wchar.h
/usr/include/wctype.h
/usr/include/wordexp.h
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/Mcrt1.o
/usr/lib/aarch64-linux-gnu/Scrt1.o
/usr/lib/aarch64-linux-gnu/crt1.o
/usr/lib/aarch64-linux-gnu/crti.o
/usr/lib/aarch64-linux-gnu/crtn.o
/usr/lib/aarch64-linux-gnu/gcrt1.o
/usr/lib/aarch64-linux-gnu/grcrt1.o
/usr/lib/aarch64-linux-gnu/libBrokenLocale.a
/usr/lib/aarch64-linux-gnu/libanl.a
/usr/lib/aarch64-linux-gnu/libc.a
/usr/lib/aarch64-linux-gnu/libc.so
/usr/lib/aarch64-linux-gnu/libc_nonshared.a
/usr/lib/aarch64-linux-gnu/libdl.a
/usr/lib/aarch64-linux-gnu/libg.a
/usr/lib/aarch64-linux-gnu/libm.a
/usr/lib/aarch64-linux-gnu/libmcheck.a
/usr/lib/aarch64-linux-gnu/libpthread.a
/usr/lib/aarch64-linux-gnu/libresolv.a
/usr/lib/aarch64-linux-gnu/librpcsvc.a
/usr/lib/aarch64-linux-gnu/librt.a
/usr/lib/aarch64-linux-gnu/libutil.a
/usr/lib/aarch64-linux-gnu/rcrt1.o
/usr/share
/usr/share/doc
/usr/share/doc/libc6-dev
/usr/share/doc/libc6-dev/NEWS.Debian.gz
/usr/share/doc/libc6-dev/changelog.Debian.gz
/usr/share/doc/libc6-dev/changelog.gz
/usr/share/doc/libc6-dev/copyright
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/lib
/usr/share/gdb/auto-load/lib/aarch64-linux-gnu
/usr/share/gdb/auto-load/lib/aarch64-linux-gnu/libpthread-2.31.so-gdb.py
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libc6-dev
/usr/lib/aarch64-linux-gnu/libBrokenLocale.so
/usr/lib/aarch64-linux-gnu/libanl.so
/usr/lib/aarch64-linux-gnu/libdl.so
/usr/lib/aarch64-linux-gnu/libm.so
/usr/lib/aarch64-linux-gnu/libnss_compat.so
/usr/lib/aarch64-linux-gnu/libnss_dns.so
/usr/lib/aarch64-linux-gnu/libnss_files.so
/usr/lib/aarch64-linux-gnu/libnss_hesiod.so
/usr/lib/aarch64-linux-gnu/libpthread.so
/usr/lib/aarch64-linux-gnu/libresolv.so
/usr/lib/aarch64-linux-gnu/librt.so
/usr/lib/aarch64-linux-gnu/libthread_db.so
/usr/lib/aarch64-linux-gnu/libutil.so
@SSNC-SushilBohaju
Copy link

Copy "bits" directory to "/usr/include" using "cp -r /use/include/aarch......"

@JMurph2015
Copy link
Collaborator

You probably need to change your compilation target from "arm-linux-unknown-gnueabihf" to "aarch64-unknown-linux-gnu". Your header libraries are all installed for the aarch64 architecture, but you're trying to compile for regular 32-bit arm, so the target triple is different (and therefore the library search path is different).

Sorry this is such a late reply. I only occasionally get to my computer that has credentials for my personal GitHub.

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

No branches or pull requests

3 participants