Building gwt elemental with Error

Hi,

while I tried to build vaadin “from scratch” I stumbled upon the following error in building the gwt-elemental.jar:

     [exec]
 Traceback (most recent call last):
     [exec]
   File "idl/scripts/elemental_fremontcutbuilder.py", line 217, in <module>
     [exec]
     sys.exit(main())
     [exec]
   File "idl/scripts/elemental_fremontcutbuilder.py", line 214, in main
     [exec]
     return build_database(idl_files, database_dir)
     [exec]
   File "idl/scripts/elemental_fremontcutbuilder.py", line 139, in build_database
     [exec]
     builder.import_idl_file(file_name, webkit_options)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/databasebuilder.py", line 472, in import_idl_file
     [exec]
     idl_file = self._load_idl_file(file_path, import_options)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/databasebuilder.py", line 83, in _load_idl_file
     [exec]
     defines=import_options.idl_defines)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/idlparser.py", line 444, in parse
     [exec]
     content = self._pre_process(content, defines, includePaths)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/idlparser.py", line 424, in _pre_process
     [exec]
     stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     [exec]
   File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
     [exec]
     errread, errwrite)
     [exec]
   File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
     [exec]
     raise child_exception
     [exec]
 OSError: [Errno 2]
 No such file or directory
     [exec]
 Traceback (most recent call last):
     [exec]
   File "idl/scripts/elementaldomgenerator.py", line 164, in <module>
     [exec]
     sys.exit(main())
     [exec]
   File "idl/scripts/elementaldomgenerator.py", line 155, in main
     [exec]
     database_dir, use_database_cache)
     [exec]
   File "idl/scripts/elementaldomgenerator.py", line 120, in GenerateDOM
     [exec]
     systems = systems)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/elementalgenerator.py", line 279, in Generate
     [exec]
     self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), mixins)
     [exec]
   File "/usr/local/hudson/jobs/Vaadin-GWT/workspace/gwt/elemental/idl/scripts/database.py", line 188, in GetInterface
     [exec]
     raise RuntimeError('Interface %s is not loaded' % interface_name)
     [exec]
 RuntimeError: Interface ElementalMixinBase is not loaded

I have a Hudson project created, that cloned gwt, gwt-tools and vaadin from github and executed the ant builds for gwt, gwt-elemental and vaadin as described in the readme on github.

Regards,
Sascha Broich

I remember having stumbled upon this very misleading error message in the past.
If I remember correctly, it was caused by the system lacking one of the basic development time binaries that is used internally by the compilation of elemental, perhaps gcc.

I hope this puts you on the correct track, at least.

It seems gcc was not installed.
I will now retry and report.

It was not the gcc.
The exception still occurs.

So I have simply downloaded the gwt-elemental-2.5.1.jar from Maven and copied it into the gwt/build/lib directory.
I hope, there is nothing from vaadin in it.

The gwt.unpack worked now.
Running ant on vaadin now gives some trouble.

common.compile:
    [javac]
 Compiling 218 source files to C:\Users\sascha.broich\git\vaadin\server\result\classes
    [javac]
 C:\Users\sascha.broich\git\vaadin\server\src\com\vaadin\event\ConnectorActionManager.java:76: cannot find symbol
    [javac]
 symbol  : method getIgnoredDisabledError(java.lang.String,com.vaadin.server.ClientConnector)
    [javac]
 location: class com.vaadin.server.communication.ServerRpcHandler
    [javac]
                     ServerRpcHandler.getIgnoredDisabledError("action",
    [javac]
                                     ^
    [javac]
 C:\Users\sascha.broich\git\vaadin\server\src\com\vaadin\ui\UI.java:109: cannot find symbol
    [javac]
 symbol  : class LoadingIndicatorConfigurationImpl
    [javac]
 location: class com.vaadin.ui.UI
    [javac]
     private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl(
    [javac]
                                                                               ^
    [javac]
 C:\Users\sascha.broich\git\vaadin\server\src\com\vaadin\ui\UI.java:193: cannot find symbol
    [javac]
 symbol  : class TooltipConfigurationImpl
    [javac]
 location: class com.vaadin.ui.UI
    [javac]
     private TooltipConfiguration tooltipConfiguration = new TooltipConfigurationImpl(
    [javac]
                                                             ^
    [javac]
 C:\Users\sascha.broich\git\vaadin\server\src\com\vaadin\ui\UI.java:195: cannot find symbol
    [javac]
 symbol  : class PushConfigurationImpl
    [javac]
 location: class com.vaadin.ui.UI
    [javac]
     private PushConfiguration pushConfiguration = new PushConfigurationImpl(
    [javac]
                                                       ^
    [javac]
 Note: Some input files use or override a deprecated API.
    [javac]
 Note: Recompile with -Xlint:deprecation for details.
    [javac]
 Note: Some input files use unchecked or unsafe operations.
    [javac]
 Note: Recompile with -Xlint:unchecked for details.
    [javac]
 4 errors

I cleaned all up and run the vaadin build again.
Now it finished successfull.
One step closer to a patched version. :slight_smile:

For anyone else stumbling upon this thread from Google in the future, the actual missing dependency is g++, rather than gcc.