Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475948 - games-emulation/zsnes fails to compile with clang-3.3
Summary: games-emulation/zsnes fails to compile with clang-3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-06 14:15 UTC by Julian Ospald
Modified: 2018-09-05 21:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2013-07-06 14:15:04 UTC
clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/include/SDL
 /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/include/g++-v4
 /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/include/g++-v4/i686-pc-linux-gnu
 /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/include/g++-v4/backward
 /usr/bin/../lib64/clang/3.3/include
 /usr/include
End of search list.
 "/usr/bin/x86_64-pc-linux-gnu-ld" --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o tools/depbuild /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../lib32/crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../lib32/crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/crtbegin.o -L/usr/lib/gcc/i686-pc-linux-gnu/4.7.3 -L/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../.. -L/lib -L/usr/lib /var/tmp/portage/games-emulation/zsnes-1.51-r4/temp/depbuild-91N81S.o tools/fileutil.o tools/strutil.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../lib32/crtn.o
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [tools/depbuild] Error 1
emake failed
Comment 1 Julian Ospald 2013-07-06 14:17:48 UTC
It seems to pick weird search paths from my cross-toolchain environment.

Itself is linked against sys-libs/glibc-2.15-r3.

Mind that the ebuild uses "multilib_toolchain_setup", maybe there is a connection?
Comment 2 Austin English (RETIRED) gentoo-dev 2016-06-03 04:45:40 UTC
zsnes-1.51-r4 builds for me with clang-3.5.0. Not sure if that's enough to call it fixed or we need to retest with clang-3.3
Comment 3 Austin English (RETIRED) gentoo-dev 2018-09-05 21:26:34 UTC
Works for me with clang-6.0.1 and zsnes-1.51-r7. Since clang-3.3 isn't in the tree anymore, I think we can consider this fixed.