Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777801 - [guru] sys-cluster/KVTree-1.0.2 multiple definition of `test_names';
Summary: [guru] sys-cluster/KVTree-1.0.2 multiple definition of `test_names';
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-22 22:27 UTC by Alessandro Barbieri
Modified: 2021-04-06 09:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge_info (emerge_info,17.48 KB, text/plain)
2021-03-22 22:28 UTC, Alessandro Barbieri
Details
KVTree-1.0.2:20210322-213638.log (KVTree-1.0.2:20210322-213638.log,18.53 KB, text/plain)
2021-03-22 22:28 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-22 22:27:51 UTC
This package fails to compile on an unstable system. Attached relevant logs and emerge --info
Comment 1 Alessandro Barbieri 2021-03-22 22:28:42 UTC
Created attachment 693126 [details]
emerge_info

emerge --info
Comment 2 Alessandro Barbieri 2021-03-22 22:28:55 UTC
Created attachment 693129 [details]
KVTree-1.0.2:20210322-213638.log

build log
Comment 3 Alessandro Barbieri 2021-03-22 22:29:34 UTC
[16/16] : && /usr/bin/x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-
needed    -rdynamic test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_allocate_delete.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_kv.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_util.c.o -o
 test/test_kvtree  -Wl,-rpath,/var/tmp/portage/sys-cluster/KVTree-1.0.2/work/KVTree-1.0.2_build/src  src/libkvtree.so  -lmpi  -lz && :
FAILED: test/test_kvtree 
: && /usr/bin/x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-needed  
  -rdynamic test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_allocate_delete.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_kv.c.o test/CMakeFiles/test_kvtree.dir/test_kvtree_util.c.o -o test/te
st_kvtree  -Wl,-rpath,/var/tmp/portage/sys-cluster/KVTree-1.0.2/work/KVTree-1.0.2_build/src  src/libkvtree.so  -lmpi  -lz && :
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_allocate_delete.c.o:(.bss+0x0): multiple definition of `test_names'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c
.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_allocate_delete.c.o:(.bss+0x8): multiple definition of `test_ptrs'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.
o:(.bss+0x8): first defined here      
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_allocate_delete.c.o:(.bss+0x10): multiple definition of `num_tests'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c
.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_kv.c.o:(.bss+0x0): multiple definition of `test_names'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x0)
: first defined here         
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_kv.c.o:(.bss+0x8): multiple definition of `test_ptrs'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x8):
 first defined here                                                                                                    
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_kv.c.o:(.bss+0x10): multiple definition of `num_tests'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x10
): first defined here                                                                                                  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_util.c.o:(.bss+0x0): multiple definition of `test_names'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x
0): first defined here 
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_util.c.o:(.bss+0x8): multiple definition of `test_ptrs'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x8
): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: test/CMakeFiles/test_kvtree.dir/test_kvtree_util.c.o:(.bss+0x10): multiple definition of `num_tests'; test/CMakeFiles/test_kvtree.dir/test_kvtree.c.o:(.bss+0x
10): first defined here
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: sys-cluster/KVTree-1.0.2::guru failed (compile phase):
 *   ninja -v -j12 -l15 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3205:  Called cmake_src_compile
 *   environment, line 1865:  Called cmake_build
 *   environment, line 1834:  Called eninja
 *   environment, line 2307:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 4 Alessandro Barbieri 2021-03-22 22:32:58 UTC
BTW it's a package of mine. Unsure what it is the fault. It's not slibtool
Comment 5 Ionen Wolkens gentoo-dev 2021-03-23 00:07:04 UTC
(In reply to Alessandro Barbieri from comment #4)
> BTW it's a package of mine. Unsure what it is the fault. It's not slibtool
Haven't tried building but these errors are because gcc10 enables -fno-common by default, code need to either be fixed or pass -fcommon as the dirty workaround.
Comment 6 Larry the Git Cow gentoo-dev 2021-04-06 09:03:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f282eecb9e722f8eac2ad2b6be899f15bd2761a9

commit f282eecb9e722f8eac2ad2b6be899f15bd2761a9
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2021-04-05 13:47:34 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
CommitDate: 2021-04-05 13:48:07 +0000

    sys-cluster/KVTree: remove non working package
    
    Closes: https://bugs.gentoo.org/777801
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>

 sys-cluster/KVTree/KVTree-1.0.2.ebuild | 67 ----------------------------------
 sys-cluster/KVTree/Manifest            |  1 -
 2 files changed, 68 deletions(-)