public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* avr: freestanding libstdc++
@ 2020-07-19  9:02 Matwey V. Kornilov
  2020-07-20  9:22 ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: Matwey V. Kornilov @ 2020-07-19  9:02 UTC (permalink / raw)
  To: gcc-help

Hi,

I am trying to build freestanding libstdc++ [1] for avr target in gcc
10.1. Initially, I wanted to play with coroutines, so I need <coroutine>.

I use --enable-libstdcxx --disable-host-libstdcxx for configure.

./configure script runs fine with this arguments, but then make fails
with the following:

checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -fno-rtti
-fno-exceptions... no
checking for /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 option to produce PIC...
-fPIC -DPIC
checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 PIC flag -fPIC -DPIC
works... no
checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 static flag -static works... no
checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o... yes
checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o...
(cached) yes
checking whether the /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
-B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
-B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
--sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 linker
(/home/matwey/temp/gcc-10.1.0/build/./gcc/collect-ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... 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:10635: configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory '/home/matwey/temp/gcc-10.1.0/build'
make: *** [Makefile:954: all] Error 2


Is it configuration supported for avr architecture?

[1] https://en.cppreference.com/w/cpp/freestanding


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: avr: freestanding libstdc++
  2020-07-19  9:02 avr: freestanding libstdc++ Matwey V. Kornilov
@ 2020-07-20  9:22 ` Jonathan Wakely
  2020-07-20 11:07   ` Matwey V. Kornilov
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2020-07-20  9:22 UTC (permalink / raw)
  To: Matwey V. Kornilov; +Cc: gcc-help

On Sun, 19 Jul 2020 at 10:04, Matwey V. Kornilov via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi,
>
> I am trying to build freestanding libstdc++ [1] for avr target in gcc
> 10.1. Initially, I wanted to play with coroutines, so I need <coroutine>.
>
> I use --enable-libstdcxx --disable-host-libstdcxx for configure.
>
> ./configure script runs fine with this arguments, but then make fails
> with the following:
>
> checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -fno-rtti
> -fno-exceptions... no
> checking for /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 option to produce PIC...
> -fPIC -DPIC
> checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 PIC flag -fPIC -DPIC
> works... no
> checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 static flag -static works... no
> checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o... yes
> checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o...
> (cached) yes
> checking whether the /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 linker
> (/home/matwey/temp/gcc-10.1.0/build/./gcc/collect-ld) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... 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:10635: configure-target-libstdc++-v3] Error 1
> make[1]: Leaving directory '/home/matwey/temp/gcc-10.1.0/build'
> make: *** [Makefile:954: all] Error 2
>
>
> Is it configuration supported for avr architecture?

I think it's not supported for avr. But I've been meaning to try it
for a few months and try to fix what fails, because I think it would
be really good to be able to use the freestanding parts of the C++
library for Arduino projects.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: avr: freestanding libstdc++
  2020-07-20  9:22 ` Jonathan Wakely
@ 2020-07-20 11:07   ` Matwey V. Kornilov
  0 siblings, 0 replies; 3+ messages in thread
From: Matwey V. Kornilov @ 2020-07-20 11:07 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

пн, 20 июл. 2020 г. в 12:22, Jonathan Wakely <jwakely.gcc@gmail.com>:

> On Sun, 19 Jul 2020 at 10:04, Matwey V. Kornilov via Gcc-help
> <gcc-help@gcc.gnu.org> wrote:
> >
> > Hi,
> >
> > I am trying to build freestanding libstdc++ [1] for avr target in gcc
> > 10.1. Initially, I wanted to play with coroutines, so I need <coroutine>.
> >
> > I use --enable-libstdcxx --disable-host-libstdcxx for configure.
> >
> > ./configure script runs fine with this arguments, but then make fails
> > with the following:
> >
> > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -fno-rtti
> > -fno-exceptions... no
> > checking for /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 option to produce PIC...
> > -fPIC -DPIC
> > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 PIC flag -fPIC -DPIC
> > works... no
> > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 static flag -static
> works... no
> > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o... yes
> > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 supports -c -o file.o...
> > (cached) yes
> > checking whether the /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc
> > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/
> > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
> > --sysroot=/usr/avr/sys-root  -mmcu=avrxmega3 linker
> > (/home/matwey/temp/gcc-10.1.0/build/./gcc/collect-ld) supports shared
> > libraries... yes
> > checking whether -lc should be explicitly linked in... 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:10635: configure-target-libstdc++-v3] Error 1
> > make[1]: Leaving directory '/home/matwey/temp/gcc-10.1.0/build'
> > make: *** [Makefile:954: all] Error 2
> >
> >
> > Is it configuration supported for avr architecture?
>
> I think it's not supported for avr. But I've been meaning to try it
> for a few months and try to fix what fails, because I think it would
> be really good to be able to use the freestanding parts of the C++
> library for Arduino projects.
>

Thank you. It would be great to see working freestanding libstdcxx for avr.

-- 
With best regards,
Matwey V. Kornilov

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-20 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19  9:02 avr: freestanding libstdc++ Matwey V. Kornilov
2020-07-20  9:22 ` Jonathan Wakely
2020-07-20 11:07   ` Matwey V. Kornilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).