FS#56293 - [avr-gcc] Enable libstdc++v3 to avr-gcc package

Attached to Project: Community Packages
Opened by Felipe Magno de Almeida (felipealmeida) - Friday, 10 November 2017, 13:12 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 05 April 2023, 04:30 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Use patch attached to enable libstdc++v3 to compilation of avr-gcc.
I've authored 3 patches which enable the compilation of libstdc++v3 to g++
for the avr backend. Though not everything in the libstd is available, the
whole STL is, which is a huge feature for C++ developers.


Additional info:
* package version(s) avr-gcc-7.2.0-1
* config and/or log files etc.


Steps to reproduce: Apply patch, recompile.
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 05 April 2023, 04:30 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See comments
Comment by Anatol Pomozov (anatolik) - Friday, 10 November 2017, 16:30 GMT
Thanks for the patch, it looks good.

I have a related question - is enabling libstdc++ similar way will be beneficial to arm-none-eabi-gcc and aarch64-linux-gnu-gcc packages?
Comment by Anatol Pomozov (anatolik) - Friday, 10 November 2017, 18:51 GMT
Attempt to use this patch causes a compilation failure:

checking if /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include supports -fno-rtti -fno-exceptions... no
checking for /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include option to produce PIC... -fPIC -DPIC
checking if /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include PIC flag -fPIC -DPIC works... no
checking if /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include static flag -static works... no
checking if /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include supports -c -o file.o... yes
checking if /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include supports -c -o file.o... (cached) yes
checking whether the /home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/xgcc -B/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include linker (/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build/./gcc/collect-ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [Makefile:10616: configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory '/home/anatol/sources/arch/community/avr-gcc/trunk/src/gcc-build'
make: *** [Makefile:891: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Comment by Ivy Foster (escondida) - Friday, 11 October 2019, 00:30 GMT
Is the patch even necessary at this point, or can this be closed?
Comment by Toolybird (Toolybird) - Wednesday, 05 April 2023, 04:30 GMT
libstdc++v3 doesn't appear to be officially supported for this target [1]. We can always resurrect this ticket if anyone ever gets it working.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101867#c13

Loading...