Skip to content

[WSL2] [Installation] make not compiling #679

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

Closed
4 tasks done
smokeyhallow opened this issue Apr 1, 2023 · 7 comments
Closed
4 tasks done

[WSL2] [Installation] make not compiling #679

smokeyhallow opened this issue Apr 1, 2023 · 7 comments
Labels
need more info The OP should provide more details about the issue

Comments

@smokeyhallow
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior

make should compile.

Current Behavior

make the second step after cloning the repo printed the help rather than "making".

help text for `make`

  $ make  [options]

  Options:
    --help             Show this help output
    --version          Show package version
    --debug            Enable extended log output

  Targets:
    UNAME_S            Run target UNAME_S
    UNAME_P            Run target UNAME_P
    UNAME_M            Run target UNAME_M
    CCV                Run target CCV
    CXXV               Run target CXXV
    default            Run target default
    ggml.o             Run target ggml.o
    llama.o            Run target llama.o
    common.o           Run target common.o
    clean              Run target clean
    main               Run target main
    quantize           Run target quantize
    perplexity         Run target perplexity
    embedding          Run target embedding
    tests              Run target tests

  Templates:
    ava                Generate ava setup (ava)
    cli                Generate cli setup (minimist, tabtab, ge...)
    default            Generate default setup (babel-cli, babel-plu...)
    eslint             Generate eslint setup (eslint, eslint-confi...)
    livereactload      Generate livereactload setup (babel-plugin-react-t...)
    mocha              Generate mocha setup (mocha)
    simple             Generate simple setup

Environment and Context

OS

  • WSL2
  • Ubuntu 22.04
  • Windows 10

Hardware

  • 32GB RAM
  • AMD
  • Nvidia 3060

$ lscpu

`lscpu`

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   48 bits physical, 48 bits virtual
Byte Order:                      Little Endian
CPU(s):                          16
On-line CPU(s) list:             0-15
Vendor ID:                       AuthenticAMD
Model name:                      AMD Ryzen 7 3700X 8-Core Processor
CPU family:                      23
Model:                           113
Thread(s) per core:              2
Core(s) per socket:              8
Socket(s):                       1
Stepping:                        0
BogoMIPS:                        7186.49
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext ssbd ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr virt_ssbd arat umip rdpid
Hypervisor vendor:               Microsoft
Virtualization type:             full
L1d cache:                       256 KiB (8 instances)
L1i cache:                       256 KiB (8 instances)
L2 cache:                        4 MiB (8 instances)
L3 cache:                        16 MiB (1 instance)
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Retpolines, IBPB conditional, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected

  • Operating System, e.g. for Linux:

$ uname -a

Linux windows 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

SDK version, e.g. for Linux:

$ python3 --version => 3.9.12
$ make --version => 0.8.1
$ g++ --version => g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
@gjmulder
Copy link
Collaborator

gjmulder commented Apr 1, 2023

@smokeyhallow good first effort at a description. Please copy/paste from your terminal every step you did from cloning the repo until the make.

@gjmulder gjmulder changed the title [User] Insert summary of your issue or enhancement.. make should compile Apr 1, 2023
@gjmulder gjmulder added invalid This doesn't seem right need more info The OP should provide more details about the issue 🦙. llama and removed invalid This doesn't seem right labels Apr 1, 2023
@smokeyhallow
Copy link
Author

I got stuck exactly at the second step. There is no other steps!

I followed the README's Usage section:

# exact steps from README
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make

RESULT: <help from make>

@smokeyhallow smokeyhallow changed the title make should compile [WSL2] [Installation] make notcompiling Apr 1, 2023
@smokeyhallow smokeyhallow changed the title [WSL2] [Installation] make notcompiling [WSL2] [Installation] make not compiling Apr 1, 2023
@smokeyhallow
Copy link
Author

But interestingly gpt4all worked for me! So, my system resources/requirements isn't the issue! Also, I am using conda if that helps

@saradhix
Copy link

saradhix commented Apr 1, 2023

I guess you are not using gnu's make util.
make --version should give value around 4.3, something similar to this.

GNU Make 4.3 Built for x86_64-pc-linux-gnu

@gjmulder gjmulder removed the 🦙. llama label Apr 1, 2023
@smokeyhallow
Copy link
Author

I guess you are not using gnu's make util. make --version should give value around 4.3, something similar to this.

GNU Make 4.3 Built for x86_64-pc-linux-gnu

Exactly!!! I am not using it, but it wasn't mentioned anywhere!!! Let me try this!

@smokeyhallow
Copy link
Author

Oh wow! I found the solution after days of scratching of my head!

My make was pointing to some other executable put in the path by volta.sh!!! Such a shit show! I don't know why they do it! Just used absolute path to the executable and it worked!!!

@gjmulder
Copy link
Collaborator

gjmulder commented Apr 2, 2023

It is one of the dangers of programming in JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info The OP should provide more details about the issue
Projects
None yet
Development

No branches or pull requests

3 participants