Comments (3)
Conda-forge compilers have their own sysroot, which means they look for headers and libraries in a particular location. Usually we create CDTs for this purpose. Potentially one could work around this (in an admittedly somewhat hacky way) by symlinking headers and libraries into the compiler's sysroot.
Perhaps others have better suggestions
from ctng-compilers-feedstock.
You can add a flag to gcc to change the sysroot to /
. Please see gcc docs on this.
from ctng-compilers-feedstock.
Thanks Isuru :)
For example...
$ gcc -xc -E -v --sysroot=/ -
Reading specs from /datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/specs
COLLECT_GCC=gcc
Target: x86_64-conda-linux-gnu
Configured with: /home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/.build/x86_64-conda-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda-linux-gnu --prefix=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/gcc_built --with-sysroot=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/gcc_built/x86_64-conda-linux-gnu/sysroot --enable-languages=c,c++,fortran,objc,obj-c++ --with-pkgversion='crosstool-NG 1.24.0.133_b0863d8_dirty' --enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp --enable-libquadmath --enable-libquadmath-support --enable-libsanitizer --enable-libmpx --with-gmp=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/.build/x86_64-conda-linux-gnu/buildtools --with-mpfr=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/.build/x86_64-conda-linux-gnu/buildtools --with-mpc=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/.build/x86_64-conda-linux-gnu/buildtools --with-isl=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/.build/x86_64-conda-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/gcc_built/x86_64-conda-linux-gnu/sysroot --enable-long-long --enable-default-pie
Thread model: posix
gcc version 9.3.0 (crosstool-NG 1.24.0.133_b0863d8_dirty)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../libexec/gcc/x86_64-conda-linux-gnu/9.3.0/cc1 -E -quiet -v -iprefix /datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/ -isysroot / - -mtune=generic -march=x86-64
ignoring duplicate directory "/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/../../lib/gcc/x86_64-conda-linux-gnu/9.3.0/include"
ignoring nonexistent directory "/home/conda/feedstock_root/build_artifacts/ctng-compilers_1618239181388/work/gcc_built/x86_64-conda-linux-gnu/sysroot/include"
ignoring duplicate directory "/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/../../lib/gcc/x86_64-conda-linux-gnu/9.3.0/include-fixed"
ignoring duplicate directory "/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/../../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/include
/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/include-fixed
/datasets/jkirkham/miniconda/envs/rapids2108dev/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/include
/usr/include
End of search list.
Note: /usr/include
shows up at the end
from ctng-compilers-feedstock.
Related Issues (20)
- Update to 9.5.0 HOT 1
- @conda-forge-admin rerender HOT 1
- [Bug] `gxx` 11.2.0 is not compatible with `nvidia::cuda-nvcc`
- libstdc++ is missing `gdb` pretty-printer integration HOT 6
- old glibc forcing syscall HOT 5
- ldd wrapper? HOT 1
- dlopen of libgomp 13.1.0 and 13.2.0 with RTLD_DEEPBIND on Python fail with segmentation fault on Ubuntu 22.04 HOT 15
- @conda-forge-admin, rerender HOT 1
- libgccjit support HOT 2
- Fortran compiler lacks ISO_Fortran_binding.h HOT 1
- Debug symbols for libstdc++ in gxx_impl_linux-64 HOT 1
- tzdb support in libstdcxx 14
- Conda Error during Conda update.
- ppc64le: Issue with gcc-12 and gcc-13 HOT 7
- gcc-ar is missing LTO plugin HOT 2
- C++ libs for mingw - use vc14_runtime? HOT 1
- Debug build of libgomp?
- libGL Error with Ubuntu 22.04 HOT 60
- latest gcc / gxx 7.5.0 builds have `GLIBC_2.14` symbols HOT 1
- Assembly error (on Linux ARM): Error: unknown pseudo-op: `.alig' HOT 3
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 ctng-compilers-feedstock.