Dear All,
This problem has been fixed in ALPS 2.
As a workaround for ALPS 1.3.5, please add
#include <sys/stat.h>
by hand in src/alps/parapack/filelock.C.
Best,
Synge
On 2010/11/12, at 1:45, Jeff Hammond wrote:
> S_IWRITE better be defined in sys/stat.h with Ubuntsu 10.10 or
> something is seriously wrong. See
> http://www.gnu.org/s/libc/manual/html_node/Permission-Bits.html
>
> Apparently, sys/stat.h is not included in
> alps-1.3.5/src/alps/parapack/filelock.C unless one is running Windows:
>
> #if defined(ALPS_HAVE_WINDOWS_H)
> # include <sys/stat.h>
> # include <io.h>
> #endif
>
> Jeff
>
> 2010/11/11 Synge Todo <wistaria@comp-phys.org>:
>> Dear Diego,
>>
>> Usually, the macro S_IWRITE is defined in sys/stat.h.
>> Where can you find S_IWRITE in Ubuntsu 10.10?
>>
>> Best,
>> Synge
>>
>>
>> On 2010/11/10, at 23:54, rosales@fisica.unlp.edu.ar wrote:
>>
>>> Dear All,
>>>
>>> I am attempting to install alps-1.3.5 release.
>>> I have boost in /usr/local/lib/boost and lapack libraries. I am running
>>> Ubuntu 10.10
>>>
>>> I run ./configure --with-boost=/usr/local/lib/boost/boost_1_41_0
>>>
>>> with boost_1_44_0
>>> -------------------------------------------
>>> Summary of configuration:
>>> ALPS version 1.3.5
>>> prefix /home/rosales/ALPS
>>> compiler type gnu [g++]
>>> optimization yes
>>> exceptions yes
>>> warnings no
>>> Boost version svn
>>> MPI support no
>>> OpenMP support no
>>> HDF5 support no
>>> LAPACK support yes
>>> SQLite support no
>>> XML parser native
>>> Documentation no
>>>
>>> and
>>>
>>> with boost_1_41_0
>>> -------------------------------------------
>>>
>>> Summary of configuration:
>>> ALPS version 1.3.5
>>> prefix /home/rosales/ALPS
>>> compiler type gnu [g++]
>>> optimization yes
>>> exceptions yes
>>> warnings no
>>> Boost version 1_41
>>> MPI support no
>>> OpenMP support no
>>> HDF5 support no
>>> LAPACK support yes
>>> SQLite support no
>>> XML parser native
>>> Documentation no
>>>
>>> I have the same problem with both. I run make, but this eventually exits
>>> with an error:
>>> -----------------------------------
>>>
>>>
>>> Making all in lib
>>> make[1]: Entering directory `/usr/local/ALPS/alps-1.3.5/lib'
>>> Making all in comm-sgl
>>> make[2]: Entering directory `/usr/local/ALPS/alps-1.3.5/lib/comm-sgl'
>>> make[2]: Nothing to be done for `all'.
>>> make[2]: Leaving directory `/usr/local/ALPS/alps-1.3.5/lib/comm-sgl'
>>> Making all in comm-mpi
>>> make[2]: Entering directory `/usr/local/ALPS/alps-1.3.5/lib/comm-mpi'
>>> make[2]: Nothing to be done for `all'.
>>> make[2]: Leaving directory `/usr/local/ALPS/alps-1.3.5/lib/comm-mpi'
>>> Making all in alps
>>> make[2]: Entering directory `/usr/local/ALPS/alps-1.3.5/lib/alps'
>>> /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
>>> -I../../src -I../../src -DNDEBUG -I/usr/local/lib/boost/boost_1_41_0
>>> -g -O2 -MT filelock.lo -MD -MP -MF .deps/filelock.Tpo -c -o filelock.lo
>>> `test -f '../../src/alps/parapack/filelock.C' || echo
>>> './'`../../src/alps/parapack/filelock.C
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG
>>> -I/usr/local/lib/boost/boost_1_41_0 -g -O2 -MT filelock.lo -MD -MP -MF
>>> .deps/filelock.Tpo -c ../../src/alps/parapack/filelock.C -fPIC -DPIC -o
>>> .libs/filelock.o
>>> ../../src/alps/parapack/filelock.C: In member function ‘void
>>> alps::filelock::lock(int)’:
>>> ../../src/alps/parapack/filelock.C:93: error: ‘S_IWRITE’ was not declared
>>> in this scope
>>> make[2]: *** [filelock.lo] Error 1
>>> make[2]: Leaving directory `/usr/local/ALPS/alps-1.3.5/lib/alps'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/usr/local/ALPS/alps-1.3.5/lib'
>>> make: *** [all-recursive] Error 1
>>>
>>>
>>> -----------------------------------------------
>>> I've not had trouble installing ALPS libraries in the past.
>>> Any help would be really appreciated.
>>>
>>> Many Thanks,
>>>
>>> Diego
>>>
>>>
>>>
>>
>>
>
>
>
> --
> Jeff Hammond
> Argonne Leadership Computing Facility
> jhammond@alcf.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
>