Modify

Opened 4 years ago

Closed 4 years ago

#14188 closed defect (fixed)

lantiq ltq-adsl fails to compile

Reported by: mk+openwrt@… Owned by: blogic
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

with latest trunk (as of #38055) ltq-adsl fails to compile:

make package/kernel/lantiq/ltq-adsl/compile V=s
make[1]: Entering directory `/opt/development/openwrt'
make[2]: Entering directory `/opt/development/openwrt/package/kernel/lantiq/ltq-adsl-mei'
if [ -f /opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/pkginfo/ltq-adsl-mei.ar9.install.clean ]; then rm -f /opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/pkginfo/ltq-adsl-mei.ar9.install /opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/pkginfo/ltq-adsl-mei.ar9.install.clean; fi; echo "kmod-ltq-adsl-ar9-mei" >> /opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/pkginfo/ltq-adsl-mei.ar9.install
make[2]: Leaving directory `/opt/development/openwrt/package/kernel/lantiq/ltq-adsl-mei'
make[2]: Entering directory `/opt/development/openwrt/package/kernel/lantiq/ltq-adsl'
. /opt/development/openwrt/include/shell.sh; gzip -dc /opt/development/openwrt/dl/drv_dsl_cpe_api_danube-3.24.4.4.tar.gz | /bin/tar -C /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/.. -xf - 

Applying ./patches/100-dsl_compat.patch using plaintext: 
File src/include/drv_dsl_cpe_device_danube.h is read-only; trying to patch anyway
patching file src/include/drv_dsl_cpe_device_danube.h
File src/common/drv_dsl_cpe_os_linux.c is read-only; trying to patch anyway
patching file src/common/drv_dsl_cpe_os_linux.c
File src/include/drv_dsl_cpe_os_linux.h is read-only; trying to patch anyway
patching file src/include/drv_dsl_cpe_os_linux.h
patching file src/ifxmips_mei_interface.h
File configure.in is read-only; trying to patch anyway
patching file configure.in
File src/Makefile.am is read-only; trying to patch anyway
patching file src/Makefile.am
File src/include/drv_dsl_cpe_os_linux.h is read-only; trying to patch anyway
patching file src/include/drv_dsl_cpe_os_linux.h

Applying ./patches/110-fix_status_polling_loop.patch using plaintext: 
File src/device/drv_dsl_cpe_device_danube.c is read-only; trying to patch anyway
patching file src/device/drv_dsl_cpe_device_danube.c

Applying ./patches/120-platform.patch using plaintext: 
File src/common/drv_dsl_cpe_os_linux.c is read-only; trying to patch anyway
patching file src/common/drv_dsl_cpe_os_linux.c

Applying ./patches/130-linux3.8.patch using plaintext: 
File src/common/drv_dsl_cpe_os_linux.c is read-only; trying to patch anyway
patching file src/common/drv_dsl_cpe_os_linux.c
File src/include/drv_dsl_cpe_os_lint_map.h is read-only; trying to patch anyway
patching file src/include/drv_dsl_cpe_os_lint_map.h
File src/include/drv_dsl_cpe_os_linux.h is read-only; trying to patch anyway
patching file src/include/drv_dsl_cpe_os_linux.h
touch /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/.prepared_accbbfa368bb5adf46fae30cacdeb834
(cd /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4; aclocal && autoconf && automake)
main::scan_file() called too early to check prototype at /opt/development/openwrt/staging_dir/host/bin/aclocal.real line 628.
src/Makefile.am:303: subst .c,.o,$(filter %.c,$(drv_dsl_cpe_api_SOURCES: non-POSIX variable name
src/Makefile.am:303: (probably a GNU make extension)
src/Makefile.am:315: subst .ko,.o,$@: non-POSIX variable name
src/Makefile.am:315: (probably a GNU make extension)
src/Makefile.am:316: subst .ko,,$@: non-POSIX variable name
src/Makefile.am:316: (probably a GNU make extension)
src/Makefile.am:67: compiling `drv_dsl_cpe_api.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
(cd /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/./; if [ -x ./configure ]; then /usr/bin/find /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/ -name config.guess | xargs -r -n1 cp /opt/development/openwrt/scripts/config.guess; /usr/bin/find /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/ -name config.sub | xargs -r -n1 cp /opt/development/openwrt/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" 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 CFLAGS="-Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0" CXXFLAGS="-Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0" CPPFLAGS="-I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --enable-kernel-include="/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include" --with-max-device="1" --with-lines-per-device="1" --with-channels-per-line="1" --disable-dsl-delt-static --disable-adsl-led --enable-dsl-ceoc --enable-dsl-pm --enable-dsl-pm-total --enable-dsl-pm-history --enable-dsl-pm-showtime --enable-dsl-pm-channel-counters --enable-dsl-pm-datapath-counters --enable-dsl-pm-line-counters --enable-dsl-pm-channel-thresholds --enable-dsl-pm-datapath-thresholds --enable-dsl-pm-line-thresholds --enable-dsl-pm-optional-parameters --enable-linux-26 --enable-kernelbuild="/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12" ARCH=mips --enable-add-drv-cflags="-DMODULE -DCONFIG_AR9" --enable-danube ; fi; )
configure: WARNING: unrecognized options: --disable-nls, --with-lines-per-device
configure: loading site script /opt/development/openwrt/include/site/mips-openwrt-linux-uclibc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-openwrt-linux-strip... mips-openwrt-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mips-openwrt-linux-uclibc-gcc... gcc3
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-uclibc-ranlib
./configure: line 3916: selected: command not found
Set the kernel architecture to mips
Set the default lib_ifxos include path -I./lib_ifxos/src/include
Set add drv cflags = -DMODULE -DCONFIG_AR9
------------------------------------------------------------------------
 Configuration for drv_dsl_cpe_api:
  Configure model type:             
  Source code location:             .
  Compiler:                         mips-openwrt-linux-uclibc-gcc
  Compiler c-flags:                 -Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0
  Extra compiler c-flags:           -Os
  Host System Type:                 mips-openwrt-linux
  Install path:                     /usr
  Linux kernel include path:        /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include
  Linux kernel build path:          /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12
  Linux kernel architecture:        mips
  Include IFXOS:                    no
  IFXOS include path:               -I./lib_ifxos/src/include
  Driver Include Path               
  DSL device:                       Danube_Family
  Max device number:                1
  Channels per line:                1
  Build lib (only for kernel 2.6)   no
  DSL data led flash frequency:     4 Hz
  Disable debug prints:             yes
  Preselection of max. debug level: no
  Preselected max. debug level:     n/a
  Include deprecated functions:     yes
  Include Device Exception Codes:   no
  Include FW request support:       yes
  Include ADSL trace buffer:        no
  Include ADSL MIB:                 no
  Include ADSL LED:                 no
  Include CEOC:                     yes
  Include config get support:       yes
  Include System i/f configuration: yes
  Include Resource Statistics:      yes
  Include Framing Parameters:       yes
  Include G997 Line Inventory:      yes
  Include G997 Framing Parameters:  yes
  Include G997 per tone data:       yes
  Include G997 status:              yes
  Include G997 alarm:               yes
  Include DSL Bonding:              no
  Include Misc Line Status          no
  Include DELT:                     yes
  Include DELT data static storage: no
  Include PM:                       yes
  Include PM config:                yes
  Include PM total:                 yes
  Include PM history:               yes
  Include PM showtime:              yes
  Include PM optional:              yes
  Include PM line:                  yes
  Include PM line event showtime:   no
  Include PM channel:               yes
  Include PM channel extended:      no
  Include PM data path:             yes
  Include PM data path failure:     no
  Include PM ReTx:                  no
  Include PM line threshold:        yes
  Include PM channel threshold:     yes
  Include PM data path threshold:   yes
  Include PM ReTx threshold:        no
  Include FW memory free support:   yes
----------------------- deprectated ! ----------------------------------
  Include PM line failure:          no

 Settings:
  Configure options:                 '--target=mips-openwrt-linux' '--host=mips-openwrt-linux' '--build=x86_64-pc-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-nls' '--enable-kernel-include=/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include' '--with-max-device=1' '--with-lines-per-device=1' '--with-channels-per-line=1' '--disable-dsl-delt-static' '--disable-adsl-led' '--enable-dsl-ceoc' '--enable-dsl-pm' '--enable-dsl-pm-total' '--enable-dsl-pm-history' '--enable-dsl-pm-showtime' '--enable-dsl-pm-channel-counters' '--enable-dsl-pm-datapath-counters' '--enable-dsl-pm-line-counters' '--enable-dsl-pm-channel-thresholds' '--enable-dsl-pm-datapath-thresholds' '--enable-dsl-pm-line-thresholds' '--enable-dsl-pm-optional-parameters' '--enable-linux-26' '--enable-kernelbuild=/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12' 'ARCH=mips' '--enable-add-drv-cflags=-DMODULE -DCONFIG_AR9' '--enable-danube' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=mips-openwrt-linux' 'target_alias=mips-openwrt-linux' 'CC=mips-openwrt-linux-uclibc-gcc' 'CFLAGS=-Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0' 'LDFLAGS=-L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib ' 'CPPFLAGS=-I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include '
------------------------------------------------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/include/drv_dsl_cpe_api_config.h
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-nls, --with-lines-per-device
rm -f /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/.configured_*
touch /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/.configured_
CFLAGS="-Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0 -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fno-pic -mno-abicalls -mlong-calls -G 0 -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/target-mips_r2_dsp_uClibc-0.9.33.2/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/opt/development/openwrt/staging_dir/toolchain-mips_r2_dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mno-branch-likely -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" 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" ;
make[3]: Entering directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4'
Making all in src
make[4]: Entering directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src'
drv_dsl_cpe_api: Making Linux 2.6.x kernel object
if test ! -e common/drv_dsl_cpe_api.c ; then \
        echo "copy source files (as links only!)"; \
        for f in common/drv_dsl_cpe_api.c common/drv_dsl_cpe_fifo.c common/drv_dsl_cpe_autoboot.c common/drv_dsl_cpe_debug.c common/drv_dsl_cpe_os_linux.c common/drv_dsl_cpe_timeout.c g997/drv_dsl_cpe_api_g997.c led/drv_dsl_cpe_led.c pm/drv_dsl_cpe_api_pm.c pm/drv_dsl_cpe_pm_core.c ceoc/drv_dsl_cpe_ceoc.c ceoc/drv_dsl_cpe_intern_ceoc.c device/drv_dsl_cpe_device_danube.c g997/drv_dsl_cpe_api_g997_danube.c pm/drv_dsl_cpe_api_pm_danube.c ceoc/drv_dsl_cpe_danube_ceoc.c; do \
                mkdir -p /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/`dirname $f`/ ; \
                cp -s /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/$f /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/`dirname $f`/ ; \
        done \
fi
make ARCH=mips -C /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12 O=/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12 M=/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src modules
make[5]: Entering directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12'
  CC [M]  /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_api.o
In file included from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/arch/mips/include/asm/bitops.h:626:0,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/bitops.h:22,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/kernel.h:10,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/cache.h:4,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/time.h:4,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/stat.h:18,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/module.h:10,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_os_linux.h:19,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_os.h:26,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_api.h:243,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_api.c:14:
/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/bitops.h: In function 'hweight_long':
/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/asm-generic/bitops/const_hweight.h:26:70: warning: signed and unsigned type in conditional expression [-Wsign-compare]
 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
                                                                      ^
/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/bitops.h:66:26: note: in expansion of macro 'hweight32'
  return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
                          ^
In file included from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/arch/mips/include/asm/processor.h:14:0,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/arch/mips/include/asm/thread_info.h:15,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/thread_info.h:54,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/preempt.h:9,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/spinlock.h:50,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/seqlock.h:29,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/time.h:5,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/stat.h:18,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/module.h:10,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_os_linux.h:19,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_os.h:26,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_api.h:243,
                 from /opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_api.c:14:
/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/cpumask.h: In function 'cpumask_parse':
/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression [-Wsign-compare]
  int len = nl ? nl - buf : strlen(buf);
                          ^
{standard input}: Assembler messages:
{standard input}:3410: Error: illegal operands `lbu'
{standard input}:3412: Error: illegal operands `sb'
{standard input}:3413: Error: illegal operands `beqz'
{standard input}:3414: Error: illegal operands `addiu'
{standard input}:3483: Error: illegal operands `lbu'
{standard input}:3485: Error: illegal operands `sb'
{standard input}:3486: Error: illegal operands `bnez'
{standard input}:3498: Error: illegal operands `lbu'
{standard input}:3500: Error: illegal operands `sb'
{standard input}:3501: Error: illegal operands `bnez'
make[7]: *** [/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_api.o] Error 1
make[6]: *** [_module_/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src] Error 2
make[5]: *** [sub-make] Error 2
make[5]: Leaving directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.12'
make[4]: *** [drv_dsl_cpe_api.ko] Error 2
make[4]: Leaving directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/src'
make[4]: Entering directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4'
make[2]: *** [/opt/development/openwrt/build_dir/target-mips_r2_dsp_uClibc-0.9.33.2/linux-lantiq_xway/ltq-dsl-ar9/drv_dsl_cpe_api-3.24.4.4/.built] Error 2
make[2]: Leaving directory `/opt/development/openwrt/package/kernel/lantiq/ltq-adsl'
make[1]: *** [package/kernel/lantiq/ltq-adsl/compile] Error 2
make[1]: Leaving directory `/opt/development/openwrt'
make: *** [package/kernel/lantiq/ltq-adsl/compile] Error 2

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by prettata

I reported the same error but they deleted my ticket..

comment:2 Changed 4 years ago by lpm11

OK, I have a workaround!

You have to enter to the build folder, find the drv_dsl_cpe_api dir.
Then edit three files:

Makefile
src/Makefile
src/Kbuild

You have to remove all optional flags for gcc (march, mtune, mdsp, mmt, mips16), then the compilation succeeds

comment:3 Changed 4 years ago by mk+openwrt@…

This problem seems to appear only when using gcc-4.8. I can compile successfully with gcc-4.6.

comment:4 Changed 4 years ago by mk+openwrt@…

ltq-adsl compiles fine with gcc-4.8 when the new PKG_USE_MIPS16 setting is used in the Makefile

diff --git a/package/kernel/lantiq/ltq-adsl/Makefile b/package/kernel/lantiq/ltq-adsl/Makefile
index 6a0daa2..be31d69 100644
--- a/package/kernel/lantiq/ltq-adsl/Makefile
+++ b/package/kernel/lantiq/ltq-adsl/Makefile
@@ -11,6 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 PKG_NAME:=ltq-adsl
 PKG_VERSION:=3.24.4.4
 PKG_RELEASE:=1
+PKG_USE_MIPS16:=0
 PKG_SOURCE:=drv_dsl_cpe_api_danube-$(PKG_VERSION).tar.gz
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-dsl-$(BUILD_VARIANT)/drv_dsl_cpe_api-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/

comment:5 Changed 4 years ago by hauke

  • Owner changed from developers to blogic
  • Status changed from new to assigned

comment:6 Changed 4 years ago by blogic

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

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.