osquery / osquery-toolchain

A LLVM-based toolchain for Linux designed to build a portable osquery
Other
38 stars 22 forks source link

isl: download failed #30

Closed randomizedcoder closed 1 week ago

randomizedcoder commented 1 week ago

G'day,

I'm really trying to use https://github.com/trailofbits/ebpfault, which says it needs osquery-toolchain.

I've successfully built crosstool-ng ( https://github.com/crosstool-ng/crosstool-ng ), but ebpfault seems to want osquery-toolchain.

However, when trying to build osquery-toolchain it's failing to download "isl".

das@u2405:~/osquery-toolchain$ ./build.sh /opt/osquery-toolchain
[INFO ]  Performing some trivial sanity checks
[WARN ]  Number of open files 1024 may not be sufficient to build the toolchain; increasing to 2048
[INFO ]  Build started 20241023.034104
[INFO ]  Building environment variables
[EXTRA]  Preparing working directories
[EXTRA]  Installing user-supplied crosstool-NG configuration
[EXTRA]  =================================================================
[EXTRA]  Dumping internal crosstool-NG configuration
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = x86_64-pc-linux-gnu
[EXTRA]      host   = x86_64-pc-linux-gnu
[EXTRA]      target = x86_64-osquery-linux-gnu
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.06s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[EXTRA]    Retrieving 'isl-0.16.1'
[ERROR]    isl: download failed                                                                                         <---------------------###
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_Abort[scripts/functions@487]
[ERROR]  >>        called from: CT_DoFetch[scripts/functions@2103]
[ERROR]  >>        called from: CT_PackageRun[scripts/functions@2063]
[ERROR]  >>        called from: CT_Fetch[scripts/functions@2174]
[ERROR]  >>        called from: do_isl_get[scripts/build/companion_libs/121-isl.sh@16]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@648]
[ERROR]  >>
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      https://crosstool-ng.github.io/docs/known-issues/
[ERROR]  >>
[ERROR]  >>  If you feel this is a bug in crosstool-NG, report it at:
[ERROR]  >>      https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR]  >>
[ERROR]  >>  Make sure your report includes all the information pertinent to this issue.
[ERROR]  >>  Read the bug reporting guidelines here:
[ERROR]  >>      http://crosstool-ng.github.io/support/
[ERROR]   
[ERROR]  (elapsed: 0:00.94)
[00:02] / gmake: *** [ct-ng:261: build] Error 1
das@u2405:~/osquery-toolchain$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
das@u2405:~/osquery-toolchain$ uname -a
Linux u2405 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Thanks, Dave

directionless commented 1 week ago

@alessandrogario @Smjert Either of you have guidance here?

Smjert commented 1 week ago

Keep in mind that the repo here was updated to Clang 11 but osquery (and I think ebpfault too) still uses Clang 9, so ebpfault may have some issues compiling. This repo has also pre-built binaries, which I think were the ones that the ebpfault README was suggesting to use.