Modify

Opened 3 years ago

Last modified 2 years ago

#19605 new defect

cyassl build error: musl , x86-64

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

Description

final link failed: Memory exhausted
collect2: error: ld returned 1 exit status
Makefile:1502: recipe for target 'src/libcyassl.la' failed

build with musl, x86-64 selected
selecting gcc 4.8 and gcc 4.9 result in the same error

Attachments (1)

config.log (158.8 KB) - added by zloop 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by zloop

comment:1 Changed 3 years ago by zloop

diffconfig:

CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_Default=y
CONFIG_ALL=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
CONFIG_BROKEN=y
CONFIG_BUILD_LOG=y
CONFIG_CCACHE=y
CONFIG_DEBUG=y
# CONFIG_GCC_USE_VERSION_4_8_LINARO is not set
CONFIG_GCC_USE_VERSION_4_9_LINARO=y
CONFIG_GCC_VERSION="4.9-linaro"
CONFIG_GCC_VERSION_4_9=y
CONFIG_GCC_VERSION_4_9_LINARO=y
CONFIG_KERNEL_BLK_CGROUP=y
CONFIG_KERNEL_BLK_DEV_BSG=y
# CONFIG_KERNEL_CC_STACKPROTECTOR_NONE is not set
CONFIG_KERNEL_CC_STACKPROTECTOR_REGULAR=y
CONFIG_KERNEL_CGROUPS=y
CONFIG_KERNEL_CGROUP_CPUACCT=y
CONFIG_KERNEL_CGROUP_DEBUG=y
CONFIG_KERNEL_CGROUP_DEVICE=y
CONFIG_KERNEL_CGROUP_FREEZER=y
CONFIG_KERNEL_CGROUP_PERF=y
CONFIG_KERNEL_CGROUP_SCHED=y
CONFIG_KERNEL_CPUSETS=y
CONFIG_KERNEL_DEBUG_BLK_CGROUP=y
CONFIG_KERNEL_DEVPTS_MULTIPLE_INSTANCES=y
CONFIG_KERNEL_DEVTMPFS=y
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
CONFIG_KERNEL_DYNAMIC_DEBUG=y
CONFIG_KERNEL_DYNAMIC_FTRACE=y
CONFIG_KERNEL_ENABLE_DEFAULT_TRACERS=y
CONFIG_KERNEL_FANOTIFY=y
CONFIG_KERNEL_FHANDLE=y
CONFIG_KERNEL_FREEZER=y
CONFIG_KERNEL_FTRACE=y
CONFIG_KERNEL_FTRACE_SYSCALLS=y
CONFIG_KERNEL_FUNCTION_GRAPH_TRACER=y
CONFIG_KERNEL_FUNCTION_PROFILER=y
CONFIG_KERNEL_FUNCTION_TRACER=y
CONFIG_KERNEL_IPC_NS=y
CONFIG_KERNEL_KEXEC=y
CONFIG_KERNEL_KPROBES=y
CONFIG_KERNEL_KPROBE_EVENT=y
CONFIG_KERNEL_LXC_MISC=y
CONFIG_KERNEL_MEMCG=y
CONFIG_KERNEL_MEMCG_KMEM=y
CONFIG_KERNEL_MEMCG_SWAP=y
CONFIG_KERNEL_MEMCG_SWAP_ENABLED=y
CONFIG_KERNEL_MM_OWNER=y
CONFIG_KERNEL_NAMESPACES=y
CONFIG_KERNEL_NETPRIO_CGROUP=y
CONFIG_KERNEL_NET_CLS_CGROUP=y
CONFIG_KERNEL_NET_NS=y
CONFIG_KERNEL_PERF_EVENTS=y
CONFIG_KERNEL_PID_NS=y
CONFIG_KERNEL_POSIX_MQUEUE=y
CONFIG_KERNEL_PROC_PAGE_MONITOR=y
CONFIG_KERNEL_PROC_PID_CPUSET=y
CONFIG_KERNEL_PROFILING=y
CONFIG_KERNEL_PROVE_LOCKING=y
CONFIG_KERNEL_RESOURCE_COUNTERS=y
CONFIG_KERNEL_SECCOMP=y
CONFIG_KERNEL_SECCOMP_FILTER=y
CONFIG_KERNEL_SLABINFO=y
CONFIG_KERNEL_SLUB_DEBUG=y
CONFIG_KERNEL_SLUB_DEBUG_ON=y
CONFIG_KERNEL_USER_NS=y
CONFIG_KERNEL_UTS_NS=y
CONFIG_LIBC="musl"
CONFIG_LIBC_USE_MUSL=y
# CONFIG_LIBC_USE_UCLIBC is not set
CONFIG_LIBC_VERSION="1.1.7"
CONFIG_MUSL_VERSION="1.1.7"
CONFIG_NO_STRIP=y
CONFIG_PACKAGE_kmod-lp=m
CONFIG_PACKAGE_kmod-net-hermes-pcmcia=m
CONFIG_PACKAGE_kmod-oprofile=m
CONFIG_PACKAGE_kmod-rfkill=m
CONFIG_PACKAGE_libssp=y
CONFIG_PACKAGE_oprofile=m
CONFIG_PACKAGE_oprofile-utils=m
# CONFIG_PKG_CC_STACKPROTECTOR_NONE is not set
CONFIG_PKG_CC_STACKPROTECTOR_REGULAR=y
CONFIG_PKG_CHECK_FORMAT_SECURITY=y
CONFIG_PKG_FORTIFY_SOURCE_2=y
# CONFIG_PKG_FORTIFY_SOURCE_NONE is not set
CONFIG_PKG_RELRO_FULL=y
# CONFIG_PKG_RELRO_NONE is not set
CONFIG_PROCD_JAIL_SUPPORT=y
CONFIG_PROCD_SECCOMP_SUPPORT=y
CONFIG_SSP_SUPPORT=y
CONFIG_TARGET_EXT4_MAXINODE=60000
CONFIG_TARGET_IMAGES_PAD=y
CONFIG_TARGET_KERNEL_PARTSIZE=64
CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL=y
CONFIG_TARGET_ROOTFS_PARTSIZE=512
CONFIG_TARGET_SUFFIX="musl"
CONFIG_USE_MUSL=y
CONFIG_USE_RFKILL=y
CONFIG_USE_SPARSE=y
CONFIG_VDI_IMAGES=y
CONFIG_VMDK_IMAGES=y

comment:2 Changed 3 years ago by zloop

replicated with target arm64 & glibc 2.21 (other options were the same)

comment:3 in reply to: ↑ description Changed 3 years ago by kaleb@…

Replying to zloop:

final link failed: Memory exhausted
collect2: error: ld returned 1 exit status
Makefile:1502: recipe for target 'src/libcyassl.la' failed

build with musl, x86-64 selected
selecting gcc 4.8 and gcc 4.9 result in the same error

Suggestion: try the following.

./configure --enable-opensslextra --enable-debug C_EXTRA_FLAGS=-fdebug-types-section

If this does not fix your issue please do not hesitate to contact us, info@wolfssl.com

Regards,

Kaleb Himes

comment:4 follow-up: Changed 3 years ago by hauke

If there is a fix for this problem please post a patch on the mailing list.

comment:5 in reply to: ↑ 4 Changed 2 years ago by anonymous

Replying to hauke:

If there is a fix for this problem please post a patch on the mailing list.

With the introduction of DWARF 4 .debug_info section on ubuntu can now grow extremely large.

Placing program specific debug information into it's own separate comdat section will allow the linker to remove duplicates and will greatly reduce the size of the debug and usually put an end to the Memory Exhausted errors seen in ld.

To read more on this topic see: https://gcc.gnu.org/onlinedocs/gcc/Debu … tions.html

Suggested configure settings are:

./configure <existing_options> C_EXTRA_FLAGS="-fdebug-types-section"
./configure <existing_options> C_EXTRA_FLAGS="-g1 -feliminate-unused-debug-symbols -fdebug-types-section"
./configure <existing_options> C_EXTRA_FLAGS="-ggdb1 -feliminate-unused-debug-symbols -fdebug-types-section"

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.