odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
7.03k stars 625 forks source link

Fails to build on freebsd #3013

Open Nomarian opened 11 months ago

Nomarian commented 11 months ago

build_odin.sh expects llvm-config-$number but all llvm-configs executables are named llvm-config$number

--- build_odin.sh   2023-12-09 16:24:58.740299000 -0400
+++ new.sh  2023-12-09 16:25:40.003810000 -0400
@@ -32,11 +32,11 @@
    elif [ -n "$(command -v llvm-config-12)" ]; then LLVM_CONFIG="llvm-config-12"
    elif [ -n "$(command -v llvm-config-11)" ]; then LLVM_CONFIG="llvm-config-11"
    # freebsd
-   elif [ -n "$(command -v llvm-config17)" ]; then  LLVM_CONFIG="llvm-config-17"
-   elif [ -n "$(command -v llvm-config14)" ]; then  LLVM_CONFIG="llvm-config-14"
-   elif [ -n "$(command -v llvm-config13)" ]; then  LLVM_CONFIG="llvm-config-13"
-   elif [ -n "$(command -v llvm-config12)" ]; then  LLVM_CONFIG="llvm-config-12"
-   elif [ -n "$(command -v llvm-config11)" ]; then  LLVM_CONFIG="llvm-config-11"
+   elif [ -n "$(command -v llvm-config17)" ]; then  LLVM_CONFIG="llvm-config17"
+   elif [ -n "$(command -v llvm-config14)" ]; then  LLVM_CONFIG="llvm-config14"
+   elif [ -n "$(command -v llvm-config13)" ]; then  LLVM_CONFIG="llvm-config13"
+   elif [ -n "$(command -v llvm-config12)" ]; then  LLVM_CONFIG="llvm-config12"
+   elif [ -n "$(command -v llvm-config11)" ]; then  LLVM_CONFIG="llvm-config11"
    # fallback
    elif [ -n "$(command -v llvm-config)" ]; then LLVM_CONFIG="llvm-config"
    else

With this change it semi builds (but still fails when running the demo on arrays.)

Feoramund commented 5 months ago

This was fixed in #3489.