public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* ld.bfd: cannot find crtbegin_so.o
@ 2015-04-27 21:19 Erik Leunissen
  2015-04-27 21:24 ` Erik Leunissen
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Leunissen @ 2015-04-27 21:19 UTC (permalink / raw)
  To: crossgcc

Hi,

Using ct-ng 1.20.0, I've built a cross arm toolchain 
(arm-unknown-linux-gnueabihf). Several large packages have been 
succesfully built with it.

Now I'm building openssl and get the following error:

/opt/toolchains/arm-unknown-linux-gnueabihf/bin/../lib/gcc/arm-ahasystems-linux-gnueabihf/4.9.1/../../../../arm-unknown-linux-gnueabihf/bin/ld.bfd: 
cannot find crtbegin_so.o: No such file or directory

Does anyone see what could be done to remedy this?

Thanks in advance,

Erik Leunissen.
--

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ld.bfd: cannot find crtbegin_so.o
  2015-04-27 21:19 ld.bfd: cannot find crtbegin_so.o Erik Leunissen
@ 2015-04-27 21:24 ` Erik Leunissen
  2015-04-27 21:56   ` Bryan Hundven
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Leunissen @ 2015-04-27 21:24 UTC (permalink / raw)
  To: crossgcc

On 27/04/15 23:19, Erik Leunissen wrote:
>
> /opt/toolchains/arm-unknown-linux-gnueabihf/bin/../lib/gcc/arm-ahasystems-linux-gnueabihf/4.9.1/../../../../arm-unknown-linux-gnueabihf/bin/ld.bfd:
> cannot find crtbegin_so.o: No such file or directory
>

By the way: the following files do exist:

   crtbegin.o crtbeginS.o crtbeginT.o


Erik Leunissen
--



> Does anyone see what could be done to remedy this?
>
> Thanks in advance,
>
> Erik Leunissen.
> --
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ld.bfd: cannot find crtbegin_so.o
  2015-04-27 21:24 ` Erik Leunissen
@ 2015-04-27 21:56   ` Bryan Hundven
  2015-04-28 20:27     ` Erik Leunissen
  0 siblings, 1 reply; 5+ messages in thread
From: Bryan Hundven @ 2015-04-27 21:56 UTC (permalink / raw)
  To: Erik Leunissen; +Cc: crossgcc maillist

Erik,

On Mon, Apr 27, 2015 at 2:23 PM, Erik Leunissen <elns@xs4all.nl> wrote:
> On 27/04/15 23:19, Erik Leunissen wrote:
>> /opt/toolchains/arm-unknown-linux-gnueabihf/bin/../lib/gcc/arm-ahasystems-linux-gnueabihf/4.9.1/../../../../arm-unknown-linux-gnueabihf/bin/ld.bfd:
>> cannot find crtbegin_so.o: No such file or directory
>>
>
> By the way: the following files do exist:
>
>   crtbegin.o crtbeginS.o crtbeginT.o

crtbegin_so.o doesn't seem to be in this second list you provided.
I'm not sure what that file is.

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ld.bfd: cannot find crtbegin_so.o
  2015-04-27 21:56   ` Bryan Hundven
@ 2015-04-28 20:27     ` Erik Leunissen
  2015-04-28 20:59       ` Erik Leunissen
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Leunissen @ 2015-04-28 20:27 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: crossgcc maillist

On 27/04/15 23:56, Bryan Hundven wrote:
> Erik,
>
> On Mon, Apr 27, 2015 at 2:23 PM, Erik Leunissen <elns@xs4all.nl> wrote:
>> On 27/04/15 23:19, Erik Leunissen wrote:
>>> /opt/toolchains/arm-unknown-linux-gnueabihf/bin/../lib/gcc/arm-ahasystems-linux-gnueabihf/4.9.1/../../../../arm-unknown-linux-gnueabihf/bin/ld.bfd:
>>> cannot find crtbegin_so.o: No such file or directory
>>>
>>
>> By the way: the following files do exist:
>>
>>   crtbegin.o crtbeginS.o crtbeginT.o
>
> crtbegin_so.o doesn't seem to be in this second list you provided.

Yes, it isn't there, and that's what ld.bfd considers an error.

> I'm not sure what that file is.

Well, it is required by ld.bfd, which is part of the toolchain as built 
by me, using ct-ng.

I can see two cases:

1. ld.bfd is flawed because it ought not require the file crtbegin_so.o
2. ld.bfd is righteously requiring the file crtbegin_so.o, and that it 
ought be included in the toolchain.

Although different in nature, both seem to me errors in the toolchain.

I myself am not familiar with toolchain intrinsics as C runtimes. 
Because of that, it is well possible that there is a case 3. which I 
fail to see.

That's why I am here reporting and seeking help/insight/direction to 
find out what's wrong.

Sincerely,

Erik.

>
> -Bryan
>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ld.bfd: cannot find crtbegin_so.o
  2015-04-28 20:27     ` Erik Leunissen
@ 2015-04-28 20:59       ` Erik Leunissen
  0 siblings, 0 replies; 5+ messages in thread
From: Erik Leunissen @ 2015-04-28 20:59 UTC (permalink / raw)
  To: crossgcc

On 28/04/15 22:27, Erik Leunissen wrote:
>
> I can see two cases:
>
> 1. ld.bfd is flawed because it ought not require the file crtbegin_so.o
> 2. ld.bfd is righteously requiring the file crtbegin_so.o, and that it
> ought be included in the toolchain.
>

And here I found the place where crtbegin_so is referenced in the toolchain:

 > grep -r crtbegin_so *
lib/gcc/arm-unknown-linux-gnueabihf/4.9.1/plugin/include/config/linux-android.h: 
  "%{shared: crtbegin_so%O%s;:"                    \


Greetings,

Erik.
--


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2015-04-28 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 21:19 ld.bfd: cannot find crtbegin_so.o Erik Leunissen
2015-04-27 21:24 ` Erik Leunissen
2015-04-27 21:56   ` Bryan Hundven
2015-04-28 20:27     ` Erik Leunissen
2015-04-28 20:59       ` Erik Leunissen

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