This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


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: Re: context.S problem


 
Hi Jonathan,

This is not context.S issue at all. It's reated to the fgrep.

In my environment, fgrep just contains:
!<syslink>grep

However, fgrep can not be executed as below:
$fgrep
/usr/bin/fgrep: 1: Syntax error: redirection unexpected.

If I just copy grep.exe to fgrep.exe, I can build my eCos image smoothly.

Does this mean that somehow I lost symlink here? Do you know how to fix it?

Many thanks,
Wendell



-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Wendell Liu
Sent: September 11, 2006 10:44 AM
To: 'Jonathan Larmour'
Cc: 'mirko massignani'; 'eCos discussion'
Subject: RE: [ECOS] Re: context.S problem

Thanks a lot, Jonathan.

The complete compiling flags are:

sh-elf-gcc -c -I/cygdrive/c/cygwin/tmp/ram/install/include
-I/cygdriver/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current
-I/cygdriver/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src
-I/cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/tests
-I. -I/cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src/
-finline-limit=7000 -ml -m4 -Wall -Wpointer-arith -Wstrict-prototypes
-Winline -Wundef -ggdb -02 -ffunction-sections -fdata-sections 
-fno-exceptions   -Wp,-MD,src/context.tmp -o src/hal_sh_arch_context.o
/cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src/context.S

The two SH header files:
...install\include\cyg\hal\sh4_offsets.inc
...install\include\cyg\hal\sh_offset.inc 

Both are empty, i.e. 0 size.

If I replaced these two empty files with pre-compiled files, then I can
build the image.

I don't know when to create these two SH header files? Could you instruct
here?

Appreciate your help,
Wendell

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Jonathan
Larmour
Sent: September 11, 2006 10:08 AM
To: Wendell Liu
Cc: 'mirko massignani'; 'eCos discussion'
Subject: [ECOS] Re: context.S problem

Wendell Liu wrote:
> Thanks, Jonathan.
> 
> I didn't put all the flags in the email.

Then please do.

> Yes, I read almost all the manuals
> and the Anthony J. Massa's eCos book. The build should be quite 
> straight forward. My issue is probably related to my computer 
> setting/environments etc. Could you give me some hints here?

The line in question in context.S does not appear to have a relocation on it
*unless* CYGARC_JMPBUF_SP has somehow not been defined. Check the contents
of install/include/cyg/hal/sh_offsets.inc. And try a clean build from an
empty tree.

Jifl

> -----Original Message-----
> From: Jonathan Larmour [mailto:jifl@ecoscentric.com]
> Sent: September 10, 2006 4:54 PM
> To: Wendell Liu
> Cc: 'mirko massignani'; 'eCos discussion'
> Subject: Re: context.S problem
> 
> Wendell Liu wrote:
>>  
>> Hello, Andrew and other eCos experts,
>>
>> I just started using eCos with SH4 for my next project, and I try to 
>> build eCos image. On my machine, I always encountered the following
> errors:
>> sh-elf-gcc -c -I/... src/hal_sh_arch_context.o 
>> /cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src/con
>> t
>> ext.S
>>
>>
>
/cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src/context.S:
>> Assembler messages:
>>
>
/cygdrive/c/cygwin/opt/ecos/ecos/packages/hal/sh/arch/current/src/context.S:
>> 257:
>> Error: Cannot represent relocation type BFD_RELOC_SH_IMM4BY4
> 
> I don't see the correct compiler flags there. How are you trying to 
> build eCos? Have you read the user manual?
> 
> Jifl


-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
------["The best things in life aren't things."]------      Opinions==mine

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss




--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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