ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
19 мая
181747
++ (16.02.2010 10:55, просмотров: 3762) MBedder
Не собирается eCos. Где собака порылась? eCos build option: [pre] CFLAGS= -mips4 -fno-rtti -fno-exceptions -fno-pic -fvtable-gc -static -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections LDFLAGS= -mips4 -fno-rtti -fno-exceptions -fno-pic -fvtable-gc -static -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections [/pre] Makefile: [pre] # Mostly written by Jonathan Larmour, Red Hat, Inc. # Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20 # This file is in the public domain and may be used for any purpose # Usage: make INSTALL_DIR=/path/to/ecos/install INSTALL_DIR=../../install/elins_ecos_v0000_install include $(INSTALL_DIR)/include/pkgconf/ecos.mak XCC = mips-linux-gnu-gcc XCXX = $(XCC) XLD = $(XCC) CFLAGS = -I$(INSTALL_DIR)/include CXXFLAGS = $(CFLAGS) LDFLAGS = -nostartfiles -L$(INSTALL_DIR)/lib -static -Ttarget.ld # RULES .PHONY: all clean all: hello twothreads simple-alarm serial clean: -rm -f hello hello.o twothreads twothreads.o -rm -f simple-alarm simple-alarm.o serial serial.o -rm -f instrument-test instrument-test.o %.o: %.c $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.cxx $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.C $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.cc $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< hello: hello.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o twothreads: twothreads.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o simple-alarm: simple-alarm.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o serial: serial.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o instrument-test: instrument-test.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o [/pre] [pre] make mips-linux-gnu-gcc -c -o hello.o -I../../install/elins_ecos_v0000_install/include -mips4 -fno-rtti -fno-exceptions -fno-pic -fvtable-gc -static -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections hello.cxx cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus: warning: switch '-fvtable-gc' is no longer supported mips-linux-gnu-gcc -nostartfiles -L../../install/elins_ecos_v0000_install/lib -static -Ttarget.ld -mips4 -nostdlib -Wl,--gc-sections -Wl,-static -o hello hello.o ../../install/elins_ecos_v0000_install/lib/libtarget.a(kernel_thread.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/packages/kernel/current/src/common/thread.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x54): undefined reference to `__cxa_atexit' /usr/src/Redboot/packages/kernel/current/src/common/thread.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x58): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(kernel_intr.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/packages/kernel/current/src/intr/intr.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x28): undefined reference to `__cxa_atexit' /usr/src/Redboot/packages/kernel/current/src/intr/intr.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x2c): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(kernel_intr.o): In function `Cyg_Interrupt::call_pending_DSRs()': /usr/src/Redboot/packages/kernel/current/src/intr/intr.cxx:(.text._ZN13Cyg_Interrupt17call_pending_DSRsEv+0xc): undefined reference to `hal_interrupt_stack_call_pending_DSRs' ../../install/elins_ecos_v0000_install/lib/libtarget.a(kernel_sched.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/packages/kernel/current/src/sched/sched.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x54): undefined reference to `__cxa_atexit' /usr/src/Redboot/packages/kernel/current/src/sched/sched.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x58): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(language_c_libc_startup_mainthread.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/packages/language/c/libc/startup/current/src/mainthread.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x80): undefined reference to `__cxa_atexit' /usr/src/Redboot/packages/language/c/libc/startup/current/src/mainthread.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x84): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(language_c_libc_stdio_stdout.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x98): undefined reference to `__cxa_atexit' /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x9c): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(hal_mips_elins_plf_pci.o): In function `elins_check_buserr': /usr/src/Redboot/packages/hal/mips/elins/plf/current/src/pci.c:(.text.elins_check_buserr+0x28): undefined reference to `elins64cmp_read32_noswap' /usr/src/Redboot/packages/hal/mips/elins/plf/current/src/pci.c:(.text.elins_check_buserr+0x44): undefined reference to `elins64cmp_read32_noswap' /usr/src/Redboot/packages/hal/mips/elins/plf/current/src/pci.c:(.text.elins_check_buserr+0x84): undefined reference to `elins64cmp_read32_noswap' /usr/src/Redboot/packages/hal/mips/elins/plf/current/src/pci.c:(.text.elins_check_buserr+0xa0): undefined reference to `printk' /usr/src/Redboot/packages/hal/mips/elins/plf/current/src/pci.c:(.text.elins_check_buserr+0xbc): undefined reference to `elins64cmp_write32_noswap' ../../install/elins_ecos_v0000_install/lib/libtarget.a(io_eth_eth_drv.o): In function `eth_drv_recv': /usr/src/Redboot/packages/io/eth/current/src/stand_alone/eth_drv.c:(.text.eth_drv_recv+0x100): undefined reference to `start_console' /usr/src/Redboot/packages/io/eth/current/src/stand_alone/eth_drv.c:(.text.eth_drv_recv+0x168): undefined reference to `end_console' ../../install/elins_ecos_v0000_install/lib/libtarget.a(kernel_clock.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/packages/kernel/current/src/common/clock.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x54): undefined reference to `__cxa_atexit' /usr/src/Redboot/packages/kernel/current/src/common/clock.cxx:(.text._Z41__static_initialization_and_destruction_0ii+0x58): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(services_memalloc_common_heaps.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/memalloc/mempolt2.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x68): undefined reference to `__cxa_atexit' /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/memalloc/mempolt2.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x6c): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(language_c_libc_stdio_stderr.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x94): undefined reference to `__cxa_atexit' /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x98): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(language_c_libc_stdio_stdin.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x98): undefined reference to `__cxa_atexit' /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x9c): undefined reference to `__dso_handle' ../../install/elins_ecos_v0000_install/lib/libtarget.a(language_c_libc_stdio_stdiofiles.o): In function `__static_initialization_and_destruction_0(int, int)': /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x54): undefined reference to `__cxa_atexit' /usr/src/Redboot/install/elins_ecos_v0000_install/include/cyg/libc/stdio/stream.inl:(.text._Z41__static_initialization_and_destruction_0ii+0x58): undefined reference to `__dso_handle' collect2: ld returned 1 exit status make: *** [hello] Ошибка 1 [/pre]
++