Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15769 closed defect (fixed)

can't build: samba fails

Reported by: juanriccio@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

make[3]: Entering directory `/openwrt/trunk/package/network/services/samba36'
WARNING: skipping samba36-client -- package not selected
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -DMAX_DEBUG_LEVEL=-1 -Dlocation=
\"
\" -ffunction-sections -fdata-sections -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -DMAX_DEBUG_LEVEL=-1 -Dlocation=
\"
\" -ffunction-sections -fdata-sections -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -Wl,--gc-sections " make -C /openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3 AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -Dlocation=
\"
\" -ffunction-sections -fdata-sections" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" DYNEXP= PICFLAG= MODULES= ;
make[4]: Entering directory `/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3'
Using CFLAGS = -I../lib/zlib -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -DMAX_DEBUG_LEVEL=-1 -Dlocation="" -ffunction-sections -fdata-sections -I. -I/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3 -I/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3/../lib/popt -I/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3/../lib/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./librpc -I./.. -I./../lib/talloc -I./../lib/tevent -I../lib/tdb/include -DHAVE_CONFIG_H -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./librpc -I./.. -I./../lib/popt -I/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/samba-3.6.23/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3

PICFLAG =
LIBS = -lresolv -ldl
LDFLAGS = -L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -Wl,--gc-sections -L./bin
DYNEXP =
LDSHFLAGS = -shared -Wl,-Bsymbolic -L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -Wl,--gc-sections -L./bin -lc -Wl,-z,defs
SHLIBEXT = so
SONAMEFLAG = -Wl,-soname=

Linking shared library bin/libtevent.so.0
/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: ./../lib/tevent/tevent.o: relocation R_MIPS16_26 against `close' can not be used when making a shared object; recompile with -fPIC
./../lib/tevent/tevent.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: * [bin/libtevent.so.0] Error 1

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by hauke

  • Resolution set to fixed
  • Status changed from new to closed

This was fixed in r40652.

comment:2 in reply to: ↑ description Changed 4 years ago by ppvazquezfer@…

CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -DMAX_DEBUG_LEVEL=-1

I'm not totally sure but the problem could be related with mips16 or, maybe, the DSP ASE. AFAIK mips16 is enabled by default in ramips, lantiq and ar71xx.

comment:3 Changed 4 years ago by anonymous

lantiq indeed.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.