Modify

Opened 2 years ago

Last modified 2 years ago

#20317 new defect

Latest build doesn't compile, polarssl/mbedtls problem

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

Description

Has anyone seen this?

Built for the archer c7 v2

-- Build files have been written to: /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09
rm -f /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/.configured_*
touch /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/.configured_yyyyy
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " LDFLAGS="-L/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib -L/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib -L/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/merp/apps/openwrt/archerc7/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro " make -j1 -C /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" ;
make[4]: Entering directory `/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09'
make[5]: Entering directory `/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09'
make[6]: Entering directory `/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09'
Scanning dependencies of target ustream-ssl
make[6]: Leaving directory `/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09'
make[6]: Entering directory `/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09'
[ 25%] Building C object CMakeFiles/ustream-ssl.dir/ustream-ssl.c.o
In file included from /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/ustream-internal.h:25:0,

from /home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/ustream-ssl.c:25:

/home/merp/apps/openwrt/archerc7/openwrt/build_dir/target-mips_34kc_musl-1.1.10/ustream-ssl-polarssl/ustream-ssl-2015-07-09/ustream-polarssl.h:22:26: fatal error: polarssl/net.h: No such file or directory

#include <polarssl/net.h>


compilation terminated.

Attachments (0)

Change History (4)

comment:1 Changed 2 years ago by anonymous

Same here.
Workaround: set OpenSSL in curl, openvpn and disable certificate generator p4gx (or something like that).

comment:2 Changed 2 years ago by hauke

I can not reproduce this with this config:

CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_generic=y
CONFIG_TARGET_x86_generic_Generic=y
CONFIG_PACKAGE_libpolarssl=y
CONFIG_PACKAGE_libustream-polarssl=y

comment:3 Changed 2 years ago by anonymous

I modify the ustream-polarssl.h, change all the path "<polarssl/" to "</usr/include/polarssl/" , then it says cannot find -lpolarssl.

I link libpolarssl.so to somewhere in build_dir , then it says skip the incompatible libpolarssl.

I don't know what to do now.

comment:4 Changed 2 years ago by anonymous

After a fresh checkout just now, i'm still having the same problem
I've verified that i have the CONFIG_PACKAGE options you specified hauke

I've worked around the problem by manually adding the include and library paths to the necessary Makefiles (there are several other similar errors of the same nature throughout the build tree)

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.