Build Failed in Ubuntu Natty

64 views
Skip to first unread message

Aayush Poudel

unread,
May 27, 2011, 4:33:56 AM5/27/11
to femhub
Hi,

This package "vtk-cvs-20090316-minimal.p6" fails to build in Femhub in Ubuntu Natty with the following error message

/home/aayush/Desktop/femhub/local/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_openpty':
posixmodule.c:(.text+0x1356): undefined reference to `openpty'
/home/aayush/Desktop/femhub/local/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
posixmodule.c:(.text+0x1e1f): undefined reference to `forkpty'
../../bin/libvtkRendering.so.5.5.0: undefined reference to `vtkXOpenGLRenderWindow::New()'
../../bin/libvtkRendering.so.5.5.0: undefined reference to `vtkXRenderWindowInteractor::New()'
collect2: ld returned 1 exit status

FEMhub: An error occurred while installing vtk-cvs-20090316-minimal.p6

I found similar kind of error being reported with vtk while searching the internet
I tried setting the PYTHON_LIBRARY as they suggest but It didnt work its showing the same error.

I also found few other Sugestation to remove 
undefined reference to `openpty'
undefined reference to `forkpty' , like
I tried these too but It didnt help too.

Can anyone please suggest me what should I do to get rid of this error. I think its due to some problem during linking with python library.

Also,
This error is thrown at around 96% of the compilation, and it takes more then 12 minutes in my laptop to reach to reach there, If I made some changes to check if it builds I have to wait around 12 minutes every time, Is there any way to reduce this waiting time ?


Thanks,
Aayush Poudel


Pavel Solin

unread,
May 27, 2011, 12:29:40 PM5/27/11
to fem...@googlegroups.com
Aayush,
  please try to disable this package and build FEMhub 
without it. Report the result. 

Pavel



--
You received this message because you are subscribed to the Google Groups "femhub" group.
To post to this group, send email to fem...@googlegroups.com.
To unsubscribe from this group, send email to femhub+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/femhub?hl=en.



--
Pavel Solin
University of Nevada, Reno
Home page: http://hpfem.org/~pavel
FEMTEC 2011: http://hpfem.org/events/femtec-2011/
Hermes: http://hpfem.org/
FEMhub: http://femhub.org/

Aayush Poudel

unread,
May 27, 2011, 1:02:20 PM5/27/11
to fem...@googlegroups.com
On Fri, May 27, 2011 at 9:29 AM, Pavel Solin <so...@unr.edu> wrote:
Aayush,
  please try to disable this package and build FEMhub 
without it. Report the result. 

I disabled the vtk-cvs but while building I get the following error

byte-compiling build/bdist.linux-x86_64/egg/enthought/tvtk/pyface/ui/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/enthought/__init__.py to __init__.pyc
writing byte-compilation script '/tmp/tmpkQq6pb.py'
/home/aayush/Desktop/femhub/local/bin/python -O /tmp/tmpkQq6pb.py
removing /tmp/tmpkQq6pb.py
creating stub loader for enthought/tvtk/array_ext.so
byte-compiling build/bdist.linux-x86_64/egg/enthought/tvtk/array_ext.py to array_ext.pyc
writing byte-compilation script '/tmp/tmptaSB45.py'
/home/aayush/Desktop/femhub/local/bin/python -O /tmp/tmptaSB45.py
removing /tmp/tmptaSB45.py
installing package data to build/bdist.linux-x86_64/egg
running install_data
Traceback (most recent call last):
  File "setup.py", line 494, in <module>
    **config
  File "/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/numpy/distutils/core.py", line 186, in setup
    return old_setup(**new_attr)
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/numpy/distutils/command/install.py", line 57, in run
    r = self.setuptools_run()
  File "/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/numpy/distutils/command/install.py", line 51, in setuptools_run
    self.do_egg_install()
  File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 96, in do_egg_install
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 195, in run
  File "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 145, in do_install_data
  File "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 161, in call_command
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/home/aayush/Desktop/femhub/local/lib/python/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "setup.py", line 335, in run
    build_tvtk_classes_zip()
  File "setup.py", line 269, in build_tvtk_classes_zip
    gen_tvtk_classes_zip()
  File "enthought/tvtk/setup.py", line 47, in gen_tvtk_classes_zip
    from code_gen import TVTKGenerator
  File "enthought/tvtk/code_gen.py", line 10, in <module>
    import vtk
ImportError: No module named vtk
Error installing Mayavi

real 0m26.916s
user 0m8.910s
sys 0m1.580s
FEMhub: An error occurred while installing mayavi-3.3.1.p2
Please email FEMhub mailing list: fem...@googlegroups.com
explaining the problem and send the relevant part of
of /home/aayush/Desktop/femhub/install.log.  Describe your computer, operating system, etc.
If you want to try to fix the problem, do:
  femhub --shell
  cd /home/aayush/Desktop/femhub/spkg/build/mayavi-3.3.1.p2


I found that mayavi depends on vtk-cvs so we got the error above after disabling the vtk-cvs
"mayavi": ["python", "configobj", "vtk-cvs", "setuptools"]

I'll Disabled mayavi and send the result too.

Pavel Solin

unread,
May 27, 2011, 1:12:15 PM5/27/11
to fem...@googlegroups.com
Yes, I was going to suggest this.

Pavel
Reply all
Reply to author
Forward
0 new messages