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

Compile bug: Trying to compile on a raspi w v2 and failing to compile #11079

Open
RichNeese opened this issue Jan 4, 2025 · 0 comments
Open

Comments

@RichNeese
Copy link

Git commit

git rev-parse HEAD b56f079

Operating systems

Linux

GGML backends

CPU

Problem description & steps to reproduce

Trying to compile on a raspi w v2 and failing to compile

First Bad Commit

No response

Relevant log output

[  2%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-opt.cpp.o
In file included from /usr/include/c++/12/algorithm:61,
                 from /usr/src/llama.cpp/ggml/src/ggml-opt.cpp:8:
/usr/include/c++/12/bits/stl_algo.h: In function ‘void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator<long long int*, vector<long long int> >; _UGenerator = mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>&]’:
/usr/include/c++/12/bits/stl_algo.h:3696:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ changed in GCC 7.1
 3696 |     shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~~~~
/usr/include/c++/12/bits/stl_algo.h:3696:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ changed in GCC 7.1
/usr/src/llama.cpp/ggml/src/ggml-opt.cpp: In function ‘void ggml_opt_dataset_shuffle(ggml_opt_context_t, ggml_opt_dataset_t, int64_t)’:
/usr/src/llama.cpp/ggml/src/ggml-opt.cpp:134:21: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ changed in GCC 7.1
  134 |         std::shuffle(dataset->permutation.begin(), dataset->permutation.end(), opt_ctx->rng);
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/llama.cpp/ggml/src/ggml-opt.cpp:140:17: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ changed in GCC 7.1
  140 |     std::shuffle(dataset->permutation.begin(), dataset->permutation.begin() + ishard_max, opt_ctx->rng);
      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  3%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-threading.cpp.o
[  3%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml-quants.c.o
[  4%] Linking CXX shared library libggml-base.so
[  4%] Built target ggml-base
[  4%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu.c.o
cc: error: arm1176jzf-s does not take any feature options
cc: error: arm1176jzf-s does not take any feature options
@JohannesGaessler JohannesGaessler changed the title Compile bug: Compile bug: Trying to compile on a raspi w v2 and failing to compile Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant