Link error in CentOS 7.2: cannot find -lstdc++

196 views
Skip to first unread message

Daniel Brahneborg

unread,
Feb 10, 2016, 2:30:58 PM2/10/16
to v8-users
I'm trying to build v8 in Linux, on a quite recent CentOS.

# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)

# rpm -q gcc
gcc-4.8.5-4.el7.x86_64

# rpm -qa|grep stdc
libstdc++-4.8.5-4.el7.i686
libstdc++-devel-4.8.5-4.el7.i686
compat-libstdc++-33-3.2.3-72.el7.x86_64
libstdc++-4.8.5-4.el7.x86_64
libstdc++-devel-4.8.5-4.el7.x86_64
compat-libstdc++-33-3.2.3-72.el7.i686

The "make x64.debug" command runs for a while, compiling lots
of files, and then starts to fail with this. How can it not  find libstdc++?
What have I missed?

make[1]: Entering directory `/home/danbra/src/v8/v8/out'

/home/danbra/src/v8/v8/third_party/llvm-build/Release+Asserts/bin/clang++ -B/home/danbra/src/v8/v8/third_party/binutils/Linux_x64/Release/bin -pthread -fuse-ld=gold -B/home/danbra/src/v8/v8/third_party/binutils/Linux_x64/Release/bin -fuse-ld=gold -B/home/danbra/src/v8/v8/third_party/binutils/Linux_x64/Release/bin -m64 -m64 -rdynamic -rdynamic -Wl,--threads -Wl,--thread-count=4 -Wl,--threads -Wl,--thread-count=4  -o /home/danbra/src/v8/v8/out/x64.debug/mksnapshot -Wl,--start-group /home/danbra/src/v8/v8/out/x64.debug/obj.target/mksnapshot/src/snapshot/mksnapshot.o /home/danbra/src/v8/v8/out/x64.debug/obj.target/tools/gyp/libv8_base.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/tools/gyp/libv8_nosnapshot.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/tools/gyp/libv8_libplatform.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/third_party/icu/libicui18n.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/third_party/icu/libicuuc.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/tools/gyp/libv8_libbase.a /home/danbra/src/v8/v8/out/x64.debug/obj.target/third_party/icu/libicudata.a -Wl,--end-group -ldl -lrt
/home/danbra/src/v8/v8/third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot find -lstdc++

/Daniel

Louis Santillan

unread,
Feb 10, 2016, 3:56:09 PM2/10/16
to v8-u...@googlegroups.com
You're querying gcc but your build is using clang. You can disable
clang by doing `make x64.debug GYPFLAGS=-Dclang=0`
> --
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Daniel Brahneborg

unread,
Feb 11, 2016, 3:10:50 AM2/11/16
to v8-u...@googlegroups.com
Thank you Louis, now it compiles and links perfectly.

Regards,
/Daniel


You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/dLSMRRHo9Mk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages