[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid position given by Telit HE910-EUG
From: |
Ladislav Michl |
Subject: |
Re: Invalid position given by Telit HE910-EUG |
Date: |
Sun, 5 Apr 2020 21:38:44 +0200 |
On Sun, Apr 05, 2020 at 04:51:12PM +0200, Titouan Christophe wrote:
> Hello again,
>
> On 5/04/20 16:21, Titouan Christophe wrote:
> [-- SNIP --]
> >
> > The problem is in the SContruct file, in the function CheckSizeOf(),
> > which compiles an executable (on the host building machine) using the
> > cross-compiler, and then tries to execute it. Needless to say this
> > cannot work when compiling an ARM executable on an x86_64 machine:
> > [...]
> > Checking for C header file termios.h... yes
> > Checking for C header file winsock2.h... no
> > Checking size of time_t ... sh: .sconf_temp/conftest_26: cannot execute
> > binary file: Exec format error
> > no
> > sizeof(time_t) is 0
> > WARNING: time_t is too small. It will fail in 2038
> > Checking for C function cfmakeraw()... yes
> > Checking for C function clock_gettime()... yes
> > Checking for C function daemon()... yes
> > [...]
> >
>
> Actually, this is the output I obtained after applying
> https://gitlab.com/gpsd/gpsd/-/commit/ffc06f4e0e27225e88d8c4670655cc915bbc84f4
> on top of release-3.20, hoping that it could solve the issue.
>
> On a "vanilla" 3.20 release, the build stops even more abruptly:
Do not use 3.20 release as a lot of fixes went into git since then.
3.20 is just unfortunate wrt. cross-compiling. You may pick patches from here:
https://git.pengutronix.de/cgit/ptxdist/tree/patches/gpsd-3.20
> [...]
> Checking for C header file termios.h... yes
> Checking for C header file winsock2.h... no
> Checking size of time_t... sh: .sconf_temp/conftest_27: cannot execute
> binary file: Exec format error
> no
> sizeof(time_t) is
> ValueError: invalid literal for int() with base 10: '':
> File "/home/titou/br-test-pkg/br-arm-full/build/gpsd-3.20/SConstruct",
> line 1047:
> if 4 >= int(sizeof_time_t):
>
> And then the entire build stops.
This is a commit of your choice:
https://gitlab.com/gpsd/gpsd/-/commit/89d3c543e000a12adc55c32b2ac5d23ffd14ee5c
> Regards,
>
> Titouan
- Re: Invalid position given by Telit HE910-EUG, (continued)
- Re: Invalid position given by Telit HE910-EUG, Titouan Christophe, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Greg Troxel, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Titouan Christophe, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Greg Troxel, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Greg Troxel, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/06
- Re: Invalid position given by Telit HE910-EUG, Greg Troxel, 2020/04/06
- Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/05
- Re: Invalid position given by Telit HE910-EUG,
Ladislav Michl <=
- Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/05
Re: Invalid position given by Telit HE910-EUG, Gary E. Miller, 2020/04/03