Modify

Opened 3 years ago

#19588 new defect

BB SDK for brcm2708 error when static compile / missing libunwind (?)

Reported by: zloop Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

reported in forum: https://forum.openwrt.org/viewtopic.php?id=57114

replicated by me with:

  • download SDK
  • install CCACHE on host
  • create a hello world test package

contains

define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
        CC="$(TARGET_CC)" \
        CFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="$(TARGET_LDFLAGS) -static" \
        test
endef
  • source Makefile is
    all: test
    
    test.o: test.c
            $(CC) -c $< $(CPPFLAGS) $(CFLAGS) -o $@
    
    test: test.o
            $(CC) $(LDFLAGS) $< $(LDLIBS) -o $@ 
    
    clean:
            rm -f test test.o
    
  • make package/test/compile V=sc

multiple undefined references

staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/libc.a(close.os):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'

nm output for for the SDK libc.a has (grepped)

         U __aeabi_unwind_cpp_pr1
         U _longjmp_unwind
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr1
         w __pthread_unwind
jmp-unwind.os:
00000000 T _longjmp_unwind
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr0
         U __aeabi_unwind_cpp_pr1
         w __pthread_unwind

Is libunwind missing or not necessary / was enabled somehow in the SDK build by default ?

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.