View Issue Details

IDProjectCategoryView StatusLast Update
0003064Slicer4Core: Building (CMake, Superbuild)public2014-03-06 04:54
Reportermanhnguyen Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.2.2-1 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0003064: error PRJ0019: A tool returned an error code from "Performing build step for 'Slicer'"
Description

I have 2 problems in total:

Build started: Project: BRAINSFitLib, Configuration: Release Win32 ------
5>mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "........\lib\Slicer-4.2\cli-modules\Release\BRAINSDemonWarpLib.dll". The binary is not a valid Windows image.
6>Linking...
7>------ Build started: Project: SlicerBaseLogic, Configuration: Release Win32 ------
5>Build log was saved at "file://g:\slicer4-superbuild\Slicer-build\Modules\CLI\BRAINSTools\BRAINSDemonWarp\BRAINSDemonWarpLib.dir\Release\BuildLog.htm"
5>BRAINSDemonWarpLib - 1 error(s), 0 warning(s

1>Project : error PRJ0019: A tool returned an error code from "Performing build step for 'Slicer'"
1>Build log was saved at "file://g:\slicer4-superbuild\Slicer.dir\Release\BuildLog.htm"
1>Slicer - 2 error(s), 18 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

As Steve Pieper has provide me for use Slicer4.2 from branch which is more stable, I reach this error[1]. I have tried to build up many times, but still I got this issue. I even try to follow the guide, but it didn't solve this problem.

TagsNo tags attached.

Activities

2013-04-12 12:52

 

Untitled.png (184,102 bytes)
Untitled.png (184,102 bytes)
jcfr

jcfr

2013-04-12 13:02

administrator   ~0008389

Please try the following:

1) Run the following script to check if there are some too long paths:

https://github.com/jcfr/list-longest-paths#readme

2)

a)If it found some path too long (>= 260), try to build in a different
folder:

"g:\s4-build" instead of "g:\slicer4-superbuild"

b) If it did NOT find too long paths, this is probably specific to BRAINS, try building without BRAINS enabled

Advanced option: Slicer_BUILD_BRAINSTOOLS set to FALSE

manhnguyen

manhnguyen

2013-04-12 13:50

reporter   ~0008390

Dear jcfr,

Thank you for your reply

At the moment I am trying to build Slicer again after turn off Slicer_BUILD_BRAINSTOOLS ( Slicer_BUILD_BRAINSTOOLS "Build the BRAINS subset of registration and segmentation tools." in G:\slicer4-superbuild\Slicer-build\Modules\CLI\BRAINSTools is the one I turn it off).

Since the building takes quite some time, (I think from 1 hour to half a day for my computer) I will let you know as soon as it have some results

Sincerely

Manh nguyen

manhnguyen

manhnguyen

2013-04-12 16:04

reporter   ~0008391

Dear jcfr,

Disable the Slicer_BUILD_BRANSTOOLS does not seems to be fixed the problem. the brainstools has been solved, but then I got another error instead error PRJ0019: A tool returned an error code from "Performing update step (git fetch) for 'DCMTK'" and also the error PRJ0019: A tool returned an error code from "Performing build step for 'Slicer'"

jcfr

jcfr

2013-04-12 16:06

administrator   ~0008392

1) If you have antivirus, make sure to exclude your build directory

2) Make sure to use >= CMake 2.8.9. What about CMake 2.8.10.2 ?

manhnguyen

manhnguyen

2013-04-12 16:08

reporter   ~0008393

I don't have antivirus on this computer and at the moment I'm using the latest version of CMake

jcfr

jcfr

2013-04-13 01:56

administrator   ~0008394

To make sure the error is not related to the 4.2 branch, could you try to build the trunk. If it works, we could think about backporting some build system fix.

manhnguyen

manhnguyen

2013-04-13 07:48

reporter   ~0008395

21>CMake Error at teem-prefix/src/teem-stamp/extract-teem.cmake:50 (file):
21> file RENAME failed to rename
21> D:/Slicer4-superbuild/ex-teem1234/teem-1.10.0-src
21> to
21> D:/Slicer4-superbuild/teem
21> because: No such file or directory
21>Project : error PRJ0019: A tool returned an error code from "Performing download step (download, verify and extract) for 'teem'"
21>Build log was saved at "file://d:\Slicer4-superbuild\teem.dir\Release\BuildLog.htm"
21>teem - 1 error(s), 0 warning(s)

Dear jcfr
This is the only problem in Slicer4 (trunk)

manhnguyen

manhnguyen

2013-04-14 13:33

reporter   ~0008396

dear jcfr,
could you please help me with the problem above?

jcfr

jcfr

2013-04-15 09:24

administrator   ~0008398

Seems there are issue checking out the external project on your machine.

The latest stable version of CMake 2.8.11-rc2 include a fix that could help.
See contribution of Bill Hoffman named "ExternalProject: Retry on a failed git clone". See http://www.kitware.com/blog/home/post/468

You can download the 2.8.11-rc2 here:
http://www.cmake.org/files/v2.8/cmake-2.8.11-rc2-win32-x86.zip

Make sure to do a clean build.

Thanks
Jc

jcfr

jcfr

2013-04-16 09:14

administrator   ~0008408

Issue is considered fix. Please re-open if you still have issue building using the latest release candidate of CMake.

Lchauvin

Lchauvin

2013-05-08 12:39

developer   ~0008578

I still had the same issue with CMake 2.8.11-rc2.
However, I only had this issue when compiling in Debug mode, I don't know why.
And I think it was most of the time because of svn.

I had this kind of message:
svn: E175002: Unable to connect to a repository at URL 'http://svn.slicer.org/Slicer3-lib-mirrors/trunk/cmcurl'
svn: E175002: OPTIONS of 'http://svn.slicer.org/Slicer3-lib-mirrors/trunk/cmcurl': Could not resolve hostname `svn.slicer.org': No such host is known.

I disabled my windows firewall, and it worked.

jcfr

jcfr

2014-03-06 04:53

administrator   ~0010788

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2013-04-12 12:52 manhnguyen New Issue
2013-04-12 12:52 manhnguyen Status new => assigned
2013-04-12 12:52 manhnguyen Assigned To => jcfr
2013-04-12 12:52 manhnguyen File Added: Untitled.png
2013-04-12 12:58 jcfr Target Version => Slicer 4.3.0
2013-04-12 12:58 jcfr Description Updated
2013-04-12 13:02 jcfr Note Added: 0008389
2013-04-12 13:02 jcfr Status assigned => feedback
2013-04-12 13:50 manhnguyen Note Added: 0008390
2013-04-12 16:04 manhnguyen Note Added: 0008391
2013-04-12 16:06 jcfr Note Added: 0008392
2013-04-12 16:08 manhnguyen Note Added: 0008393
2013-04-13 01:56 jcfr Note Added: 0008394
2013-04-13 07:48 manhnguyen Note Added: 0008395
2013-04-14 13:33 manhnguyen Note Added: 0008396
2013-04-15 09:24 jcfr Note Added: 0008398
2013-04-16 09:14 jcfr Note Added: 0008408
2013-04-16 09:14 jcfr Status feedback => resolved
2013-04-16 09:14 jcfr Fixed in Version => Slicer 4.3.0
2013-04-16 09:14 jcfr Resolution open => fixed
2013-05-08 12:39 Lchauvin Note Added: 0008578
2014-03-06 04:53 jcfr Note Added: 0010788
2014-03-06 04:54 jcfr Status resolved => closed