Modify

Opened 3 years ago

Closed 3 years ago

#18555 closed defect (moved_to_github)

diffutils: failed to build with -O1, multiple definition

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

Description

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?

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

diffutils is maintained here: https://github.com/openwrt/packages

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.