TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: DAVID TAYLOR
from: THE NATURAL PHILOSOPHER
date: 2020-05-26 16:44:00
subject: Re: ARM7 program for Rasp

On 26/05/2020 15:30, David Taylor wrote:
> On 26/05/2020 14:01, Chris Green wrote:
> []
>> Yes, suggests that for some reason it's *linking* to a bad library.
>> I'm surprised that "Hello World" fails though as it surely is using
>> hardly any libraries.
>>
>> Though, wait a minute, isn't it just telling you there's a bug in the
>> library (same way as I was saying in my original message).  The
>> "illegal instruction" is just the bug in the library code trying to
>> execute something it shouldn't.
>
> Agreed, and it could be that I'm linking against an ARMv7 library but
> running on ARMv6.  The programs in the suite I've tested (the gpsd
> service itself, cgps and ubxtool) all work as expected, so they must
> have been linked slightly differently than the simple -lgps that I'm
> testing with.
>
> This is rather beyond the level of (Linux) knowledge I have or normally
> need.  Sudo apt-get install normally does me nicely!
>
It may very well be the bit of library that calls main():

There's a lot of crap happens before the processor even gets to execute
your code.

I have no idea how to ensurer THAT library is invoked correctly because
its pretty invisible

--
“But what a weak barrier is truth when it stands in the way of an
hypothesis!”

Mary Wollstonecraft

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.