Issue 38 in llvm4eclipsecdt: llvm4eclipsecdt doesn't work with eclipse 3.6 SR2

9 views
Skip to first unread message

llvm4ec...@googlecode.com

unread,
Apr 20, 2011, 10:02:32 AM4/20/11
to llvm4ec...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 38 by stephane...@gmail.com: llvm4eclipsecdt doesn't work with
eclipse 3.6 SR2
http://code.google.com/p/llvm4eclipsecdt/issues/detail?id=38

What steps will reproduce the problem?
1. install plugin from http://petrituononen.com/llvm4eclipsecdt/update
2. restart eclipse
3. try to create a C++ project -> nothing happens (I mean no dialog box
appears)
(alternate)3. try to edit prefs (window->preferences) by clicking on LLVM
-> nothing happens

removing llvm4eclipsecdt plugin and restart restore ability to create c++
project.

What is the expected output? What do you see instead?
Ability to create c++ project and compile with llvm
Ability to set properties


What version of the product are you using? On what operating system?
lucie@viso:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

lucie@viso:~$ uname -a
Linux viso 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011
i686 GNU/Linux

lucie@viso:~$ /usr/lib/jvm/java-6-sun/jre/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)


Eclipse IDE for C/C++ Developers 1.3.2.20110301-1807 epp.package.cpp
llvm4eclipsecdt 1.0.1.201104171205 llvm4eclipsecdt.feature.group

Please provide any additional information below.
see error log attached.

Attachments:
log 699 KB

llvm4ec...@googlecode.com

unread,
Apr 20, 2011, 10:06:34 AM4/20/11
to llvm4ec...@googlegroups.com

Comment #1 on issue 38 by stephane...@gmail.com: llvm4eclipsecdt doesn't

additional info :
lucie@viso:~$ clang++ --version
clang version 2.9 (tags/RELEASE_29/final)
Target: i386-pc-linux-gnu
Thread model: posix

llvm4ec...@googlecode.com

unread,
Apr 20, 2011, 1:00:07 PM4/20/11
to llvm4ec...@googlegroups.com
Updates:
Status: Accepted
Labels: -Priority-Medium Priority-Critical

Comment #2 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

Was just about to post this issue.

The reason for this error is API incompatibility due to change from
PluginVersionIdentifier to Version in CDT 8.0

Nothing happens if user clicks workspace -> New -> C/C++ Project.
Or if user tries to create C/C++ project via New project wizard the
following error message is produced:

Problem Occured

An error has occured. See error log for more details.

org.eclipse.cdt.managedbuilder.llvm.ui.LlvmIsToolChainSupported.isSupported(Lorg/eclipse/cdt/managedbuilder/core/IToolChain;Lorg/eclipse/core/runtime/PluginVersionIdentifier;Ljava/lang/String;)Z

llvm4ec...@googlecode.com

unread,
Apr 20, 2011, 1:06:17 PM4/20/11
to llvm4ec...@googlegroups.com

Comment #3 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

The solution:

* To use Eclipse Indigo with CDT 8.0
(http://download.eclipse.org/tools/cdt/builds/)
* I will soon create a version which is backward compatible with CDT 7.x
and create a new category for it in the update site.

llvm4ec...@googlecode.com

unread,
Apr 20, 2011, 2:21:37 PM4/20/11
to llvm4ec...@googlegroups.com

Comment #4 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

BTW Thanks for having time to write this issue down here.

I have created a temporary solution.

I created a new update site for CDT 7.x supported version. Feel free to
test this plug-in now and if you find any issues please write them down
here.

http://petrituononen.com/llvm4eclipsecdt/update_cdt7

I tried to create two features within update-site, but PDE tools didn't
want to create generate a new jar for the another feature and also it
doesn't update the references for newly generated files. I will be looking
into it but writing update-site manually is too much.

llvm4ec...@googlecode.com

unread,
Apr 21, 2011, 5:10:52 PM4/21/11
to llvm4ec...@googlegroups.com

Comment #5 on issue 38 by stephane...@gmail.com: llvm4eclipsecdt doesn't

It's better, i can now create a c++ project with llvm toolchain and access
to prefs but now it fails with the well known "error: Cannot find
library 'stdc++'".

I was unable to add (value ignored) /usr/lib (where my libstdc++ is
installed) in library search path.

Relevant (IMHO) error log message below :
!ENTRY org.eclipse.ui 4 0 2011-04-21 22:36:02.990
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.cdt.managedbuilder.core.IOption.getLibraryPaths()[Ljava/lang/String;
at
org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLibrarySearchPathToToolOption(LlvmToolOptionPathUtil.java:476)
at
org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLlvmLibSearchPathToToolOption(LlvmToolOptionPathUtil.java:363)
at
org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addPathToSelectedToolOptionBuildConf(LlvmToolOptionPathUtil.java:195)
at
org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addPathToToolOption(LlvmToolOptionPathUtil.java:128)
at
org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLlvmLibSearchPath(LlvmToolOptionPathUtil.java:94)
at
org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LibraryPathListEditor.getNewInputObject(LibraryPathListEditor.java:72)
at
org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LlvmListEditor.addPressed(LlvmListEditor.java:306)
at
org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LlvmListEditor$1.widgetSelected(LlvmListEditor.java:161)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)


llvm4ec...@googlecode.com

unread,
Apr 22, 2011, 1:53:49 AM4/22/11
to llvm4ec...@googlegroups.com

Comment #6 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

Currently (at least) the plug-in is not supposed to find stdc++ library
automatically due to the fact that it is located in different places on
Windows, different Linux distributions and Mac.

What I suggest is to set LD_LIBRARY_PATH system environment variable to
contain stdc++ library path.

Preference page needs some remodeling which might take some time because my
current busy schedule.

llvm4ec...@googlecode.com

unread,
Apr 22, 2011, 3:29:22 AM4/22/11
to llvm4ec...@googlegroups.com

Comment #7 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

The library search path error might now have been fixed. The reason is that
methods related to adding library search paths to tool's option are not
included in CDT 7.x. However the library search paths will still work
because they are added to LD_LIBRARY_PATH environment variable in Eclipse.

I have now updated the update-site.

llvm4ec...@googlecode.com

unread,
Apr 22, 2011, 4:27:12 AM4/22/11
to llvm4ec...@googlegroups.com

Comment #8 on issue 38 by petri.tu...@gmail.com: llvm4eclipsecdt doesn't

Now the official update-site
(http://petrituononen.com/llvm4eclipsecdt/update)contains CDT 7 and CDT 8
supported versions. This is now where the latest releases are found.

Reply all
Reply to author
Forward
0 new messages