Hi hypo,

Thanks for reply.

What I found is, if I run below code, I have a Segmentation fault on
  th->dt = controlCycleS;

Do you have any clue for this?

I used a compiler,
/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-uclibcgnueabi-gcc

Did I use a wrong compiler?
Thanks


========================================================
printf("readConfig OK\n");
    // set delta time for each channel
    double controlCycleS = ((double) controlMult * imuCycle) / 1000000.0;
printf("Step 2...\n");
    th->dt = controlCycleS;
printf("Step 3...\n");

--- On Thu, 3/26/09, hypo <hypothetical25@gmail.com> wrote:

From: hypo <hypothetical25@gmail.com>
Subject: Re: [Gumstix-users] Gumstix verdex pro Segmentation fault
To: gumstix-users@lists.sourceforge.net
Date: Thursday, March 26, 2009, 1:30 PM


hi DS,

your build process should be spitting out the exact compiler it uses as it
compiles each file. you can also see what $(CC) is defined as in the target
options. I don't have access to my host here, but IIRC there should be a
make variable $(TARGET_OPTIONS) that should include all this.

hth,
hypo


dong Lee-3 wrote:
>
> Hi?
>
> I built a toolchain for a gumstix, but there are many cross-compilers
> under
> /staging_dir/bin, such as arm-linux-cc, arm-linux-gcc,
> arm-linux-uclibcgnueabi-gcc  etc
>
> For verdex pro, which compiler is the right one?
>
> Helloworld.c works fine, but I have "Segmentation fault" error for other
> programs, and
> I suspect I use wrong complier....
>
> By the way, which version of build-root is known to be stable? I tried
> with 1642
>
> Regards
> DS
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>

--
View this message in context: http://www.nabble.com/Gumstix-verdex-pro-Segmentation-fault-tp22716477p22727059.html
Sent from the Gumstix mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users