Dear All,

I added the line. I run
[***] ./configure --with-boost=/usr/local/lib/boost/boost_1_41_0
[***] make
[***] make install

and had no problems.

So, I run 
[***] make examples
but this ends with an error message:
____________________________________________
*
*
*
*
make[4]: Leaving directory `/usr/local/ALPS/alps-1.3.5/example/parapack/loop'
make  check-TESTS
make[4]: Entering directory `/usr/local/ALPS/alps-1.3.5/example/parapack/loop'
 ./loop_ns < loop_ns.ip | diff loop_ns.op -
[speed]
elapsed time = 0.04 sec
[speed]
elapsed time = 0.03 sec
[speed]
elapsed time = 0.02 sec
[speed]
elapsed time = 0.03 sec
[speed]
elapsed time = 0.02 sec
45c45
< Temperature: 0.1 +/- 6.68285e-10 Warning: potential error underflow. Errors might be smaller
---
> Temperature: 0.1 +/- 6.68209e-10 Warning: potential error underflow. Errors might be smaller
91c91
< Temperature: 0.2 +/- 1.33657e-09 Warning: potential error underflow. Errors might be smaller
---
> Temperature: 0.2 +/- 1.33642e-09 Warning: potential error underflow. Errors might be smaller
118c118
< Inverse Temperature: 3.33333 +/- 1.08236e-08 Warning: potential error underflow. Errors might be smaller
---
> Inverse Temperature: 3.33333 +/- 1.08325e-08 Warning: potential error underflow. Errors might be smaller
137c137
< Temperature: 0.3 +/- 1.27558e-09 Warning: potential error underflow. Errors might be smaller
---
> Temperature: 0.3 +/- 1.27462e-09 Warning: potential error underflow. Errors might be smaller
183c183
< Temperature: 0.4 +/- 2.67314e-09 Warning: potential error underflow. Errors might be smaller
---
> Temperature: 0.4 +/- 2.67283e-09 Warning: potential error underflow. Errors might be smaller
FAIL: loop_ns
==================
1 of 1 test failed
==================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/usr/local/ALPS/alps-1.3.5/example/parapack/loop'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/usr/local/ALPS/alps-1.3.5/example/parapack/loop'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/usr/local/ALPS/alps-1.3.5/example/parapack'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/ALPS/alps-1.3.5/example'
make: *** [examples] Error 2
_____________________________________________

I don not if I have to do a reinstall or not.
Best, 
Diego



2010/11/12 Synge Todo <wistaria@comp-phys.org>
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
>