This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segmentation fault


...

On Tue, Mar 5, 2013 at 7:53 PM, Bill Pringlemeir <bpringle@sympatico.ca> wrote:
> On  5 Mar 2013, mwpowellhtx@gmail.com wrote:
>
>> I have a simple Hello World type app, that's all it does, cout <<
>> "Hello, World!" << endl and that's it. That one works when I cross
>> compile and run it on the target.
>
>> Then I work int some more elaborate functionality involving I2C
>> features, and I get segmentation fault.
>
> Have you updated the libraries on the target?  See '*-populate' in your
> Crosstool directory.  Also check the proper libraries are present with
> 'ldd'; there can be a version in ct-ng.  Then it is possible it is your
> code.

I'll be honest, I'm not sure what you mean by *-populate? Or by proper
libraries present in 'ldd'?

Pretty sure it's something like that, because a colleague built
something through his CodeBench (which we do not have), and apparently
was running it.

I like a dummy though want an up to date GCC as much as possible. :-P

Could be different glibc involved?

> hth,
> Bill Pringlemeir.
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]