jameswalmsley / bitthunder

BitThunder - Reliable, real time, portable, scalable, embedded operating system, RTOS.
http://bitthunder.org
Other
168 stars 48 forks source link

Compile error when kernel image was compiled #37

Closed jtkim-lab closed 10 years ago

jtkim-lab commented 10 years ago

Hello, I am trying to compile bitthunder.. But I got some error.

I have done the process before "make". After I commanded make, I got this error..

/home/jungtaek/workspace/bitthunder/build/arch/arm/common/crtinit.o: In function _start': (.text+0x10): multiple definition of_start' /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/lib/crt0.o:/build/buildd/newlib-2.1.0/build/arm-none-eabi/libgloss/arm/../../../../libgloss/arm/crt0.S:173: first defined here /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/lib/crt0.o: In function _start': (.text+0xf8): undefined reference to__bss_start__' /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/lib/crt0.o: In function _start': (.text+0xfc): undefined reference tobss_end' /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): In function exit': /build/buildd/newlib-2.1.0/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to_exit' collect2: error: ld returned 1 exit status make: *\ [/home/jungtaek/workspace/bitthunder/vmthunder.elf] Error 1

Can you give some advices? Actually, I am confused because of the above paths such as buildd, newlib-2.1.0 and etc.

Thank you for reading.

jameswalmsley commented 10 years ago

Hi,

Which compiler are you using? Is it a codesourcery compiler or a ubuntu package? You can also try to use the latest BTDK compiler: https://github.com/bitthunder-toolchain/btdk/releases/download/btdk-0.6.1/btdk-0.6.1-linux-x64.tar.lzma

For which device are you compiling? The Pi?

James

jtkim-lab commented 10 years ago

I am compiling for Raspberry Pi on Ubuntu 14.04.

I will try to use BTDK compiler.

Thank you for comment.

jtkim-lab commented 10 years ago

It compiled well.

Thank you!

jameswalmsley commented 10 years ago

Thats great. I haven't run the code on RPi for a long time, but I might try to connect the debugger and fix any problems this week. Let me know how you get on.

Adding a basic UART driver for the Pi would be useful. But I also need to test the MMU code for ARMv6 also.

Thanks for trying BitThunder out.

James