[En-Nut-Discussion] unix emulation in ethernut-4.0.0
Jose Vallet
jose.vallet at hut.fi
Wed Jan 30 22:55:38 CET 2008
2 mistakes.
-Ethernut version that I am using is 4.4.0, not 4.0.0
-The list of undefined references were obviously taken from a different
example that I tried to compile, not the "simple" one. But the details
of the output are correct. Anyway the problem is the same.
I would appreciate any suggestion, but I will keep on trying! :-)
José
José Vallet escribió:
> Has anybody got it working?
>
> I am able to get to the point where I get undefined references to
> `pthread_create', `pthread_sigmask', `NutGetTickClock',
> `NutTimerMillisToTicks' and `NutEventPostAsync' when I compile the
> simple example from the applications.
>
> Find attached the details. Any suggestions?
>
> Thanks!
> José
>
> -------------------
> make
> gcc simple.o -Wl,--defsym=main=0,-Map=simple.map,--cref
> -L/home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o
> -lnutos -lnutarch -lnutdev -lnutarch -lnutcrt -o simple.elf
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o: In
> function `NutIRQInit':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:354:
> undefined reference to `pthread_create'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o: In
> function `NutUnixInterruptScheduler':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:204:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:218:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o: In
> function `NutInterruptEmulation':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:290:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o: In
> function `NutRegisterIrqHandler':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:116:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:116:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/nutinit.o:/home/jose/ethernut/ethernut-4.4.0-unixemu/os/../arch/unix/os/nutinit.c:121:
> more undefined references to `pthread_sigmask' follow
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(ostimer.o):
> In function `NutRegisterTimer':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/dev/ostimer.c:120:
> undefined reference to `pthread_create'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(ostimer.o):
> In function `NutTimerEmulation':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/dev/ostimer.c:75:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(thread.o):
> In function `NutThreadSwitch':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:148:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:148:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:167:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:167:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(thread.o):/home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:198:
> more undefined references to `pthread_sigmask' follow
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(thread.o):
> In function `NutThreadCreate':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:270:
> undefined reference to `pthread_create'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:289:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:289:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutarch.a(thread.o):
> In function `NutThreadEntry':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/arch/unix/os/thread.c:114:
> undefined reference to `pthread_sigmask'
> /home/jose/ethernut/ethernut-4.4.0-unixemu/lib/gcc/unix/libnutcrt.a(open.o):
> In function `_open':
> /home/jose/ethernut/ethernut-4.4.0-unixemu/crt/open.c:102: undefined
> reference to `NutDeviceLookup'
> collect2: ld returned 1 exit status
> make: *** [simple.elf] Error 1
>
> -----------------------
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list