public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Failed to compile gcc cross toolchain.
@ 2021-08-02  3:08 bootmgr
  2021-08-02  6:16 ` Jonathan Yong
  2021-08-02 14:19 ` LIU Hao
  0 siblings, 2 replies; 4+ messages in thread
From: bootmgr @ 2021-08-02  3:08 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 2574 bytes --]

I'm failed to compile libstdc++.
Configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --enable-graphite --enable-languages=c,c++,lto  --enable-mingw-wildcard --enable-threads=mcf --enable-version-specific-runtime-libs --disable-libstdcxx-pch --enable-fully-dynamic-string --enable-large-address-aware --enable-vtable-verify --target=x86_64-w64-mingw32 --with-sysroot=/usr/local
Build: x86_64-linux-gnu Target:x86_64-w64-mingw32 Host: x86_64-linux-gnu


Error Messages:
libtool: compile:  /home/abc/build-gcc/./gcc/xgcc -shared-libgcc -B/home/abc/build-gcc/./gcc -nostdinc++ -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/src -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L/usr/local/x86_64-w64-mingw32/lib -L/usr/local/mingw/lib -isystem /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/mingw/include -B/usr/local/x86_64-w64-mingw32/bin/ -B/usr/local/x86_64-w64-mingw32/lib/ -isystem /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/x86_64-w64-mingw32/sys-include -I/home/abc/gcc-11.2.0/libstdc++-v3/../libgcc -I/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include -I/home/abc/gcc-11.2.0/libstdc++-v3/libsupc++ -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=atexit_thread.lo -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -c ../../../../gcc-11.2.0/libstdc++-v3/libsupc++/atexit_thread.cc -o atexit_thread.o
../../../../gcc-11.2.0/libstdc++-v3/libsupc++/atexit_thread.cc:25:10: fatal error: cstdlib: No such file or directory
   25 | #include <cstdlib>
      |          ^~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:769: atexit_thread.lo] Error 1
make[4]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++'
make[3]: *** [Makefile:568: all-recursive] Error 1
make[3]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3'
make[2]: *** [Makefile:493: all] Error 2
make[2]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3'
make[1]: *** [Makefile:13388: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/home/abc/build-gcc'
make: *** [Makefile:967: all] Error 2

[-- Attachment #2: output.tgz --]
[-- Type: application/x-gzip, Size: 3802 bytes --]

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

* Re: Failed to compile gcc cross toolchain.
  2021-08-02  3:08 Failed to compile gcc cross toolchain bootmgr
@ 2021-08-02  6:16 ` Jonathan Yong
  2021-08-02 14:19 ` LIU Hao
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Yong @ 2021-08-02  6:16 UTC (permalink / raw)
  To: gcc-help

On 8/2/21 3:08 AM, bootmgr--- via Gcc-help wrote:
> I'm failed to compile libstdc++.
> Configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --enable-graphite --enable-languages=c,c++,lto  --enable-mingw-wildcard --enable-threads=mcf --enable-version-specific-runtime-libs --disable-libstdcxx-pch --enable-fully-dynamic-string --enable-large-address-aware --enable-vtable-verify --target=x86_64-w64-mingw32 --with-sysroot=/usr/local
> Build: x86_64-linux-gnu Target:x86_64-w64-mingw32 Host: x86_64-linux-gnu
> 
> 
> Error Messages:
> libtool: compile:  /home/abc/build-gcc/./gcc/xgcc -shared-libgcc -B/home/abc/build-gcc/./gcc -nostdinc++ -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/src -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L/usr/local/x86_64-w64-mingw32/lib -L/usr/local/mingw/lib -isystem /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/mingw/include -B/usr/local/x86_64-w64-mingw32/bin/ -B/usr/local/x86_64-w64-mingw32/lib/ -isystem /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/x86_64-w64-mingw32/sys-include -I/home/abc/gcc-11.2.0/libstdc++-v3/../libgcc -I/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include -I/home/abc/gcc-11.2.0/libstdc++-v3/libsupc++ -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=atexit_thread.lo -O3 -DNDEBUG -march=native -fno-ident -ffunction-sections -fdata-sections -c ../../../../gcc-11.2.0/libstdc++-v3/libsupc++/atexit_thread.cc -o atexit_thread.o
> ../../../../gcc-11.2.0/libstdc++-v3/libsupc++/atexit_thread.cc:25:10: fatal error: cstdlib: No such file or directory
>     25 | #include <cstdlib>
>        |          ^~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:769: atexit_thread.lo] Error 1
> make[4]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++'
> make[3]: *** [Makefile:568: all-recursive] Error 1
> make[3]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3'
> make[2]: *** [Makefile:493: all] Error 2
> make[2]: Leaving directory '/home/abc/build-gcc/x86_64-w64-mingw32/libstdc++-v3'
> make[1]: *** [Makefile:13388: all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory '/home/abc/build-gcc'
> make: *** [Makefile:967: all] Error 2
> 


I just tested against the latest 11.2.0 from git, works fine for me. mcf 
threads is not in git, so I suggest contacting whoever you got the 
source code from for help.

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

* Re: Failed to compile gcc cross toolchain.
  2021-08-02  3:08 Failed to compile gcc cross toolchain bootmgr
  2021-08-02  6:16 ` Jonathan Yong
@ 2021-08-02 14:19 ` LIU Hao
  2021-08-03  4:50   ` bootmgr
  1 sibling, 1 reply; 4+ messages in thread
From: LIU Hao @ 2021-08-02 14:19 UTC (permalink / raw)
  To: bootmgr, gcc-help


[-- Attachment #1.1: Type: text/plain, Size: 1034 bytes --]

在 8/2/21 11:08 AM, bootmgr--- via Gcc-help 写道:
> I'm failed to compile libstdc++.
> Configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --enable-graphite --enable-languages=c,c++,lto  --enable-mingw-wildcard --enable-threads=mcf --enable-version-specific-runtime-libs --disable-libstdcxx-pch --enable-fully-dynamic-string --enable-large-address-aware --enable-vtable-verify --target=x86_64-w64-mingw32 --with-sysroot=/usr/local
> Build: x86_64-linux-gnu Target:x86_64-w64-mingw32 Host: x86_64-linux-gnu
> 
> 

While I do have a hunk for the source file in question [1], failure to find `<cstdlib>` is indeed 
something unusual. It is most likely that you didn't install c++ headers into the correct directory, 
so your (stage1 I guess) compiler failed to find them.


[1] 
https://github.com/lhmouse/MINGW-packages-dev/blob/ddafe5bc97e027627900b95a96eacbcabdc889d7/mingw-w64-gcc-git/9000-gcc-10-branch-Added-mcf-thread-model-support-from-mcfgthread.patch#L218


-- 
Best regards,
LIU Hao


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

* Re:Re: Failed to compile gcc cross toolchain.
  2021-08-02 14:19 ` LIU Hao
@ 2021-08-03  4:50   ` bootmgr
  0 siblings, 0 replies; 4+ messages in thread
From: bootmgr @ 2021-08-03  4:50 UTC (permalink / raw)
  To: LIU Hao; +Cc: gcc-help




















At 2021-08-02 22:19:43, "LIU Hao" <lh_mouse@126.com> wrote:
>在 8/2/21 11:08 AM, bootmgr--- via Gcc-help 写道:
>> I'm failed to compile libstdc++.
>> Configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --enable-graphite --enable-languages=c,c++,lto  --enable-mingw-wildcard --enable-threads=mcf --enable-version-specific-runtime-libs --disable-libstdcxx-pch --enable-fully-dynamic-string --enable-large-address-aware --enable-vtable-verify --target=x86_64-w64-mingw32 --with-sysroot=/usr/local
>> Build: x86_64-linux-gnu Target:x86_64-w64-mingw32 Host: x86_64-linux-gnu
>> 
>> 
>
>While I do have a hunk for the source file in question [1], failure to find `<cstdlib>` is indeed 
>something unusual. It is most likely that you didn't install c++ headers into the correct directory, 
>so your (stage1 I guess) compiler failed to find them.
>
>
>[1] 
>https://github.com/lhmouse/MINGW-packages-dev/blob/ddafe5bc97e027627900b95a96eacbcabdc889d7/mingw-w64-gcc-git/9000-gcc-10-branch-Added-mcf-thread-model-support-from-mcfgthread.patch#L218
>
>
>-- 
>Best regards,
>LIU Hao

>
Maybe it's useful to change it to stdlib.h?

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

end of thread, other threads:[~2021-08-03  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02  3:08 Failed to compile gcc cross toolchain bootmgr
2021-08-02  6:16 ` Jonathan Yong
2021-08-02 14:19 ` LIU Hao
2021-08-03  4:50   ` bootmgr

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).