[OpenWrt-Devel] (no subject)

Alison C. chan7781 at kettering.edu
Mon May 18 13:37:02 EDT 2015


Hey everybody,

I'm trying to build a Barrier Breaker image with OpenVswitch 2.3.1. However,
it fails with

    {standard input}:1116: Error: unknown pseudo-op: `.tprelword'

error. I found [a Stack Overflow
thread](http://stackoverflow.com/questions/8872517)
that suggests this is due to a too old binutils or a version mismatch
between gcc and g++. However, I know i'm using the gcc, g++, binutils in the
buildroot environment, whose versions are as follows:

[11:42:40] erinacity:~/Code/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin
alisonc $ ./mips-openwrt-linux-uclibc-gcc --version | head -1
mips-openwrt-linux-uclibc-gcc (OpenWrt/Linaro GCC 4.8-2014.04 r45620) 4.8.3

alisonc $ ./mips-openwrt-linux-uclibc-g++ --version | head -1
mips-openwrt-linux-uclibc-g++ (OpenWrt/Linaro GCC 4.8-2014.04 r45620) 4.8.3

alisonc $ ./mips-openwrt-linux-uclibc-as --version | head -1
GNU assembler (GNU Binutils) 2.22

The relevant snippet of the build log is below the fold, full build log is
[here](http://sprunge.us/aNKc), and i can pass along any other info that's
necessary.

How do i go about fixing this? Should i switch to a different OVS version? a
different OpenWrt version? I was able to build successfully a while ago with
Attitude Adjustment and OVS 1.9.0. Thanks in advance.

Cheers,
Alison

------------------------------------------------------------------------

    make[6]: Entering directory
`/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1'
    depbase=`echo lib/coverage.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
    /bin/bash ./libtool  --tag=CC   --mode=compile
mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I.    -I ./include -I
./lib -I ./lib -I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include
  -I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include
-I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include
-I/home/alisonc/Code/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
-I/home/alisonc/Code/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include
 -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith
-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum
-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align
-Wmissing-prototypes -Wmissing-field-initializers
-I/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1/lib
-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves
-fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16
-minterlink-mips16 -std=gnu99 -MT lib/coverage.lo -MD -MP -MF
$depbase.Tpo -c -o lib/coverage.lo lib/coverage.c &&\
    mv -f $depbase.Tpo $depbase.Plo
    OpenWrt-libtool: compile:  mips-openwrt-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I ./include -I ./lib -I ./lib
-I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include
-I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include
-I/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include
-I/home/alisonc/Code/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
-I/home/alisonc/Code/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include
-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith
-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum
-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align
-Wmissing-prototypes -Wmissing-field-initializers
-I/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1/lib
-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves
-fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16
-minterlink-mips16 -std=gnu99 -MT lib/coverage.lo -MD -MP -MF
lib/.deps/coverage.Tpo -c lib/coverage.c -o lib/coverage.o
    {standard input}: Assembler messages:
    {standard input}:1116: Error: unknown pseudo-op: `.tprelword'
    make[6]: *** [lib/coverage.lo] Error 1
    make[6]: Leaving directory
`/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1'
    make[5]: *** [all-recursive] Error 1
    make[5]: Leaving directory
`/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1'
    make[4]: *** [all] Error 2
    make[4]: Leaving directory
`/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1'
    make[3]: ***
[/home/alisonc/Code/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openvswitch-2.3.1/.built]
Error 2
    make[3]: Leaving directory
`/home/alisonc/Code/openwrt/feeds/openvswitch/openvswitch'
    make[2]: *** [package/feeds/openvswitch/openvswitch/compile] Error 2
    make[2]: Leaving directory `/home/alisonc/Code/openwrt'
    make[1]: ***
[/home/alisonc/Code/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile]
Error 2
    make[1]: Leaving directory `/home/alisonc/Code/openwrt'
    make: *** [world] Error 2

-- 
Alison
Kettering University
chan7781 at kettering.edu
+1 248 635 6672
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list