8000 Can't build and other questions. · Issue #41 · akawashiro/sloader · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't build and other questions. #41
Open
@fzakaria

Description

@fzakaria

Hello!

I am trying to build the repository but facing an issue with the libc_mapping.c file

FAILED: CMakeFiles/sloader.dir/libc_mapping.cc.o 
/usr/bin/c++ -DC10_USE_GLOG=1 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/build/glog -I/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/build/glog/src -I/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/raw_write -O2 -g -DNDEBUG -std=gnu++20 -Wall -Werror -MD -MT CMakeFiles/sloader.dir/libc_mapping.cc.o -MF CMakeFiles/sloader.dir/libc_mapping.cc.o.d -o CMakeFiles/sloader.dir/libc_mapping.cc.o -c /usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc
/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc:306:53: error: ‘__dprintf_chk’ was not declared in this scope
  306 |     {"__dprintf_chk", reinterpret_cast<Elf64_Addr>(&__dprintf_chk)},
      |                                                     ^~~~~~~~~~~~~
/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc:310:60: error: ‘__explicit_bzero_chk’ was not declared in this scope; did you mean ‘explicit_bzero’?
  310 |     {"__explicit_bzero_chk", reinterpret_cast<Elf64_Addr>(&__explicit_bzero_chk)},
      |                                                            ^~~~~~~~~~~~~~~~~~~~
      |                                                            explicit_bzero
/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc:311:51: error: ‘__fdelt_chk’ was not declared in this scope
  311 |     {"__fdelt_chk", reinterpret_cast<Elf64_Addr>(&__fdelt_chk)},
      |                                                   ^~~~~~~~~~~
/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc:312:51: error: ‘__fgets_chk’ was not declared in this scope
  312 |     {"__fgets_chk", reinterpret_cast<Elf64_Addr>(&__fgets_chk)},
      |                                                   ^~~~~~~~~~~
/usr/local/google/home/fmzakari/code/github.com/akawashiro/sloader/libc_mapping.cc:313:60: error: ‘__fgets_unlocked_chk’ was not declared in this scope; did you mean ‘fgets_unlocked’?
  313 |     {"__fgets_unlocked_chk", reinterpret_cast<Elf64_Addr>(&__fgets_unlocked_chk)},

I can't seem to find these functions located anywhere which makes sense.
I audited the Dockerfile which is included and run the same commands but I get the same failure.

  1. Is there a missing implementation that needs to be included?
  2. Why is there chibicc in the repo ? I can't find any use of it.
  3. I also installed apt-get install -y ninja-build cmake gcc g++ git python3 python3-distutils python3-dev python3-pip nasm clang-format libcap-dev tmux zsh neovim on my machine..

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0