gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid position given by Telit HE910-EUG


From: Titouan Christophe
Subject: Re: Invalid position given by Telit HE910-EUG
Date: Sun, 5 Apr 2020 16:51:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

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:

[...]
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.

Regards,

Titouan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]