Modify

Opened 2 years ago

#21343 new defect

drv_mei_cpe compile error with eglibc

Reported by: anonymous Owned by: developers
Priority: high Milestone:
Component: packages Version: Trunk
Keywords: drv_mei_cpe Cc:

Description

drv_mei_cpe does not compile with eglibc.

Compiling with musl works fine.

To get compiling working with eglibc all "-Bstatic -dn -static" entries in Makefile.am must changed to "-Bstatic -dn".

Try with lantiq xrx200.

Compile output:
make[4]: Entering directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5'
Making all in src
make[5]: Entering directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5/src'
make all-am
make[6]: Entering directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5/src'
mips-openwrt-linux-gnu-gcc -DLINUX -ansi -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -s -DPPC -DMEI_SUPPORT_DEVICE_VR9=1 -DMEI_SUPPORT_DEVICE_VR10=0 -DMEI_SUPPORT_DEVICE_AR9=0 -DDEBUG_PRINT -DERROR_PRINT -DMEI_DRV_LKM_ENABLE=1 -DMEI_SUPPORT_PCI_SLAVE_FW_DOWNLOAD=0 -DMEI_DRV_IFXOS_ENABLE=1 -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Bstatic -dn -static -L/home/ubuntu/openwrt/staging_dir/target-mips_34kc+dsp_glibc-2.19/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mips_34kc+dsp_glibc-2.19/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mips_34kc+dsp_glibc-2.19/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib -znow -zrelro -o mei_cpe_drv_test mei_cpe_drv_test-mei_cpe_drv_test.o mei_cpe_drv_test-mei_cpe_drv_test_fct.o -lifxos
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofclose.o): In function `_IO_new_fclose':
iofclose.c:(.text+0x294): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofclose.o):(.data.DW.ref.gcc_personality_v0[DW.ref.gcc_personality_v0]+0x0): undefined reference to `gcc_personality_v0'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofflush.o): In function `_IO_fflush':
iofflush.c:(.text+0x188): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofgets.o): In function `_IO_fgets':
iofgets.c:(.text+0x210): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofread.o): In function `_IO_fread':
iofread.c:(.text+0x1ac): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofwrite.o): In function `_IO_fwrite':
iofwrite.c:(.text+0x1e0): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(ioputs.o): In function `_IO_puts':
ioputs.c:(.text+0x218): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(putchar.o):putchar.c:(.text+0x1a4): more undefined references to `_Unwind_Resume' follow
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(backtrace.o): In function `backtrace_helper':
backtrace.c:(.text+0x38): undefined reference to `_Unwind_GetIP'
backtrace.c:(.text+0x44): undefined reference to `_Unwind_GetCFA'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(backtrace.o): In function `
backtrace':
backtrace.c:(.text+0xf4): undefined reference to `_Unwind_Backtrace'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iofputs.o): In function `_IO_fputs':
iofputs.c:(.text+0x1bc): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(iogetdelim.o): In function `_IO_getdelim':
iogetdelim.c:(.text+0x32c): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(writev.o): In function `atomic_writev_replacement':
writev.c:(.text+0xe0): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(fseek.o): In function `fseek':
fseek.c:(.text+0x194): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(ftello.o): In function `ftello':
ftello.c:(.text+0x238): undefined reference to `_Unwind_Resume'
/home/ubuntu/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.2.0_glibc-2.19/lib/libc.a(ioseekoff.o):ioseekoff.c:(.text+0x314): more undefined references to `_Unwind_Resume' follow
collect2: error: ld returned 1 exit status
make[6]: * [mei_cpe_drv_test] Error 1
make[6]: Leaving directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5/src'
make[5]:
* [all] Error 2
make[5]: Leaving directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5/src'
make[4]: * [all-recursive] Error 1
make[4]: Leaving directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5'
make[3]:
* /home/ubuntu/openwrt/build_dir/target-mips_34kc+dsp_glibc-2.19/linux-lantiq_xrx200/drv_mei_cpe-1.4.8.5/.built Error 2
make[3]: Leaving directory `/home/ubuntu/openwrt/package/kernel/lantiq/ltq-vdsl-mei'
make[2]: * [package/kernel/lantiq/ltq-vdsl-mei/compile] Error 2
make[2]: Leaving directory `/home/ubuntu/openwrt'
make[1]:
* /home/ubuntu/openwrt/staging_dir/target-mips_34kc+dsp_glibc-2.19/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/ubuntu/openwrt'
make: * [world] Fehler 2

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.