scons tries to access /usr/local/

Bug #514007 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TriTetMesh
Fix Committed
Medium
Johan Hake

Bug Description

When I do 'scons' in the tritetmesh root, and then I get

mpic++ -o tritetmesh/trimesh/swig/_trimesh.so -Wl,-rpath,/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib -Wl,-rpath,/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib -pthread -Wl,--export-dynamic -shared tritetmesh/trimesh/swig/trimesh_wrap.os -Ltritetmesh/trimesh -L/home/garth/local/lib -L/home/garth/code/fenics/dolfin/dolfin-all/local/lib -L/home/garth/local/lib -L/usr/lib/atlas -L/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib -L/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib -ltriangle -ldolfin -lboost_program_options-mt -lboost_filesystem-mt -lxml2 -lCGAL -lCGAL_Core -lumfpack -lcholmod -lamd -lcamd -lcolamd -lccolamd -lparmetis -lmetis -llapack -lblas -lslepc -lz -lgts -lm -lscotch -lscotcherr -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lX11 -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0 -ltrimesh
scons: *** [/usr/local/include/tritetmesh] /usr/local/include/tritetmesh: Permission denied
scons: building terminated because of errors.

If I do 'scons install prefix=/home/foo/my_dir' it works fine.

Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 514007] [NEW] scons tries to access /usr/local/

On Thursday 28 January 2010 13:24:42 Garth Wells wrote:
> Public bug reported:
>
> When I do 'scons' in the tritetmesh root, and then I get
>
> mpic++ -o tritetmesh/trimesh/swig/_trimesh.so
> -Wl,-rpath,/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
> -Wl,-rpath,/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib
> -pthread -Wl,--export-dynamic -shared
> tritetmesh/trimesh/swig/trimesh_wrap.os -Ltritetmesh/trimesh
> -L/home/garth/local/lib
> -L/home/garth/code/fenics/dolfin/dolfin-all/local/lib
> -L/home/garth/local/lib -L/usr/lib/atlas
> -L/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
> -L/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib
> -ltriangle -ldolfin -lboost_program_options-mt -lboost_filesystem-mt
> -lxml2 -lCGAL -lCGAL_Core -lumfpack -lcholmod -lamd -lcamd -lcolamd
> -lccolamd -lparmetis -lmetis -llapack -lblas -lslepc -lz -lgts -lm
> -lscotch -lscotcherr -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat
> -lpetscvec -lpetsc -lX11 -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0
> -ltrimesh scons: *** [/usr/local/include/tritetmesh]
> /usr/local/include/tritetmesh: Permission denied scons: building
> terminated because of errors.
>
> If I do 'scons install prefix=/home/foo/my_dir' it works fine.

I have tried clean install, with and with out a /usr/local/include dir but
cannot reproduce it. I suppose it crash when you are compiling the demos, as
_trimesh.so is the last library to get linked by in the packages.

What version of SCons do you have?

Johan

Revision history for this message
Garth Wells (garth-wells) wrote :

Johan Hake wrote:
> On Thursday 28 January 2010 13:24:42 Garth Wells wrote:
>> Public bug reported:
>>
>> When I do 'scons' in the tritetmesh root, and then I get
>>
>> mpic++ -o tritetmesh/trimesh/swig/_trimesh.so
>> -Wl,-rpath,/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
>> -Wl,-rpath,/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib
>> -pthread -Wl,--export-dynamic -shared
>> tritetmesh/trimesh/swig/trimesh_wrap.os -Ltritetmesh/trimesh
>> -L/home/garth/local/lib
>> -L/home/garth/code/fenics/dolfin/dolfin-all/local/lib
>> -L/home/garth/local/lib -L/usr/lib/atlas
>> -L/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
>> -L/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib
>> -ltriangle -ldolfin -lboost_program_options-mt -lboost_filesystem-mt
>> -lxml2 -lCGAL -lCGAL_Core -lumfpack -lcholmod -lamd -lcamd -lcolamd
>> -lccolamd -lparmetis -lmetis -llapack -lblas -lslepc -lz -lgts -lm
>> -lscotch -lscotcherr -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat
>> -lpetscvec -lpetsc -lX11 -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0
>> -ltrimesh scons: *** [/usr/local/include/tritetmesh]
>> /usr/local/include/tritetmesh: Permission denied scons: building
>> terminated because of errors.
>>
>> If I do 'scons install prefix=/home/foo/my_dir' it works fine.
>
> I have tried clean install, with and with out a /usr/local/include dir but
> cannot reproduce it. I suppose it crash when you are compiling the demos, as
> _trimesh.so is the last library to get linked by in the packages.
>
> What version of SCons do you have?
>

v1.2.0.r3842

Garth

> Johan
>

Revision history for this message
Johan Hake (johan-hake) wrote :

On Thursday 28 January 2010 13:59:20 Garth Wells wrote:
> Johan Hake wrote:
> > On Thursday 28 January 2010 13:24:42 Garth Wells wrote:
> >> Public bug reported:
> >>
> >> When I do 'scons' in the tritetmesh root, and then I get
> >>
> >> mpic++ -o tritetmesh/trimesh/swig/_trimesh.so
> >> -Wl,-rpath,/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
> >>
> >> -Wl,-rpath,/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/l
> >>ib -pthread -Wl,--export-dynamic -shared
> >> tritetmesh/trimesh/swig/trimesh_wrap.os -Ltritetmesh/trimesh
> >> -L/home/garth/local/lib
> >> -L/home/garth/code/fenics/dolfin/dolfin-all/local/lib
> >> -L/home/garth/local/lib -L/usr/lib/atlas
> >> -L/home/garth/local/src/slepc-3.0.0-p7/linux-gnu-cxx-opt/lib
> >> -L/home/garth/local/src/petsc-release-3.0.0/linux-gnu-cxx-opt/lib
> >> -ltriangle -ldolfin -lboost_program_options-mt -lboost_filesystem-mt
> >> -lxml2 -lCGAL -lCGAL_Core -lumfpack -lcholmod -lamd -lcamd -lcolamd
> >> -lccolamd -lparmetis -lmetis -llapack -lblas -lslepc -lz -lgts -lm
> >> -lscotch -lscotcherr -lpetscts -lpetscsnes -lpetscksp -lpetscdm
> >> -lpetscmat -lpetscvec -lpetsc -lX11 -lgthread-2.0 -lrt -lgmodule-2.0
> >> -lglib-2.0 -ltrimesh scons: *** [/usr/local/include/tritetmesh]
> >> /usr/local/include/tritetmesh: Permission denied scons: building
> >> terminated because of errors.
> >>
> >> If I do 'scons install prefix=/home/foo/my_dir' it works fine.
> >
> > I have tried clean install, with and with out a /usr/local/include dir
> > but cannot reproduce it. I suppose it crash when you are compiling the
> > demos, as _trimesh.so is the last library to get linked by in the
> > packages.
> >
> > What version of SCons do you have?
>
> v1.2.0.r3842

Same here...

No clue.

Johan

> Garth
>
> > Johan
>

Revision history for this message
Garth Wells (garth-wells) wrote :
Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 514007] Re: scons tries to access /usr/local/

On Thursday 28 January 2010 14:39:52 Garth Wells wrote:
> Changeset 18 is the problem,
>
> http://bazaar.launchpad.net/~tritetmesh/tritetmesh/dev/revision/18

Interesting...

I reverted it.

Johan

Johan Hake (johan-hake)
Changed in tritetmesh:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Johan Hake (johan-hake)
Revision history for this message
Garth Wells (garth-wells) wrote :

Thanks. Works great.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.