This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

time() returns invalid time [ARM EABI?]


Hi all,

I'm having trouble with the time() call on my ARM target:

# date 082212302006
Tue Aug 22 12:30:00 UTC 2006
# date
Wed Dec 31 23:59:22 UTC 1969
#

Digging in, it seems that gettimeofday() always works correctly
(retrieving the expected time), but time() always returns -38.  Not -1
with an errno of ENOSYS, but an actual ((time_t)-38).  Has anyone else
seen this issue?  My gut feeling is that it's related to EABI somehow,
but I don't know where to look without hacking up gcc.  I thought I'd
ask and see if anyone on the list has seen a similar problem.  System
info:

- arm-linux-gnueabi toolchain built with crosstool
  - gcc 4.1.1
  - binutils 2.16.93
  - glibc 2.4
- 2.6.17 kernel built for EABI-only

Any pointers would be appreciated.  Thanks

-- 
Matthew L. Creech 

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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