Problems Compiling

6 views
Skip to first unread message

johnh...@buckheadinvestments.com

unread,
Dec 18, 2008, 7:53:01 AM12/18/08
to FASTlib_forum
I have been trying to compile some of the programs in MLPACK and am
receiving the following problem:

$ fl-build fgt_kde_bin
!!! Using g77. GFortran will be preferred eventually.
!!! Using g77. GFortran will be preferred eventually.
*** Building from within build system
!!! No ':' is in the target rule name, assuming ':fgt_kde_bin'.
*** Generating Makefile in current directory
*** Target Rule: ':fgt_kde_bin'
... Reading /fastlib2/mlpack/kde/build.py
... Reading /fastlib2/mlpack/series_expansion/build.py
... Reading /fastlib2/fastlib/build.py
... Reading /fastlib2/fastlib/la/build.py
... Reading /fastlib2/fastlib/base/build.py
... Reading /fastlib2/fastlib/col/build.py
... Reading /fastlib2/fastlib/fx/build.py
... Reading /fastlib2/fastlib/file/build.py
... Reading /fastlib2/fastlib/data/build.py
... Reading /fastlib2/fastlib/math/build.py
... Reading /fastlib2/fastlib/tree/build.py
... Reading /fastlib2/fastlib/par/build.py
... Reading /fastlib2/mlpack/allknn/build.py
*** Running Makefile
... Making bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/obj/
fastlib_b ase_cc.o
... Making bin/i686_CYGWIN_NT-6.0_check_gcc4_-DISABLE_DISK_MATRIX/obj/
fastlib_base_common.o
/bin/sh: gcc4: command not found
/bin/sh: g++4: command not found make:
*** [/fastlib2/bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/
obj /fastlib_base_cc.o] Error 127 make:
*** Waiting for unfinished jobs.... make:
*** [/fastlib2/bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/
obj /fastlib_base_common.o] Error 127’

Nikolaos Vasiloglou II

unread,
Dec 18, 2008, 9:21:31 AM12/18/08
to fastli...@googlegroups.com
Can you rebuilt it and send us the message again?

obj /fastlib_base_common.o] Error 127'


John Harris

unread,
Dec 18, 2008, 9:24:17 AM12/18/08
to fastli...@googlegroups.com

Here is the error after rebuilding

 

$ fl-build fgt_kde_bin
!!! Using g77. GFortran will be preferred eventually.
!!! Using g77. GFortran will be preferred eventually.
*** Building from within build system
!!! No ':' is in the target rule name, assuming ':fgt_kde_bin'.
*** Generating Makefile in current directory
*** Target Rule: ':fgt_kde_bin'

.. Reading /fastlib2/mlpack/kde/build.py
.. Reading /fastlib2/mlpack/series_expansion/build.py
.. Reading /fastlib2/fastlib/build.py
.. Reading /fastlib2/fastlib/la/build.py
.. Reading /fastlib2/fastlib/base/build.py
.. Reading /fastlib2/fastlib/col/build.py
.. Reading /fastlib2/fastlib/fx/build.py
.. Reading /fastlib2/fastlib/file/build.py
.. Reading /fastlib2/fastlib/data/build.py
.. Reading /fastlib2/fastlib/math/build.py
.. Reading /fastlib2/fastlib/tree/build.py
.. Reading /fastlib2/fastlib/par/build.py


.. Reading /fastlib2/mlpack/allknn/build.py
*** Running Makefile

.. Making bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/obj/
fastlib_b ase_cc.o


.. Making bin/i686_CYGWIN_NT-6.0_check_gcc4_-DISABLE_DISK_MATRIX/obj/
fastlib_base_common.o
/bin/sh: gcc4: command not found
/bin/sh: g++4: command not found make:
*** [/fastlib2/bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/
obj /fastlib_base_cc.o] Error 127 make:
*** Waiting for unfinished jobs.... make:
*** [/fastlib2/bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/
obj /fastlib_base_common.o] Error 127'

From: fastli...@googlegroups.com [mailto:fastli...@googlegroups.com] On Behalf Of Nikolaos Vasiloglou II
Sent: Thursday, December 18, 2008 9:22 AM
To: fastli...@googlegroups.com
Subject: [fastlib_forum] Re: Problems Compiling

 

Can you rebuilt it and send us the message again?

On Thu, Dec 18, 2008 at 7:53 AM, <johnh...@buckheadinvestments.com> wrote:


I have been trying to compile some of the programs in MLPACK and am
receiving the following problem:

$ fl-build fgt_kde_bin
!!! Using g77. GFortran will be preferred eventually.
!!! Using g77. GFortran will be preferred eventually.
*** Building from within build system
!!! No ':' is in the target rule name, assuming ':fgt_kde_bin'.
*** Generating Makefile in current directory
*** Target Rule: ':fgt_kde_bin'

.. Reading /fastlib2/mlpack/kde/build.py
.. Reading /fastlib2/mlpack/series_expansion/build.py
.. Reading /fastlib2/fastlib/build.py
.. Reading /fastlib2/fastlib/la/build.py
.. Reading /fastlib2/fastlib/base/build.py
.. Reading /fastlib2/fastlib/col/build.py
.. Reading /fastlib2/fastlib/fx/build.py
.. Reading /fastlib2/fastlib/file/build.py
.. Reading /fastlib2/fastlib/data/build.py
.. Reading /fastlib2/fastlib/math/build.py
.. Reading /fastlib2/fastlib/tree/build.py
.. Reading /fastlib2/fastlib/par/build.py


.. Reading /fastlib2/mlpack/allknn/build.py
*** Running Makefile

.. Making bin/i686_CYGWIN_NT-6.0_check_gcc4_-DDISABLE_DISK_MATRIX/obj/
fastlib_b ase_cc.o

Nikolaos Vasiloglou II

unread,
Dec 18, 2008, 9:38:01 AM12/18/08
to fastli...@googlegroups.com
Ok
first make sure you have gcc 4 and g++ 4 on your machine
then go to your /bin directory and make a symbolic link  ln -s gcc-4 gcc4
                                                                                  ln -s g++-4 g++4
Also make sure you have installed gfortran
You cannot compile because CYGWIN has gcc4 under the gcc-4 name. We are aware of this issue and we are soon going to publish a fix
Also take a look here
Reply all
Reply to author
Forward
0 new messages