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: SIGSEV, Segmentation Fault: When attempting to run "Hello World' on Synthetic Linux


eCOS Gurus,

Please help newbie here in getting 'Hello World' to run.  

Long story short, I am trying to build the kernel using a recent CVS download.

I set ECOS_REPOSITORY to /home/knji/ecos-work, which is where the new 'package' folder is located.
I created a new .ecc file using:

 ecosconfig new i386linux

Launched configtool with new ecc file. Generated build tree, then tried to build library and
process quits with the error below:

++++++++++++++++++++++++++++++++++++++++++++++++++++++
make -r -C services/memalloc/common/current heaps.cxx
make[1]: Entering directory
`/home/knji/ecos-work/test/test_build/services/memalloc/common/current'
XPWD=`pwd` ; cd /opt/ecos/ecos-2.0/packages/services/memalloc/common/current/src ; sh heapgen.tcl
"/home/knji/ecos-work/test/test_install" "$XPWD"
heapgen.tcl: 
: command not found
couldn't read file "/home/knji/ecos-work/test/test_build/services/memalloc/common/current
/heapgeninc.tcl": no such file or directory
    while executing
"source [ file join $builddir heapgeninc.tcl ]"
    (file "heapgen.tcl" line 99)
make[1]: Leaving directory `/home/knji/ecos-work/test/test_build/services/memalloc/common/current'
make[1]: *** [heaps.cxx] Error 1
make: Leaving directory `/home/knji/ecos-work/test/test_build'
make: *** [build] Error 2
++++++++++++++++++++++++++++++++++++++++++++++

On the other hand, I can build the kernel just fine with the officially released package, although
the application does not run.

Any suggestions is welcomed as I am stuck in gear 1.

System Details:

Configtool version = 2.0 May 2003
GCC version = 4.1.2 20061115
Linux Distro = OpenSuse 10.2
Linux Kernel version = 2.16.18.2-34 

TIA.

--- Bart Veer <bartv@ecoscentric.com> wrote:

> >>>>> "Klaus" == Klaus Nji <makaveli_0000@yahoo.com> writes:
> 
>     Klaus> I have been able to compile the application, after running
>     Klaus> over several stumbling blocks. But when I run the 'Hello
>     Klaus> World' application from the command line, nothing happens.
>     Klaus> Running from gdb gives the following error:
> 
>     Klaus> Program received signal SIGSEGV, Segmentation fault.
>     Klaus> _memcpy (s1=0x0, s2=0x1010218, n=2) at
> /opt/ecos/ecos-2.0/packages/infra/v2_0/src/memcpy.c:165
> 
>     Klaus> Program was compiled using native gcc compiler and the i386
>     Klaus> pre-built version installed with eCOS to no avail. Running
>     Klaus> application gives same behaviour.
> 
>     Klaus> I used the Synthetic Linux target with a default template
>     Klaus> to build the kernel. I had to delete the flag ' -finit
>     Klaus> priority' and remove a extra qualifier in thread.hxx
>     Klaus> (Cyg_Thread:: reinitialize) before the build would
>     Klaus> complete.
> 
>     Klaus> Some details of the target:
>     Klaus> - Kernel version is 2.6.18.2-34
>     Klaus> - Linux Distro is a stripped down version of OpenSuse 10.2. (No GNOME, no KDE).
>     Klaus> - Processor is Pentium 3.
> 
>     Klaus> I have been through the archives but could not find any
>     Klaus> related problem.
> 
>     Klaus> What am I doing wrong?
> 
> I have not seen that specific error before (a memcpy() to location 0),
> but it is not possible to use the eCos 2.0 synthetic target with
> current Linux releases. There have been various incompatible changes
> in Linux and gcc which have broken that version of the synthetic
> target support. Instead you will have to use the current version of
> eCos from anoncvs, see http://ecos.sourceware.org/anoncvs.html
> 
> Bart
> 
> -- 
> Bart Veer                                 eCos Configuration Architect
> http://www.ecoscentric.com/               The eCos and RedBoot experts
> 
> -- 
> 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]