[Pw_forum] compilation on Blue Gene/L

brsahu at physics.utexas.edu brsahu at physics.utexas.edu
Sat Sep 1 19:13:18 CEST 2007


Axel,

I added to AR and ARFLAGS the -k option as

AR = ar -k
ARFLAGS = ruv -k

but it still gives the same "illegal option" error.

Bhagawan

Quoting Axel Kohlmeyer <akohlmey at cmm.chem.upenn.edu>:

> On Fri, 31 Aug 2007 brsahu at physics.utexas.edu wrote:
>
> this is an error in iotk, the 'k' error is due to the
> fact, that ARFLAGS is not properly imported. you could
> try adding them to AR.
>
> good luck (you'll be needing it),
>    axel.
>
>
> BS>
> BS> Dear PWSCF users,
> BS>
> BS> I am trying to compile the latest version of pwscf code on Blue
> BS> Gene/L. I used the
> BS> Make.bgl file provided with the distribution and checked the
> BS> "correctness" of all the entries in it w.r.t Blue Gene here. There is
> BS> a compilation error at the preprocessing stage:
> BS>
> BS> 1501-510  Compilation successful for file iotk_write.f90.
> BS> /opt/ibmcmp/xlf/9.1/bin/blrts_xlf90 -qalias=noaryovrlp -I../include
> BS> -O3 -qstrict
> BS> -qarch=440d -qtune=440 -qsuffix=cpp=f90 -qdpc -qalias=nointptr -Q -I.
> BS> -I../include
> BS> -I../Modules -I../PW -I../PH  -I/bgl/BlueLight/ppcfloor/bglsys/include
> BS> -I../iotk/src
> BS> -qfree=f90 -I../include
> BS>   
> -WF,-D__AIX,-D__XLF,-D__MPI,-D__PARA,-D__MASS,-D__FFTW,-D__BGL,-D__TRUE_BGL
> BS> -I.
> BS> -I../include -I../Modules -I../PW -I../PH
> BS> -I/bgl/BlueLight/ppcfloor/bglsys/include
> BS>   
> -I../iotk/src,-D__AIX,-D__XLF,-D__MPI,-D__PARA,-D__MASS,-D__FFTW,-D__BGL,-D__TRUE_BGL
> BS> -I../Modules -I../PW -I../PH -c iotk_xtox.f90
> BS> ** iotk_atol_x   === End of Compilation 1 ===
> BS> ** iotk_atoi1   === End of Compilation 2 ===
> BS> ** iotk_itoa1   === End of Compilation 3 ===
> BS> ** iotk_ltoa1   === End of Compilation 4 ===
> BS> 1501-510  Compilation successful for file iotk_xtox.f90.
> BS> ar   libiotk.a iotk_attr+CHARACTER1_0.o iotk_attr+COMPLEX1_0.o
> BS> iotk_attr+COMPLEX1_3.o
> BS> iotk_attr+COMPLEX2_0.o iotk_attr+COMPLEX2_3.o iotk_attr+INTEGER1_0.o
> BS> iotk_attr+INTEGER1_3.o iotk_attr+INTEGER2_0.o iotk_attr+INTEGER2_3.o
> BS> iotk_attr+LOGICAL1_0.o iotk_attr+LOGICAL1_3.o iotk_attr+LOGICAL2_0.o
> BS> iotk_attr+LOGICAL2_3.o iotk_attr+REAL1_0.o iotk_attr+REAL1_3.o
> BS> iotk_attr+REAL2_0.o
> BS> iotk_attr+REAL2_3.o iotk_attr.o iotk_attr_interf.o iotk_base.o
> BS> iotk_dat+CHARACTER1_0.o
> BS> iotk_dat+CHARACTER1_3.o iotk_dat+COMPLEX1_0.o iotk_dat+COMPLEX1_3.o
> BS> iotk_dat+COMPLEX2_0.o
> BS> iotk_dat+COMPLEX2_3.o iotk_dat+INTEGER1_0.o iotk_dat+INTEGER1_3.o
> BS> iotk_dat+INTEGER2_0.o
> BS> iotk_dat+INTEGER2_3.o iotk_dat+LOGICAL1_0.o iotk_dat+LOGICAL1_3.o
> BS> iotk_dat+LOGICAL2_0.o
> BS> iotk_dat+LOGICAL2_3.o iotk_dat+REAL1_0.o iotk_dat+REAL1_3.o   
> iotk_dat+REAL2_0.o
> BS> iotk_dat+REAL2_3.o iotk_dat.o iotk_dat_interf.o iotk_error.o
> BS> iotk_error_interf.o
> BS> iotk_files.o iotk_files_interf.o iotk_fmt.o iotk_fmt_interf.o iotk_misc.o
> BS> iotk_misc_interf.o iotk_module.o iotk_scan.o iotk_scan_interf.o   
> iotk_str.o
> BS> iotk_str_interf.o iotk_unit.o iotk_unit_interf.o iotk_write.o
> BS> iotk_write_interf.o
> BS> iotk_xtox.o iotk_xtox_interf.o
> BS> ar: illegal option -- k
> BS> Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV]
> BS> [member-name] [count]
> BS> archive-file file...
> BS>         ar -M [<mri-script]
> BS>   commands:
> BS>    d            - delete file(s) from the archive
> BS>    m[ab]        - move file(s) in the archive
> BS>    p            - print file(s) found in the archive
> BS>    q[f]         - quick append file(s) to the archive
> BS>    r[ab][f][u]  - replace existing or insert new file(s) into the archive
> BS>    t            - display contents of archive
> BS>    x[o]         - extract file(s) from the archive
> BS>   command specific modifiers:
> BS>    [a]          - put file(s) after [member-name]
> BS>    [b]          - put file(s) before [member-name] (same as [i])
> BS>    [N]          - use instance [count] of name
> BS>    [f]          - truncate inserted file names
> BS>    [P]          - use full path names when matching
> BS>    [o]          - preserve original dates
> BS>    [u]          - only replace files that are newer than current
> BS> archive contents
> BS>   generic modifiers:
> BS>    [c]          - do not warn if the library had to be created
> BS>    [s]          - create an archive index (cf. ranlib)
> BS>    [S]          - do not build a symbol table
> BS>    [v]          - be verbose
> BS>    [V]          - display the version number
> BS>   emulation options:
> BS>    No emulation specific options
> BS> ar: supported targets: elf32-powerpc aixcoff-rs6000 elf32-powerpcle
> BS> ppcboot elf32-little
> BS> elf32-big elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf64-little
> BS> elf64-big srec
> BS> symbolsrec tekhex binary ihex
> BS> make[2]: *** [libiotk.a] Error 1
> BS> make[2]: Leaving directory `/home/bsahu/pwscf/iotk/src'
> BS> make[1]: *** [libiotk.a] Error 2
> BS> make[1]: Leaving directory `/home/bsahu/pwscf/iotk'
> BS> make: *** [libiotk] Error 2
> BS>
> BS> It says -- k is an illegal option. But the
> BS> The portion of make.sys from where the error seems to come is:
> BS>
> BS> LIBS           = -L$(BGLSYS)/lib -lmpich.rts -lmsglayer.rts -lrts.rts
> BS> -ldevices.rts  -L/home/bekas/LIBS/BGL -lmass -lmassvbgl -ldcopy -lb-d
> BS> -lnewdczed.rts  -llapack_440n -lnewdczed.rts  -ldcopy -lb-d -lfftwn
> BS> -allow-multiple-definition
> BS>
> BS> #
> BS> LD           = $(F77)
> BS> LIBOBJS      = ../flib/ptools.a ../flib/flib.a ../clib/clib.a
> BS> ../iotk/src/libiotk.a
> BS> LDFLAGS      = ../flib/ptools.a ../flib/flib.a ../clib/clib.a
> BS> $(LIBOBJS) $(LIBS) -qarch=440d
> BS>
> BS> AR           =  ar
> BS> ARFLAGS      = ruv
> BS> RANLIB       = ranlib
> BS>
> BS>
> BS> where I do not see any -- or k after "ar".
> BS>
> BS> What could be wrong?
> BS>
> BS>
> BS>
> BS> Bhagawan Sahu
> BS> Microelectronics Research Center
> BS> University of Texas at Austin
> BS> 10100 Burnet Road, Bldg. 160
> BS> MER 1.606H, Mail code R9900, TX 78758-4445
> BS> e-mail: brsahu at physics.utexas.edu
> BS> Phone: (512)-471-1344 FAX: (512)-471-8575
> BS> _______________________________________________
> BS> Pw_forum mailing list
> BS> Pw_forum at pwscf.org
> BS> http://www.democritos.it/mailman/listinfo/pw_forum
> BS>
>
> --
> =======================================================================
> Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
>    Center for Molecular Modeling   --   University of Pennsylvania
> Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
> tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
> =======================================================================
> If you make something idiot-proof, the universe creates a better idiot.
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
>



Bhagawan Sahu
Microelectronics Research Center
University of Texas at Austin
10100 Burnet Road, Bldg. 160
MER 1.606H, Mail code R9900, TX 78758-4445
e-mail: brsahu at physics.utexas.edu
Phone: (512)-471-1344 FAX: (512)-471-8575



More information about the users mailing list