#18555: diffutils: failed to build with -O1, multiple definition
----------------------+------------------------
Reporter: xuefer | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
----------------------+------------------------
eglibc-2.19, x86_64, CONFIG_GCC_USE_VERSION_4_9_LINARO=y
{{{
ccache_cc -O2 -pipe -funit-at-a-time -march=atom -fexpensive-
optimizations -finline-functions -funroll-loops -foptimize-register-move
-fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable
-Wforma
t -Werror=format-security --std=c99
-L/usr/src/xuefer/openwrt/trunk/staging_dir/target-
x86_64_eglibc-2.19/usr/lib -L/usr/src/xuefer/openwrt/trunk/staging_dir
/target-x86_64_eglibc-2.19/lib -L/usr/src/xuefer/ope
nwrt/trunk/staging_dir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/usr/lib
-L/usr/src/xuefer/openwrt/trunk/staging_dir/toolchain-
x86_64_gcc-4.9-linaro_eglibc-2.19/lib -o diff analyze.o context.o diff.o
dir.o ed
.o ifdef.o io.o normal.o side.o util.o libver.a ../lib/libdiffutils.a
context.o: In function `gnu_dev_major':
context.c:(.text+0x1310): multiple definition of `gnu_dev_major'
analyze.o:analyze.c:(.text+0x17a0): first defined here
context.o: In function `gnu_dev_minor':
context.c:(.text+0x1330): multiple definition of `gnu_dev_minor'
analyze.o:analyze.c:(.text+0x17c0): first defined here
context.o: In function `gnu_dev_makedev':
context.c:(.text+0x1340): multiple definition of `gnu_dev_makedev'
analyze.o:analyze.c:(.text+0x17d0): first defined here
context.o: In function `stat':
context.c:(.text+0x1370): multiple definition of `stat'
analyze.o:analyze.c:(.text+0x1800): first defined here
context.o: In function `lstat':
context.c:(.text+0x1380): multiple definition of `lstat'
analyze.o:analyze.c:(.text+0x1810): first defined here
context.o: In function `fstat':
context.c:(.text+0x1390): multiple definition of `fstat'
analyze.o:analyze.c:(.text+0x1820): first defined here
context.o: In function `fstatat':
context.c:(.text+0x13a0): multiple definition of `fstatat'
analyze.o:analyze.c:(.text+0x1830): first defined here
context.o: In function `mknod':
context.c:(.text+0x13c0): multiple definition of `mknod'
analyze.o:analyze.c:(.text+0x1850): first defined here
}}}
failed with: -O1, -O2, -O3
success with: -O0, -Os
-O2 success if i change -std=99 to -std=gnu99, i have no idea what's going
one, is it a gcc or eglibc issue?
--
Ticket URL: <https://dev.openwrt.org/ticket/18555>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets