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