This is the mail archive of the ecos-discuss@sources.redhat.com 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: redboot_RAM __heap1 undefined


Thanks, Robert.

I have resolved this problem.  I had tried using Build->Generate build tree
from the configuration tool, but this had made no difference.  Using your
suggestion, I further did an 'rm redhat_RAM_*" in my build directory and
performed a fresh build.  This time it failed with a parse error in
target.ld.  I tracked this down to <pkgconf/mlt_arm_snds_ram.ldi> file.

The final fix was to add the "CYG_LABEL_DEFN(__heap1) = ALIGN(0x8);" and the
"#include <cyg/infra/cyg_type.inc>" statements to the
<pkgconf/mlt_arm_snds_ram.ldi> file in the component source repository and
do a complete rebuild as you suggested.  The cyg_type.inc file is needed to
define the CYG_LABEL_DEFN() macro, which if left undefined, causes the parse
error in the loader when parsing the target.ld file.

Jay

-----Original Message-----
From: Robert Cragie [mailto:rcc@jennic.com]
Sent: Wednesday, October 02, 2002 7:03 AM
To: Jay Foster
Subject: RE: [ECOS] redboot_RAM __heap1 undefined


I found similar problems which were fixed by rebuilding the whole tree from
scratch - did you do this?

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Jay Foster
> Sent: 01 October 2002 21:04
> To: 'ecos-discuss@sources.redhat.com'
> Subject: [ECOS] redboot_RAM __heap1 undefined
>
>
> I am building the Samsung SNDS ARM redboot package.  I can configure and
> build the ROM version, but the RAM version won't link.  I get an undefined
> symbol for __heap1.  I have checked the <pkgconf/mlt_arm_snds_ram.ldi>
> loader script file and found that the "CYG_LABEL_DEFN(__heap1) =
> ALIGN(0x8);" statement is missing.  I added this statement to the
> .ldi file
> (in my source repository), but continue to get the same error.
> Anyone know
> how to fix this?
>
> Jay Foster
> jay@systech.com
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>

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


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