public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o
@ 2021-04-07 20:16 unlvsur at live dot com
2021-04-07 20:31 ` [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64 wilson at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-07 20:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
Bug ID: 99964
Summary: android(bionic) cannot find crti.o and crtn.o
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
D:\msys64\aarch64-linux-android\aarch64-linux-android\bin\ld.exe: cannot find
crti.o: No such file or directory
D:\msys64\aarch64-linux-android\aarch64-linux-android\bin\ld.exe: cannot find
crtn.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:995: libgcc_s.so] Error 1
make[2]: Leaving directory
'/home/unlvs/gcc_aarcch64-android-build/aarch64-linux-android/libgcc'
make[1]: *** [Makefile:13520: all-target-libgcc] Error 2
make[1]: Leaving directory '/home/unlvs/gcc_aarcch64-android-build'
make: *** [Makefile:974: all] Error 2
bionic simply does not provide crti.o and crtn.o
https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/bionic
I built the x86_64-linux-android toolchain and it succeeds. but fails for
aarch64.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
@ 2021-04-07 20:31 ` wilson at gcc dot gnu.org
2021-04-07 20:33 ` unlvsur at live dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: wilson at gcc dot gnu.org @ 2021-04-07 20:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
Jim Wilson <wilson at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wilson at gcc dot gnu.org
--- Comment #1 from Jim Wilson <wilson at gcc dot gnu.org> ---
(In reply to cqwrteur from comment #0)
> bionic simply does not provide crti.o and crtn.o
> https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/
> bionic
That is the RISC-V Android port in progress. It should not be used for
anything other than RISC-V, as RISC-V patches might have accidentally broken
other targets. Use the official Android sources for Aarch64, or maybe
something distributed by Linaro.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
2021-04-07 20:31 ` [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64 wilson at gcc dot gnu.org
@ 2021-04-07 20:33 ` unlvsur at live dot com
2021-04-07 20:34 ` unlvsur at live dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-07 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #2 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jim Wilson from comment #1)
> (In reply to cqwrteur from comment #0)
> > bionic simply does not provide crti.o and crtn.o
> > https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/
> > bionic
>
> That is the RISC-V Android port in progress. It should not be used for
> anything other than RISC-V, as RISC-V patches might have accidentally broken
> other targets. Use the official Android sources for Aarch64, or maybe
> something distributed by Linaro.
i successfully built my own android linux toolchain on x86_64.
i think this is just a bug in libgcc since crti.o and crtn.o should not get
included.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
2021-04-07 20:31 ` [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64 wilson at gcc dot gnu.org
2021-04-07 20:33 ` unlvsur at live dot com
@ 2021-04-07 20:34 ` unlvsur at live dot com
2021-04-07 20:34 ` unlvsur at live dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-07 20:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #3 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jim Wilson from comment #1)
> (In reply to cqwrteur from comment #0)
> > bionic simply does not provide crti.o and crtn.o
> > https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/
> > bionic
>
> That is the RISC-V Android port in progress. It should not be used for
> anything other than RISC-V, as RISC-V patches might have accidentally broken
> other targets. Use the official Android sources for Aarch64, or maybe
> something distributed by Linaro.
This is my x86_64-linux-android toolchain. I does not need crti and crtn tbh.
https://github.com/expnkx/Windows-Hosted-x86_64-linux-android-GCC-Cross-Compiler
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (2 preceding siblings ...)
2021-04-07 20:34 ` unlvsur at live dot com
@ 2021-04-07 20:34 ` unlvsur at live dot com
2021-04-07 22:52 ` unlvsur at live dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-07 20:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #4 from cqwrteur <unlvsur at live dot com> ---
(In reply to cqwrteur from comment #3)
> (In reply to Jim Wilson from comment #1)
> > (In reply to cqwrteur from comment #0)
> > > bionic simply does not provide crti.o and crtn.o
> > > https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/
> > > bionic
> >
> > That is the RISC-V Android port in progress. It should not be used for
> > anything other than RISC-V, as RISC-V patches might have accidentally broken
> > other targets. Use the official Android sources for Aarch64, or maybe
> > something distributed by Linaro.
>
>
> This is my x86_64-linux-android toolchain. I does not need crti and crtn tbh.
> https://github.com/expnkx/Windows-Hosted-x86_64-linux-android-GCC-Cross-
> Compiler
It does not need crti and crtn tbh.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (3 preceding siblings ...)
2021-04-07 20:34 ` unlvsur at live dot com
@ 2021-04-07 22:52 ` unlvsur at live dot com
2021-04-09 0:28 ` unlvsur at live dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-07 22:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #5 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jim Wilson from comment #1)
> (In reply to cqwrteur from comment #0)
> > bionic simply does not provide crti.o and crtn.o
> > https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/
> > bionic
>
> That is the RISC-V Android port in progress. It should not be used for
> anything other than RISC-V, as RISC-V patches might have accidentally broken
> other targets. Use the official Android sources for Aarch64, or maybe
> something distributed by Linaro.
build of arm-linux-androideabi-g++ is successful too. So it is aarch64 specific
issue for android in libgcc. I think Jakub can help me fix it.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (4 preceding siblings ...)
2021-04-07 22:52 ` unlvsur at live dot com
@ 2021-04-09 0:28 ` unlvsur at live dot com
2021-04-09 0:34 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-09 0:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
cqwrteur <unlvsur at live dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from cqwrteur <unlvsur at live dot com> ---
Hi Jakub.
Any guideline on how to remove crti.o and crtn.o requirement in libgcc for
aarch64-linux-android? I would like to submit a patch to support android (for
x86_64, i686, armv7 and aarch64) on GCC, including the bug fix of libstdc++.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (5 preceding siblings ...)
2021-04-09 0:28 ` unlvsur at live dot com
@ 2021-04-09 0:34 ` mpolacek at gcc dot gnu.org
2021-04-09 0:35 ` unlvsur at live dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-04-09 0:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Why do you keep adding Jakub to CC? He's not a mingw maintainer.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (6 preceding siblings ...)
2021-04-09 0:34 ` mpolacek at gcc dot gnu.org
@ 2021-04-09 0:35 ` unlvsur at live dot com
2021-04-09 0:37 ` unlvsur at live dot com
2021-08-05 0:37 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-09 0:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #8 from cqwrteur <unlvsur at live dot com> ---
(In reply to Marek Polacek from comment #7)
> Why do you keep adding Jakub to CC? He's not a mingw maintainer.
This is not mingw issue. it is libgcc's issue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (7 preceding siblings ...)
2021-04-09 0:35 ` unlvsur at live dot com
@ 2021-04-09 0:37 ` unlvsur at live dot com
2021-08-05 0:37 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: unlvsur at live dot com @ 2021-04-09 0:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #9 from cqwrteur <unlvsur at live dot com> ---
(In reply to Marek Polacek from comment #7)
> Why do you keep adding Jakub to CC? He's not a mingw maintainer.
You get the same error on Linux hosted system too because gcc needs to find
crti.o and crtn.o for aarch64-linux-android targets, no matter what hosted
system you are. It has nothing to do with MinGW-w64 or Msys2 etc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
` (8 preceding siblings ...)
2021-04-09 0:37 ` unlvsur at live dot com
@ 2021-08-05 0:37 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 0:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is really no support for aarch64-linux-android included. The target
headers for aarch64 don't include any support at all.
*** This bug has been marked as a duplicate of bug 101785 ***
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-08-05 0:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 20:16 [Bug libgcc/99964] New: android(bionic) cannot find crti.o and crtn.o unlvsur at live dot com
2021-04-07 20:31 ` [Bug libgcc/99964] android(bionic) cannot find crti.o and crtn.o on aarch64 wilson at gcc dot gnu.org
2021-04-07 20:33 ` unlvsur at live dot com
2021-04-07 20:34 ` unlvsur at live dot com
2021-04-07 20:34 ` unlvsur at live dot com
2021-04-07 22:52 ` unlvsur at live dot com
2021-04-09 0:28 ` unlvsur at live dot com
2021-04-09 0:34 ` mpolacek at gcc dot gnu.org
2021-04-09 0:35 ` unlvsur at live dot com
2021-04-09 0:37 ` unlvsur at live dot com
2021-08-05 0:37 ` pinskia at gcc dot gnu.org
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).