Comments (6)
The file is included wrongly as $PREFIX/lib/*-gdb.py
. Can you figure out the reason and send a PR to fix it?
from ctng-compilers-feedstock.
I am somewhat new to conda, so I have three questions to investigate this further
- I ran build-locally.py successfully. How do I now install the newly built packages, to see where they are placed?
- Do we need to check whether we're cross-compiling? The commented out
# Probably don't want to do this for cross-compilers
# mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/
# cp ${SRC_DIR}/gcc_built/${CHOST}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/
seems to suggest so, but it might need the target triplet x86_64-conda-linux-gnu
as a prefix, to match the location of libstdc++.so
3. It seems like the standard library .so
is provided by multiple packages:
./libstdcxx-ng-9.5.0-hf86b28c_16/lib/libstdc++.so.6.0.28
./gxx_impl_linux-64-9.5.0-h6c5bc03_16/lib/libstdc++.so.6.0.28-gdb.py
./gcc_bootstrap_linux-64-9.5.0-hf039093_10/lib/libstdc++.so.6.0.28-gdb.py
./gcc_bootstrap_linux-64-9.5.0-hf039093_10/x86_64-conda-linux-gnu/lib/libstdc++.so.6.0.28
./gcc_impl_linux-64-9.5.0-h6c5bc03_16/x86_64-conda-linux-gnu/lib/libstdc++.so.6.0.28
is libstdcxx-ng even necessary in that case? I'd assume that gxx_impl will be the one that is used in the end?
I can already tell you that the relevant line is make -C $CHOST/libstdc++-v3/python prefix=${PREFIX} install
in install-g++.sh
, but didn't dig further. If gcc used the library from libstdcxx-ng, at least the relative path would be correct, but if it used the one from gxx_impl, it would be missing the x86_64-conda-linux-gnu/
prefix.
from ctng-compilers-feedstock.
It seems like gxx_impl_linux-64 9.5.0 should work fine. Can you try updating gxx_impl_linux-64 in your env?
from ctng-compilers-feedstock.
Not sure what you're saying - I built gxx_impl_linux-64 9.5.0, and it contains the correct file, but in the wrong location. I'll see if I can fix it. In general, putting the file into auto-load
regardless of whether we're cross-compiling or not seems safe, since the (not binary, but structural) layout of the types is pretty much architecture-independent.
from ctng-compilers-feedstock.
@upsj Were you able to make any more progress on this? This issue has been bugging me for a while now. Your write up helped me understand what was going on but I haven't been able to figure out a good workaround for this.
from ctng-compilers-feedstock.
@isuruf can you please explain why this code is commented out?
ctng-compilers-feedstock/recipe/install-g++.sh
Lines 31 to 33 in 54154d3
Without the *-gdb.py
in the right place you don't get pretty-printing for libstdc++ symbols in debuggers. I see there is a file under $CONDA_PREFIX/lib/-gdb.py
and I'm not sure how it gets there.
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`
- 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
- @conda-forge-admin rerender HOT 1
- GCC 14.2 Released
- 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.