Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile:146: recipe for target 'all' failed #28

Closed
surchs opened this issue May 20, 2015 · 28 comments
Closed

Makefile:146: recipe for target 'all' failed #28

surchs opened this issue May 20, 2015 · 28 comments

Comments

@surchs
Copy link

surchs commented May 20, 2015

Hi,

I just tried to build the toolkit following the instructions on the git page. It failed with the following error messages:

Makefile:553: recipe for target 'h5tools_dump.lo' failed
make[5]: *** [h5tools_dump.lo] Error 1
Makefile:497: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Makefile:539: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
CMakeFiles/HDF5.dir/build.make:111: recipe for target 'HDF5-prefix/src/HDF5-stamp/HDF5-build' failed
make[2]: *** [HDF5-prefix/src/HDF5-stamp/HDF5-build] Error 2
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/HDF5.dir/all' failed
make[1]: *** [CMakeFiles/HDF5.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

Any suggestions?

@vfonov
Copy link
Member

vfonov commented May 20, 2015

What OS, version, compiler, cmake parameters ?

@surchs
Copy link
Author

surchs commented May 21, 2015

  1. Debian
  2. Testing
  3. How do I find out?
  4. Default

@vfonov
Copy link
Member

vfonov commented May 21, 2015

create a separate building directory, set build type ( CMAKE_BUILD_TYPE ) to Release

@surchs
Copy link
Author

surchs commented May 25, 2015

Unless I misunderstand, that's already what I am doing

 git clone --recursive git://github.com/BIC-MNI/minc-toolkit.git minc-toolkit
  cd minc-toolkit
  mkdir build && cd build
  ccmake .. # Enter the location of all dependencies, if not detected automatically ..., 
  make && make test && make install

This is the instruction I am following. I now also set the CMAK_BUILD_TYPE flag explicitly to Release. I still get an error:

Makefile:553: recipe for target 'h5tools_dump.lo' failed
make[5]: *** [h5tools_dump.lo] Error 1
Makefile:497: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Makefile:539: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
CMakeFiles/HDF5.dir/build.make:111: recipe for target 'HDF5-prefix/src/HDF5-stamp/HDF5-build' failed
make[2]: *** [HDF5-prefix/src/HDF5-stamp/HDF5-build] Error 2
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/HDF5.dir/all' failed
make[1]: *** [CMakeFiles/HDF5.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

Should I save the entire log?

@vfonov
Copy link
Member

vfonov commented May 25, 2015

That would help, together with output of cmake -LA .

@surchs
Copy link
Author

surchs commented May 25, 2015

Here is the cmake log and the log of the make command.

@TheChymera
Copy link

I am getting the same error - here is a longer tail of my log.

Running Gentoo, and using the x86_64-pc-linux-gnu-4.9.2 compiler from gcc.

@TheChymera
Copy link

It seems the error is starting here:

�[01m�[Kh5tools_dump.c:635:9:�[m�[K �[01;31m�[Kerror: �[m�[Kexpected expression before '�[01m�[K/�[m�[K' token
         //HGOTO_ERROR(dimension_break, H5E_tools_min_id_g, "Could not allocate buffer for ptdata");

Looks like maybe some typo in your code?

@rdvincent
Copy link
Member

Looks like your compiler might be choking on a "//" comment in that C source file. Which compiler are you using?

The offending file is part of HDF5, which we use but don't provide ourselves. As a workaround, you could separately install a version of HDF5 for your OS, and enable the USE_SYSTEM_HDF5 option in the CMake build.

@gdevenyi
Copy link

Looks to me like problems with character encoding, @TheChymera are you running a non-english base system?

@TheChymera
Copy link

@rdvincent see above post for my compiler

@gdevenyi English, UTF-8

@vfonov
Copy link
Member

vfonov commented Jun 18, 2015

Looks like this error was fixed in HDF5 version 1.8.13 - I will update to the latest HDF5 - hopefully that would be enough

@vfonov
Copy link
Member

vfonov commented Jun 18, 2015

@TheChymera @surchs - can you try to build the latest develop branch ?

@TheChymera
Copy link

@vfonov

sci-libs/hdf5-1.8.15_p1 builds nicely here on my end. Currently trying to see if I can set CMake to unbundle that,

@rdvincent
Copy link
Member

the current develop branch now fails for me on both Ubuntu 12.04 and CentOS 6.6, with the same error:

dsets.cpp: In function ‘herr_t test_create(H5::H5File&)’:
dsets.cpp:128:34: error: ‘class H5::DataSet’ has no member named ‘getObjName’

@vfonov
Copy link
Member

vfonov commented Jun 18, 2015

Did you start with a fresh build directory?

@rdvincent
Copy link
Member

No. Trying again.

@rdvincent
Copy link
Member

Ok. that was it. sorry.

@eykn
Copy link

eykn commented Apr 8, 2016

how to solve this error

Makefile:1219: recipe for target '../out/gcc-debug//src/inet/linklayer/ieee80211 mesh/locator/LocatorModule.o' failed
make[1]: *** [../out/gcc-debug//src/inet/linklayer/ieee80211mesh/locator/Locator Module.o] Error 1
make[1]: Leaving directory '/c/omnetpp-4.6/inetmanet-2.0-inetmanet-3.0/src'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

@cjm399
Copy link

cjm399 commented Jul 25, 2017

Here is how I fixed this for myself. Not sure if this will work for everyone. My int main() was returning a 1 at the end. I changed this to be "return 0;" Then the error went away. Not sure why, maybe someone with more experience could explain this.

@vfonov
Copy link
Member

vfonov commented Jul 26, 2017

Hmm... I think our problem was with older version of HDF5 that was resolved using newer one.

@BIC-MNI BIC-MNI deleted a comment from djlimdiwala Dec 26, 2017
@BIC-MNI BIC-MNI deleted a comment from Aspect9 Dec 26, 2017
@BIC-MNI BIC-MNI deleted a comment from ajith4ab Dec 26, 2017
@mymuzk
Copy link

mymuzk commented Feb 24, 2018

The following worked for me when I ran into this error:

make clean
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
make

@BIC-MNI BIC-MNI deleted a comment from athirasivaraj Mar 29, 2018
@sepideh9191
Copy link

@vfonov
hi
i have this error how can I solve it?
Makefile:51: recipe for target 'src/Makefile' failed
make: *** [src/Makefile] Error 1

@gdevenyi
Copy link

gdevenyi commented Aug 1, 2019

@sepideh9191 please open a seperate issue and provide full description of how you acquired the source, how you configured the build, and the full output log of the compile.

@gdevenyi
Copy link

gdevenyi commented Aug 1, 2019

Original reporter is long gone, closing

@gdevenyi gdevenyi closed this as completed Aug 1, 2019
@sepideh9191
Copy link

@surchs gdevenyi
i appreciate the time that you devoted.
excuse me i did not understand so mush.

@colzez
Copy link

colzez commented Sep 10, 2019

how to solve this plz
make: *** [Makefile:95: out/gcc-release//inet] Error 1

@gdevenyi
Copy link

@colzez Please don't hijack other threads. Open a new issues with full details of how you obtained the source, configured it, and built it, including OS and compiler versions and full logs.

@BIC-MNI BIC-MNI locked as off-topic and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants