Multiple Cores Build

View: New views
6 Messages — Rating Filter:   Alert me  

Multiple Cores Build

by Esben Stien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Trying to build using multiple cores (-j4/-j8) won't work for me. I have
no problems with other software. Is this maybe a bug?.

Doing a clean build, I get:

Building CXX object
k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayout.cpp.o
Built target k3d-resource-compiler
[  3%] [  3%] Building CXX object
k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayoutGlue.cpp.o
Building CXX object
k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTSimpleLayout.cpp.o
Linking CXX shared library ../../../lib/libk3dsdk-ftgl.so
[  3%] Built target k3dsdk-ftgl
make: *** [all] Error 2

If I then run make, it completes the 3% mark and continues. I then stop
the build and start with -j8 again and it continues until it hits
another one at 16% or so.

Running just make, completes the build.

--
Esben Stien is b0ef@e     s      a            
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e
           jid:b0ef@    n     n

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Multiple Cores Build

by Timothy M. Shead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Esben Stien wrote:

> Trying to build using multiple cores (-j4/-j8) won't work for me. I have
> no problems with other software. Is this maybe a bug?.
>
> Doing a clean build, I get:
>
> Building CXX object
> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayout.cpp.o
> Built target k3d-resource-compiler
> [  3%] [  3%] Building CXX object
> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayoutGlue.cpp.o
> Building CXX object
> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTSimpleLayout.cpp.o
> Linking CXX shared library ../../../lib/libk3dsdk-ftgl.so
> [  3%] Built target k3dsdk-ftgl
> make: *** [all] Error 2
>
> If I then run make, it completes the 3% mark and continues. I then stop
> the build and start with -j8 again and it continues until it hits
> another one at 16% or so.
>
> Running just make, completes the build.
>
Esben:

I build with make -j4 on a regular basis.  Your posting skipped-over the
actual failure, can you resend with the complete output?

Cheers,
Tim

[tshead.vcf]

begin:vcard
fn:Timothy Shead
n:Shead;Timothy
org:www.k-3d.org
email;internet:tshead@...
title:Founder
x-mozilla-html:FALSE
version:2.1
end:vcard



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Multiple Cores Build

by Daniel Scott Matthews :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Aug 16, 2009 at 6:26 AM, Timothy M. Shead<tshead@...> wrote:

> Esben Stien wrote:
>>
>> Trying to build using multiple cores (-j4/-j8) won't work for me. I have
>> no problems with other software. Is this maybe a bug?.
>> Doing a clean build, I get:
>> Building CXX object
>> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayout.cpp.o
>> Built target k3d-resource-compiler
>> [  3%] [  3%] Building CXX object
>> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayoutGlue.cpp.o
>> Building CXX object
>> k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTSimpleLayout.cpp.o
>> Linking CXX shared library ../../../lib/libk3dsdk-ftgl.so
>> [  3%] Built target k3dsdk-ftgl
>> make: *** [all] Error 2
>>
>> If I then run make, it completes the 3% mark and continues. I then stop
>> the build and start with -j8 again and it continues until it hits
>> another one at 16% or so.
>> Running just make, completes the build.
>
> Esben:
>
> I build with make -j4 on a regular basis.  Your posting skipped-over the
> actual failure, can you resend with the complete output?
>
> Cheers,
> Tim
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> K3d-development mailing list
> K3d-development@...
> https://lists.sourceforge.net/lists/listinfo/k3d-development
>
>

I use,

stime=`date`; make -j5; echo "Start: $stime  Finish:`date`"

NB -j5 as I have 4 cores, the rest is just to record the build time.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Multiple Cores Build

by Esben Stien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Timothy M. Shead" <tshead@...> writes:

> Your posting skipped-over the actual failure

Right. here's the full output:

[  0%] Building C object k3dsdk/glew/CMakeFiles/k3dsdk-glew.dir/glew.c.o
[  0%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/dict.c.o
[  0%] [  0%] [  0%] Generating k3d.pot
Building CXX object k3dsdk/Half/CMakeFiles/toFloat.dir/toFloat.cpp.o
[  0%] [  0%] [  0%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTBuffer.cpp.o
Building CXX object k3dsdk/Half/CMakeFiles/eLut.dir/eLut.cpp.o
Building CXX object resource-compiler/CMakeFiles/k3d-resource-compiler.dir/main.cpp.o
Building CXX object k3dsdk/parallel/CMakeFiles/k3dsdk-parallel.dir/threads.cpp.o
[  0%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/geom.c.o
[  0%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTCharmap.cpp.o
[  0%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/memalloc.c.o
Linking CXX executable toFloat
Linking CXX shared library ../../lib/libk3dsdk-parallel.so
[  0%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/mesh.c.o
Linking CXX executable eLut
[  0%] [  0%] [  0%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTContour.cpp.o
Built target eLut
/usr/bin/xgettext: error while opening "modules/reference_opengl_painters/face_varying_painter.cpp" for reading: No such file or directory
make[2]: *** [po/k3d.pot] Error 1
make[1]: *** [po/CMakeFiles/nls.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Built target k3dsdk-parallel
[  0%] [  0%] [  0%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFace.cpp.o
Built target toFloat
[  1%] [  1%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/priorityq.c.o
Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/normal.c.o
[  1%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/render.c.o
Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyphContainer.cpp.o
[  1%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/sweep.c.o
[  1%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLibrary.cpp.o
[  1%] Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/tess.c.o
[  1%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTPoint.cpp.o
[  1%] Linking C shared library ../../lib/libk3dsdk-glew.so
Building C object k3dsdk/sgi_tesselator/CMakeFiles/k3dsdk-sgi-tesselator.dir/tessmono.c.o
[  1%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTSize.cpp.o
[  1%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTVectoriser.cpp.o
[  1%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTBitmapFont.cpp.o
[  1%] [  1%] [  1%] Built target k3dsdk-glew
Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTExtrudeFont.cpp.o
Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTBufferFont.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTFont.cpp.o
[  2%] Linking C shared library ../../lib/libk3dsdk-sgi-tesselator.so
Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTFontGlue.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTOutlineFont.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTPixmapFont.cpp.o
[  2%] Built target k3dsdk-sgi-tesselator
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTPolygonFont.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTFont/FTTextureFont.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTBitmapGlyph.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTBufferGlyph.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTExtrudeGlyph.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTGlyph.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTGlyphGlue.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTOutlineGlyph.cpp.o
[  2%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTPixmapGlyph.cpp.o
[  3%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTPolygonGlyph.cpp.o
[  3%] [  3%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTGlyph/FTTextureGlyph.cpp.o
Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayout.cpp.o
[  3%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTLayoutGlue.cpp.o
[  3%] Building CXX object k3dsdk/ftgl/src/CMakeFiles/k3dsdk-ftgl.dir/FTLayout/FTSimpleLayout.cpp.o
Linking CXX shared library ../../../lib/libk3dsdk-ftgl.so
Linking CXX executable ../bin/k3d-resource-compiler
[  3%] Built target k3dsdk-ftgl
[  3%] Built target k3d-resource-compiler
make: *** [all] Error 2

Once again; when running just make, it runs fine.

--
Esben Stien is b0ef@e     s      a            
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e
           jid:b0ef@    n     n

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Multiple Cores Build

by Timothy M. Shead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Esben Stien wrote:

> Right. here's the full output:

> /usr/bin/xgettext: error while opening "modules/reference_opengl_painters/face_varying_painter.cpp" for reading: No such file or directory

This failure happens when the i18n catalog gets out-of-sync with the
sources.  It's actually failing every time, it just isn't noticeable
when using -j1 because it's the last thing built in that case.

I already updated the catalog this morning, if you pull the latest it
should resolve the problem.

Cheers,
Tim



[tshead.vcf]

begin:vcard
fn:Timothy Shead
n:Shead;Timothy
org:www.k-3d.org
email;internet:tshead@...
title:Founder
x-mozilla-html:FALSE
version:2.1
end:vcard



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Multiple Cores Build

by Esben Stien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Timothy M. Shead" <tshead@...> writes:

> This failure happens when the i18n catalog gets out-of-sync with the
> sources. [..] I already updated the catalog this morning

Thank you. This got me past that one.

I now stumble upon something else, but this also happens with a simple
"make". I'll start a new thread on that.

--
Esben Stien is b0ef@e     s      a            
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e
           jid:b0ef@    n     n

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development