Comments (1)
As mentioned in #134, I've encountered same issue here for stddef.h
which should be in "-isystemexternal/sysroot_aarch64//lib/gcc/aarch64-linux/10.3.0/include"
. When I patch the gcc-toolchain
repo to also include /usr/include/linux
I see it in the invocation, "-isystemexternal/sysroot_aarch64//usr/include/linux"
but still can't find it:
running: "/home/kris/.cache/bazel/_bazel_kris/ebd20a16b5bb6af41a7a481997cc3984/sandbox/linux-sandbox/1077/execroot/my-code/external/gcc_toolchain_aarch64/bin/gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "--sysroot" "external/sysroot_aarch64" "-no-canonical-prefixes" "-fno-canonical-system-headers" "-Wno-builtin-macro-redefined" "-D__DATE__=\"redacted\"" "-D__TIMESTAMP__=\"redacted\"" "-D__TIME__=\"redacted\"" "-fdiagnostics-color=always" "-nostdinc" "-Bexternal/gcc_toolchain_aarch64/bin" "-isystemexternal/sysroot_aarch64//aarch64-linux/include/c++/10.3.0" "-isystemexternal/sysroot_aarch64//aarch64-linux/include/c++/10.3.0/aarch64-linux" "-isystemexternal/sysroot_aarch64//lib/gcc/aarch64-linux/10.3.0/include-fixed" "-isystemexternal/sysroot_aarch64//lib/gcc/aarch64-linux/10.3.0/include" "-isystemexternal/sysroot_aarch64//usr/include" "-isystemexternal/sysroot_aarch64//usr/include/linux" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-ffunction-sections" "-fdata-sections" "-fmerge-all-constants" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/home/kris/.cache/bazel/_bazel_kris/ebd20a16b5bb6af41a7a481997cc3984/sandbox/linux-sandbox/1077/execroot/my-code/bazel-out/k8-fastbuild-ST-87f845362927/bin/external/crate_index__zstd-sys-2.0.7-zstd.1.5.4/zstd-sys_build_script.out_dir/zstd/lib/common/error_private.o" "-c" "zstd/lib/common/error_private.c"
cargo:warning=In file included from zstd/lib/common/error_private.h:24,
cargo:warning= from zstd/lib/common/error_private.c:13:
cargo:warning=zstd/lib/common/../zstd_errors.h:19:10: fatal error: stddef.h: No such file or directory
cargo:warning= 19 | #include <stddef.h> /* size_t */
cargo:warning= | ^~~~~~~~~~
cargo:warning=compilation terminated.
exit status: 1
from gcc-toolchain.
Related Issues (20)
- Fill in readme and user documentation HOT 2
- Rename master branch to main
- How to achieve better build performance? HOT 11
- WORKSPACE snippet to use gcc-toolchain HOT 3
- macOS/Windows support HOT 6
- Error during bazel build: cannot find /usr/lib/libc.so.6 HOT 4
- [Bug]: Build fails for .s assembly files HOT 1
- [Bug]: C compilation breaks when using gcc 12 HOT 3
- [Bug]: libstdc++ is not bundled HOT 1
- [Bug]: Keeping `--cpu=k8` on macos throws `does not contain a toolchain for cpu 'k8'`. Removing the cpu flag breaks cross-platform caching for remote builds with the same remote_host architecture. HOT 1
- [Bug]: `gcc_toolchain` parameters like `includes` replaces all items instead of being extras as documented HOT 1
- Why build sysroot from source code HOT 2
- [FR]: can copts come after extra_cxxflags?
- [Bug]: aarch64 target failing HOT 2
- [Bug]: Hermetic GCC toolchain and @io_bazel_rules_go produce warnings building debug-mode shared libraries HOT 1
- [Bug]: incompatible_sandbox_hermetic_tmp (on by default in bazel 7.0.0) breaks the gcc wrapper HOT 1
- Moving from aspect-build to f0rmiga broke builds HOT 2
- Upload tarballs with every release HOT 1
- Unable to use gcc-toolchain with configure_make HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcc-toolchain.