Skip to contentSkip to conversation

GetTime() no longer works after toolchain rebuild

Buildroot JNY 3 participants 4 messages Jul 22, 2010 – Jul 26, 2010

lore
Share & tools
lore

JNY

author
#0 lore raw

Hi,
I've recently rebuilt a toolchain, and now when I recompile some old (c) code, the GetTime() isn't recognised. The code compiles, and runs (mostly) on the target architecture. The GetTime() function isn't one I recognise (as I inherited the code), and believe I must have missed something when rebuilding the toolchain. Any ideas what library this belongs to, and what I have to do to get it working again.

The function isn't doing much, but, after commenting it out, other things in the code no longer work, and I believe some (maybe all) of them will start working once I get this one sorted. Either way, this'll be a step in the right direction.
Regards

Signature · 2 lines
View this message in context: http://old.nabble.com/GetTime%28%29-no-longer-works-after-toolchain-rebuild-tp29238584p29238584.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
#1 lore raw
Quoted 7 lines · JNY

I've recently rebuilt a toolchain, and now when I recompile some old (c) code, the GetTime() isn't recognised. ?The code compiles, and runs (mostly) on the target architecture. ?The GetTime() function isn't one I recognise (as I inherited the code), and believe I must have missed something when rebuilding the toolchain. ?Any ideas what library this belongs to, and what I have to do to get it working again.

I'm not part of the buildroot crew, so don't take my response as 100% but as far as I know, GetTime() is not a standard C function or system call. I'm guessing it's part of some user library your old C code is linking against. Can you find a reference to GetTime() using Google?

Mitch.

#2 lore raw
Quoted 8 lines · On Sat, 24 Jul 2010 23:55:58 +1000 Mitch Davis <[email protected]> wrote:
Quoted 7 lines

I've recently rebuilt a toolchain, and now when I recompile some old (c) code, the GetTime() isn't recognised. ?The code compiles, and runs (mostly) on the target architecture. ?The GetTime() function isn't one I recognise (as I inherited the code), and believe I must have missed something when rebuilding the toolchain. ?Any ideas what library this belongs to, and what I have to do to get it working again.

Quoted 4 lines

I'm not part of the buildroot crew, so don't take my response as 100% but as far as I know, GetTime() is not a standard C function or system call. I'm guessing it's part of some user library your old C code is linking against. Can you find a reference to GetTime() using Google?

Yes, GetTime() is not a C library function. So, JNY, could you give some more details about your problem ? Which application/library you're trying to compile, the exact error message you're having, etc.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
author
#3 lore raw

Hi People,

OK, GetTime() is irrellivent (and as I suspected, shouldn't actually be there). I started debugging by hand (dropping in printf's here and there - I really should get a handle on GDB some time soon). After one of the recompiles, it managed to get to a point it hadn't previously. Now everytime I change the code, and recompile, it runs on the target machine. I'm not really sure why it started working, but that's exactly what I did; a few recompiles, and kah-boom, I was in business!

Thanks for showing an interest. Maybe others have experianced similar things. I'm slightly soncerned, as I didn't actually do anything (much) to banish the demon, so cannot rule out the rearing its head again.

Regards,
JNY

Signature · 2 lines
View this message in context: http://old.nabble.com/GetTime%28%29-no-longer-works-after-toolchain-rebuild-tp29238584p29264057.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.