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]

Re: compilation hello program error


>>>>> "Hong" == Hong Hsu <honghsu@bellatlantic.net> writes:

Hong>   As couldn't find FAQs of this eCos discuss, I send the
Hong> question to you.

Hong> I use Redhat Linux kernel 2.4.2 on Intel Pentuim 4.  For
Hong> installation of eCos, the
Hong> /opt/ecos/ecos-1.3.1/tools/bin:/tools/H-i686-pc-linux-gnu/bin:$PATH
Hong> is added to PATH, but I do not have
Hong> /tools/h-i686-pc-linux-gnu/bin directory.  what is supporse to
Hong> be replaced by this?

/tools/H-i686-pc-linux-gnu is probably
/opt/ecos/ecos-1.3.1/tools/H-i686-pc-linux-gnu 

Note that eCos 1.3.1 is waaaaaaay old. You'd be better of using the
latest CVS version.

Hong> Since I plan to use synthetic target, so I choose #ecosconfig
Hong> new linux

Hong> at this stage what portion of ecos.ecc should be modified?

Hong> then I build tree: #ecosconfig tree


You need to invoke make here.

Hong> [root@cheetah <mailto:root@cheetah> ecos-work]# gcc -g
Hong> -IBASE_DIR/ecos-work/install/include hello.c
Hong> -LBASE_DIR/ecos-work/install/lib -Ttarget.ld -nostdlib
Hong> /usr/bin/ld: cannot open linker script file target.ld: No such
Hong> file or directory collect2: ld returned 1 exit status

Remember to use $BASE_DIR, not BASE_DIR.

Jesper


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