ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Linking question


From: Stuart Hughes
Subject: Re: [Ltib] Linking question
Date: Thu, 19 May 2011 20:19:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

Hi Luka,

Which platform is this ? is it from Freescale or from this public
project?  If from Freescale you need to ask them.

If this is a Coldfire with MMU (or other MMU), then you should not have
to had anything to your linker path.  If it's noMMU then I don't think
pthreads work.

Do not manually add ld xxx commands to your build, just call gcc.  So
you just need to add -l pthread to your gcc line.

The problem could be gcc related.  I don't think gcc-4.4.45 is used in
the public LTIB.

Regards, Stuart



On 18/05/11 15:46, Luka Rahne wrote:
> I am new to  Linux, but still, using instructions I was able to setup
> environment, compiled and also able to remotely debuged printf("Hello
> World");
> 
> I have problem using any other than standard libraries.
> 
> I am building for MCF54418 and if I add <ltib>/rootfs/usr/lib to
> linker path and try to build "pthread.h" application HelloWorld
> http://pastebin.com/ugYmSiFU I get error:
> 
> Compiling: main.c
> Linking console executable: bin/Debug/HelloWorld
> /opt/freescale/usr/local/gcc-4.4.54-eglibc-2.10.54/m68k-linux/lib/gcc/m68k-linux-gnu/4.4.1/../../../../m68k-linux-gnu/bin/ld:
> m68k:isa-c:emac architecture of input file
> `/home/ralu/ltib/ltib-modelo-20100709/rootfs/lib/libpthread-2.10.1.so'
> is incompatible with m68k:isa-b:float:emac output
> collect2: ld returned 1 exit status
> Process terminated with status 1 (0 minutes, 0 seconds)
> 0 errors, 0 warnings
> 
> 
> How should solve this? I have been trying this for almost 2 days.
> 
> Luka
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]