BIC-MNI / minc-toolkit

Metaproject uniting all the available minc tools
GNU General Public License v3.0
37 stars 15 forks source link

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

Closed surchs closed 5 years ago

surchs commented 9 years ago

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 commented 9 years ago

What OS, version, compiler, cmake parameters ?

surchs commented 9 years ago
  1. Debian
  2. Testing
  3. How do I find out?
  4. Default
vfonov commented 9 years ago

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

surchs commented 9 years ago

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 commented 9 years ago

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

surchs commented 9 years ago

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

TheChymera commented 9 years ago

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 commented 9 years ago

It seems the error is starting here:

h5tools_dump.c:635:9: error: expected expression before '/' 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 commented 9 years ago

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 commented 9 years ago

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

TheChymera commented 9 years ago

@rdvincent see above post for my compiler

@gdevenyi English, UTF-8

vfonov commented 9 years ago

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 commented 9 years ago

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

TheChymera commented 9 years ago

@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 commented 9 years ago

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 commented 9 years ago

Did you start with a fresh build directory?

rdvincent commented 9 years ago

No. Trying again.

rdvincent commented 9 years ago

Ok. that was it. sorry.

eykn commented 8 years ago

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 commented 7 years ago

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 commented 7 years ago

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

mymuzk commented 6 years ago

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

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

sepideh9191 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

Original reporter is long gone, closing

sepideh9191 commented 5 years ago

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

colzez commented 4 years ago

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

gdevenyi commented 4 years ago

@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.