ipop-project / Legacy-Documentation

[Deprecated] Documentation for releases 15.07 and earlier. Latest documentation can be found in https://github.com/ipop-project/ipop-project.github.io/wiki .
http://ipop-project.org/
59 stars 12 forks source link

linux builds fail with gcc on later versions of ubuntu #9

Open yagnasrinath opened 9 years ago

yagnasrinath commented 9 years ago
srinath@srinath-ThinkPad-Edge-E440:~/Documents/ipop/libjingle/trunk$ ninja -C out/Release ipop-tincan -d explain
ninja: Entering directory `out/Release'
ninja explain: output ipop-tincan doesn't exist
[1/1] LINK ipop-tincan
FAILED: c++ -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -pthread -Wl,-z,noexecstack -fPIC -B/home/srinath/Documents/ipop/libjingle/trunk/third_party/gold -m64 -Wl,--icf=none -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -o ipop-tincan -Wl,--start-group obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.tincan.o obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.tincanconnectionmanager.o obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.xmppnetwork.o obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.controlleraccess.o obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.tincanxmppsocket.o obj/talk/ipop-project/ipop-tincan/src/ipop-tincan.tincan_utils.o obj/talk/xmpp/ipop-tincan.jingleinfotask.o obj/third_party/openssl/libopenssl.a obj/talk/libjingle_p2p.a obj/third_party/jsoncpp/libjsoncpp.a obj/talk/libipop-tap.a obj/third_party/libsrtp/libsrtp.a obj/talk/libjingle.a  -Wl,--end-group -lcrypto -ldl -lrt -lXext -lX11 -lXcomposite -lXrender -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lexpat
/home/srinath/Documents/ipop/libjingle/trunk/third_party/gold/gold64: -plugin: unknown option
/home/srinath/Documents/ipop/libjingle/trunk/third_party/gold/gold64: use the --help option for usage information
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

To mitigate this issue, switch to clang compiler. Following are the steps to switch to clang.
sudo apt-get install clang
sudo update-alternatives --config c++
Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/g++       20        auto mode
  1            /usr/bin/clang++   10        manual mode
  2            /usr/bin/g++       20        manual mode

select clang compiler.
kyuhojeong commented 9 years ago

which Ubuntu version did you use? 14.10?

yagnasrinath commented 9 years ago

yes. 14.10 as well as 15.04. I see that problem more specific to gcc-4.9 and probably gcc-4.8

On Thu, May 28, 2015 at 12:19 PM, Kyuho Jeong notifications@github.com wrote:

which Ubuntu version did you use? 14.10?

— Reply to this email directly or view it on GitHub https://github.com/ipop-project/documentation/issues/9#issuecomment-106457981 .

good day