xref: /petsc/config/configure.py (revision edf9f831731a00da08162eec47f20507fb27f0d3)
1#!/usr/bin/env python
2from __future__ import print_function
3import os, sys
4
5extraLogs = []
6petsc_arch = ''
7
8# Use en_US as language so that BuildSystem parses compiler messages in english
9def fixLang(lang):
10  if lang in os.environ and os.environ[lang] != '':
11    lv = os.environ[lang]
12    enc = ''
13    try: lv,enc = lv.split('.')
14    except: pass
15    if lv not in ['en_US','C']: lv = 'en_US'
16    if enc: lv = lv+'.'+enc
17    os.environ[lang] = lv
18
19fixLang('LC_LOCAL')
20fixLang('LANG')
21
22
23def check_for_option_mistakes(opts):
24  for opt in opts[1:]:
25    name = opt.split('=')[0]
26    if name.find(' ') >= 0:
27      raise ValueError('The option "'+name+'" has a space character in the name - this is likely incorrect usage.');
28    if name.find('_') >= 0:
29      exception = False
30      for exc in ['mkl_sparse', 'mkl_sparse_optimize', 'mkl_cpardiso', 'mkl_pardiso', 'superlu_dist', 'PETSC_ARCH', 'PETSC_DIR', 'CXX_CXXFLAGS', 'LD_SHARED', 'CC_LINKER_FLAGS', 'CXX_LINKER_FLAGS', 'FC_LINKER_FLAGS', 'AR_FLAGS', 'C_VERSION', 'CXX_VERSION', 'FC_VERSION', 'size_t', 'MPI_Comm','MPI_Fint','int64_t']:
31        if name.find(exc) >= 0:
32          exception = True
33      if not exception:
34        raise ValueError('The option '+name+' should probably be '+name.replace('_', '-'));
35    if opt.find('=') >=0:
36      optval = opt.split('=')[1]
37      if optval == 'ifneeded':
38        raise ValueError('The option '+opt+' should probably be '+opt.replace('ifneeded', '1'));
39    for exc in ['mkl_sparse', 'mkl_sparse_optimize', 'mkl_cpardiso', 'mkl_pardiso', 'superlu_dist']:
40      if name.find(exc.replace('_','-')) > -1:
41        raise ValueError('The option '+opt+' should be '+opt.replace(exc.replace('_','-'),exc));
42  return
43
44def check_for_unsupported_combinations(opts):
45  if '--with-precision=single' in opts and '--with-clanguage=cxx' in opts and '--with-scalar-type=complex' in opts:
46    sys.exit(ValueError('PETSc does not support single precision complex with C++ clanguage, run with --with-clanguage=c'))
47
48def check_for_option_changed(opts):
49# Document changes in command line options here.
50  optMap = [('with-64bit-indices','with-64-bit-indices'),
51            ('with-mpi-exec','with-mpiexec'),
52            ('c-blas-lapack','f2cblaslapack'),
53            ('cholmod','suitesparse'),
54            ('umfpack','suitesparse'),
55            ('matlabengine','matlab-engine'),
56            ('sundials','sundials2'),
57            ('f-blas-lapack','fblaslapack'),
58            ('with-packages-dir','with-packages-download-dir'),
59            ('with-external-packages-dir','with-packages-build-dir'),
60            ('package-dirs','with-packages-search-path'),
61            ('download-petsc4py-python','with-python-exec'),
62            ('search-dirs','with-executables-search-path')]
63  for opt in opts[1:]:
64    optname = opt.split('=')[0].strip('-')
65    for oldname,newname in optMap:
66      if optname.find(oldname) >=0 and not optname.find(newname) >=0:
67        raise ValueError('The option '+opt+' should probably be '+opt.replace(oldname,newname))
68  return
69
70def check_petsc_arch(opts):
71  # If PETSC_ARCH not specified - use script name (if not configure.py)
72  global petsc_arch
73  found = 0
74  for name in opts:
75    if name.find('PETSC_ARCH=') >= 0:
76      petsc_arch=name.split('=')[1]
77      found = 1
78      break
79  # If not yet specified - use the filename of script
80  if not found:
81      filename = os.path.basename(sys.argv[0])
82      if not filename.startswith('configure') and not filename.startswith('reconfigure') and not filename.startswith('setup'):
83        petsc_arch=os.path.splitext(os.path.basename(sys.argv[0]))[0]
84        useName = 'PETSC_ARCH='+petsc_arch
85        opts.append(useName)
86  return 0
87
88def chkenable():
89  #Replace all 'enable-'/'disable-' with 'with-'=0/1/tail
90  #enable-fortran is a special case, the resulting --with-fortran is ambiguous.
91  #Would it mean --with-fc=
92  en_dash = u'\N{EN DASH}'
93  if sys.version_info < (3, 0):
94    en_dash = en_dash.encode('utf-8')
95
96  for l in range(0,len(sys.argv)):
97    name = sys.argv[l]
98    if name.find(en_dash)  >= 0:
99      name = name.replace(en_dash,'-')
100    if name.lstrip('-').startswith('enable-cxx'):
101      if name.find('=') == -1:
102        name = name.replace('enable-cxx','with-clanguage=C++',1)
103      else:
104        head, tail = name.split('=', 1)
105        if tail=='0':
106          name = head.replace('enable-cxx','with-clanguage=C',1)
107        else:
108          name = head.replace('enable-cxx','with-clanguage=C++',1)
109      sys.argv[l] = name
110      continue
111    if name.lstrip('-').startswith('disable-cxx'):
112      if name.find('=') == -1:
113        name = name.replace('disable-cxx','with-clanguage=C',1)
114      else:
115        head, tail = name.split('=', 1)
116        if tail == '0':
117          name = head.replace('disable-cxx','with-clanguage=C++',1)
118        else:
119          name = head.replace('disable-cxx','with-clanguage=C',1)
120      sys.argv[l] = name
121      continue
122
123    if name.lstrip('-').startswith('enable-'):
124      if name.find('=') == -1:
125        name = name.replace('enable-','with-',1)+'=1'
126      else:
127        head, tail = name.split('=', 1)
128        name = head.replace('enable-','with-',1)+'='+tail
129    if name.lstrip('-').startswith('disable-'):
130      if name.find('=') == -1:
131        name = name.replace('disable-','with-',1)+'=0'
132      else:
133        head, tail = name.split('=', 1)
134        if tail == '1': tail = '0'
135        name = head.replace('disable-','with-',1)+'='+tail
136    if name.lstrip('-').startswith('without-'):
137      if name.find('=') == -1:
138        name = name.replace('without-','with-',1)+'=0'
139      else:
140        head, tail = name.split('=', 1)
141        if tail == '1': tail = '0'
142        name = head.replace('without-','with-',1)+'='+tail
143    sys.argv[l] = name
144
145def chksynonyms():
146  #replace common configure options with ones that PETSc BuildSystem recognizes
147  simplereplacements = {'F77' : 'FC', 'F90' : 'FC'}
148  for l in range(0,len(sys.argv)):
149    name = sys.argv[l]
150
151    name = name.replace('download-petsc4py','with-petsc4py')
152    name = name.replace('with-openmpi','with-mpi')
153    name = name.replace('with-mpich','with-mpi')
154    name = name.replace('with-blas-lapack','with-blaslapack')
155    name = name.replace('with-cuda-gencodearch','with-cuda-arch')
156
157    if name.find('with-debug=') >= 0 or name.endswith('with-debug'):
158      if name.find('=') == -1:
159        name = name.replace('with-debug','with-debugging')+'=1'
160      else:
161        head, tail = name.split('=', 1)
162        name = head.replace('with-debug','with-debugging')+'='+tail
163
164    if name.find('with-shared=') >= 0 or name.endswith('with-shared'):
165      if name.find('=') == -1:
166        name = name.replace('with-shared','with-shared-libraries')+'=1'
167      else:
168        head, tail = name.split('=', 1)
169        name = head.replace('with-shared','with-shared-libraries')+'='+tail
170
171    if name.find('with-index-size=') >=0:
172      head,tail = name.split('=',1)
173      if int(tail)==32:
174        name = '--with-64-bit-indices=0'
175      elif int(tail)==64:
176        name = '--with-64-bit-indices=1'
177      else:
178        raise RuntimeError('--with-index-size= must be 32 or 64')
179
180    if name.find('with-precision=') >=0:
181      head,tail = name.split('=',1)
182      if tail.find('quad')>=0:
183        name='--with-precision=__float128'
184
185    for i,j in simplereplacements.items():
186      if name.find(i+'=') >= 0:
187        name = name.replace(i+'=',j+'=')
188      elif name.find('with-'+i.lower()+'=') >= 0:
189        name = name.replace(i.lower()+'=',j.lower()+'=')
190
191    # restore 'sys.argv[l]' from the intermediate var 'name'
192    sys.argv[l] = name
193
194def chkwincompilerusinglink():
195  for arg in sys.argv:
196    if (arg.find('win32fe') >= 0 and (arg.find('f90') >=0 or arg.find('ifort') >=0 or arg.find('icl') >=0)):
197      return 1
198  return 0
199
200def chkdosfiles():
201  # cygwin - but not a hg clone - so check one of files in bin dir
202  if b"\r\n" in open(os.path.join('lib','petsc','bin','petscmpiexec'),"rb").read():
203    print('===============================================================================')
204    print(' *** Scripts are in DOS mode. Was winzip used to extract petsc sources?    ****')
205    print(' *** Please restart with a fresh tarball and use "tar -xzf petsc.tar.gz"   ****')
206    print('===============================================================================')
207    sys.exit(3)
208  return
209
210def chkcygwinlink():
211  if os.path.exists('/usr/bin/cygcheck.exe') and os.path.exists('/usr/bin/link.exe') and chkwincompilerusinglink():
212      if '--ignore-cygwin-link' in sys.argv: return 0
213      print('===============================================================================')
214      print(' *** Cygwin /usr/bin/link detected! Compiles with Intel icl/ifort can break!  **')
215      print(' *** To workaround do: "mv /usr/bin/link.exe /usr/bin/link-cygwin.exe"     **')
216      print(' *** Or to ignore this check, use configure option: --ignore-cygwin-link. But compiles can fail. **')
217      print('===============================================================================')
218      sys.exit(3)
219  return 0
220
221def chkbrokencygwin():
222  if os.path.exists('/usr/bin/cygcheck.exe'):
223    buf = os.popen('/usr/bin/cygcheck.exe -c cygwin').read()
224    if buf.find('1.5.11-1') > -1:
225      print('===============================================================================')
226      print(' *** cygwin-1.5.11-1 detected. ./configure fails with this version ***')
227      print(' *** Please upgrade to cygwin-1.5.12-1 or newer version. This can  ***')
228      print(' *** be done by running cygwin-setup, selecting "next" all the way.***')
229      print('===============================================================================')
230      sys.exit(3)
231  return 0
232
233def chkusingwindowspython():
234  if sys.platform == 'win32':
235    print('===============================================================================')
236    print(' *** Windows python detected. Please rerun ./configure with cygwin-python. ***')
237    print('===============================================================================')
238    sys.exit(3)
239  return 0
240
241def chkcygwinpython():
242  if sys.platform == 'cygwin' :
243    import platform
244    import re
245    r=re.compile("([0-9]+).([0-9]+).([0-9]+)")
246    m=r.match(platform.release())
247    major=int(m.group(1))
248    minor=int(m.group(2))
249    subminor=int(m.group(3))
250    if ((major < 1) or (major == 1 and minor < 7) or (major == 1 and minor == 7 and subminor < 34)):
251      sys.argv.append('--useThreads=0')
252      extraLogs.append('''\
253===============================================================================
254** Cygwin version is older than 1.7.34. Python threads do not work correctly. ***
255** Disabling thread usage for this run of ./configure *******
256===============================================================================''')
257  return 0
258
259def chkcygwinwindowscompilers():
260  '''Adds win32fe for Microsoft/Intel compilers'''
261  if os.path.exists('/usr/bin/cygcheck.exe'):
262    for l in range(1,len(sys.argv)):
263      option = sys.argv[l]
264      for i in ['cl','icl','ifort']:
265        if option.startswith(i):
266          sys.argv[l] = 'win32fe '+option
267          break
268  return 0
269
270def chkrhl9():
271  if os.path.exists('/etc/redhat-release'):
272    try:
273      file = open('/etc/redhat-release','r')
274      buf = file.read()
275      file.close()
276    except:
277      # can't read file - assume dangerous RHL9
278      buf = 'Shrike'
279    if buf.find('Shrike') > -1:
280      sys.argv.append('--useThreads=0')
281      extraLogs.append('''\
282==============================================================================
283   *** RHL9 detected. Threads do not work correctly with this distribution ***
284   ****** Disabling thread usage for this run of ./configure *********
285===============================================================================''')
286  return 0
287
288def chktmpnoexec():
289  if not hasattr(os,'ST_NOEXEC'): return # novermin
290  if 'TMPDIR' in os.environ: tmpDir = os.environ['TMPDIR']
291  else: tmpDir = '/tmp'
292  if os.statvfs(tmpDir).f_flag & os.ST_NOEXEC: # novermin
293    if os.statvfs(os.path.abspath('.')).f_flag & os.ST_NOEXEC: # novermin
294      print('************************************************************************')
295      print('* TMPDIR '+tmpDir+' has noexec attribute. Same with '+os.path.abspath('.')+' where petsc is built.')
296      print('* Suggest building PETSc in a location without this restriction!')
297      print('* Alternatively, set env variable TMPDIR to a location that is not restricted to run binaries.')
298      print('************************************************************************')
299      sys.exit(4)
300    else:
301      newTmp = os.path.abspath('tmp-petsc')
302      print('************************************************************************')
303      print('* TMPDIR '+tmpDir+' has noexec attribute. Using '+newTmp+' instead.')
304      print('************************************************************************')
305      if not os.path.isdir(newTmp): os.mkdir(os.path.abspath(newTmp))
306      os.environ['TMPDIR'] = newTmp
307  return
308
309def check_cray_modules():
310  import script
311  '''For Cray systems check if the cc, CC, ftn compiler suite modules have been set'''
312  cray = os.getenv('CRAY_SITE_LIST_DIR')
313  if not cray: return
314  cray = os.getenv('CRAYPE_DIR')
315  if not cray:
316   print('************************************************************************')
317   print('* You are on a Cray system but no programming environments have been loaded')
318   print('* Perhaps you need:')
319   print('*       module load intel ; module load PrgEnv-intel')
320   print('*   or  module load PrgEnv-cray')
321   print('*   or  module load PrgEnv-gnu')
322   print('* See https://petsc.org/release/install/install/#installing-on-large-scale-doe-systems')
323   print('************************************************************************')
324   sys.exit(4)
325
326def check_broken_configure_log_links():
327  '''Sometime symlinks can get broken if the original files are deleted. Delete such broken links'''
328  import os
329  for logfile in ['configure.log','configure.log.bkp']:
330    if os.path.islink(logfile) and not os.path.isfile(logfile): os.remove(logfile)
331  return
332
333def move_configure_log(framework):
334  '''Move configure.log to PETSC_ARCH/lib/petsc/conf - and update configure.log.bkp in both locations appropriately'''
335  global petsc_arch
336
337  if hasattr(framework,'arch'): petsc_arch = framework.arch
338  if hasattr(framework,'logName'): curr_file = framework.logName
339  else: curr_file = 'configure.log'
340
341  if petsc_arch:
342    import shutil
343    import os
344
345    # Just in case - confdir is not created
346    lib_dir = os.path.join(petsc_arch,'lib')
347    petsc_dir = os.path.join(petsc_arch,'lib','petsc')
348    conf_dir = os.path.join(petsc_arch,'lib','petsc','conf')
349    if not os.path.isdir(petsc_arch): os.mkdir(petsc_arch)
350    if not os.path.isdir(lib_dir): os.mkdir(lib_dir)
351    if not os.path.isdir(petsc_dir): os.mkdir(petsc_dir)
352    if not os.path.isdir(conf_dir): os.mkdir(conf_dir)
353
354    curr_bkp  = curr_file + '.bkp'
355    new_file  = os.path.join(conf_dir,curr_file)
356    new_bkp   = new_file + '.bkp'
357
358    # Keep backup in $PETSC_ARCH/lib/petsc/conf location
359    if os.path.isfile(new_bkp): os.remove(new_bkp)
360    if os.path.isfile(new_file): os.rename(new_file,new_bkp)
361    if os.path.isfile(curr_file):
362      shutil.copyfile(curr_file,new_file)
363      os.remove(curr_file)
364    if os.path.isfile(new_file): os.symlink(new_file,curr_file)
365    # If the old bkp is using the same PETSC_ARCH/lib/petsc/conf - then update bkp link
366    if os.path.realpath(curr_bkp) == os.path.realpath(new_file):
367      if os.path.isfile(curr_bkp): os.remove(curr_bkp)
368      if os.path.isfile(new_bkp): os.symlink(new_bkp,curr_bkp)
369  return
370
371def print_final_timestamp(framework):
372  import time
373  framework.log.write(('='*80)+'\n')
374  framework.log.write('Finishing configure run at '+time.strftime('%a, %d %b %Y %H:%M:%S %z')+'\n')
375  framework.log.write(('='*80)+'\n')
376  return
377
378def petsc_configure(configure_options):
379  if 'PETSC_DIR' in os.environ:
380    petscdir = os.environ['PETSC_DIR']
381    if petscdir.find(' ') > -1:
382      raise RuntimeError('Your PETSC_DIR '+petscdir+' has spaces in it; this is not allowed.\n Change the directory with PETSc to not have spaces in it')
383    if not os.path.isabs(petscdir):
384      raise RuntimeError('PETSC_DIR ("'+petscdir+'") is set as a relative path. It must be set as an absolute path.')
385
386    try:
387      sys.path.append(os.path.join(petscdir,'lib','petsc','bin'))
388      import petscnagupgrade
389      file     = os.path.join(petscdir,'.nagged')
390      if not petscnagupgrade.naggedtoday(file):
391        petscnagupgrade.currentversion(petscdir)
392    except:
393      pass
394  print('=============================================================================================')
395  print('                      Configuring PETSc to compile on your system                            ')
396  print('=============================================================================================')
397
398  try:
399    # Command line arguments take precedence (but don't destroy argv[0])
400    sys.argv = sys.argv[:1] + configure_options + sys.argv[1:]
401    check_for_option_mistakes(sys.argv)
402    check_for_option_changed(sys.argv)
403  except (TypeError, ValueError) as e:
404    emsg = str(e)
405    if not emsg.endswith('\n'): emsg = emsg+'\n'
406    msg ='*******************************************************************************\n'\
407    +'                ERROR in COMMAND LINE ARGUMENT to ./configure \n' \
408    +'-------------------------------------------------------------------------------\n'  \
409    +emsg+'*******************************************************************************\n'
410    sys.exit(msg)
411  # check PETSC_ARCH
412  check_for_unsupported_combinations(sys.argv)
413  check_petsc_arch(sys.argv)
414  check_broken_configure_log_links()
415
416  #rename '--enable-' to '--with-'
417  chkenable()
418  # support a few standard configure option types
419  chksynonyms()
420  # Check for broken cygwin
421  chkbrokencygwin()
422  # Disable threads on RHL9
423  chkrhl9()
424  # Make sure cygwin-python is used on windows
425  chkusingwindowspython()
426  # Threads don't work for cygwin & python...
427  chkcygwinpython()
428  chkcygwinlink()
429  chkdosfiles()
430  chkcygwinwindowscompilers()
431  chktmpnoexec()
432
433  for l in range(1,len(sys.argv)):
434    if sys.argv[l].startswith('--with-fc=') and sys.argv[l].endswith('nagfor'):
435      # need a way to save this value and later CC so that petscnagfor may use them
436      name = sys.argv[l].split('=')[1]
437      sys.argv[l] = '--with-fc='+os.path.join(os.path.abspath('.'),'lib','petsc','bin','petscnagfor')
438      break
439
440
441  # Should be run from the toplevel
442  configDir = os.path.abspath('config')
443  bsDir     = os.path.join(configDir, 'BuildSystem')
444  if not os.path.isdir(configDir):
445    raise RuntimeError('Run configure from $PETSC_DIR, not '+os.path.abspath('.'))
446  sys.path.insert(0, bsDir)
447  sys.path.insert(0, configDir)
448  import config.base
449  import config.framework
450  import pickle
451  import traceback
452
453  # Check Cray without modules
454  check_cray_modules()
455
456  tbo = None
457  framework = None
458  try:
459    framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)
460    framework.setup()
461    framework.logPrint('\n'.join(extraLogs))
462    framework.configure(out = sys.stdout)
463    framework.storeSubstitutions(framework.argDB)
464    framework.argDB['configureCache'] = pickle.dumps(framework)
465    framework.printSummary()
466    framework.argDB.save(force = True)
467    framework.logClear()
468    print_final_timestamp(framework)
469    framework.closeLog()
470    try:
471      move_configure_log(framework)
472    except:
473      # perhaps print an error about unable to shuffle logs?
474      pass
475    return 0
476  except (RuntimeError, config.base.ConfigureSetupError) as e:
477    tbo = sys.exc_info()[2]
478    emsg = str(e)
479    if not emsg.endswith('\n'): emsg = emsg+'\n'
480    msg ='*******************************************************************************\n'\
481    +'         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):\n' \
482    +'-------------------------------------------------------------------------------\n'  \
483    +emsg+'*******************************************************************************\n'
484    se = ''
485  except (TypeError, ValueError) as e:
486    # this exception is automatically deleted by Python so we need to save it to print below
487    tbo = sys.exc_info()[2]
488    emsg = str(e)
489    if not emsg.endswith('\n'): emsg = emsg+'\n'
490    msg ='*******************************************************************************\n'\
491    +'    TypeError or ValueError possibly related to ERROR in COMMAND LINE ARGUMENT while running ./configure \n' \
492    +'-------------------------------------------------------------------------------\n'  \
493    +emsg+'*******************************************************************************\n'
494    se = ''
495  except ImportError as e :
496    # this exception is automatically deleted by Python so we need to save it to print below
497    tbo = sys.exc_info()[2]
498    emsg = str(e)
499    if not emsg.endswith('\n'): emsg = emsg+'\n'
500    msg ='*******************************************************************************\n'\
501    +'                     ImportError while runing ./configure \n' \
502    +'-------------------------------------------------------------------------------\n'  \
503    +emsg+'*******************************************************************************\n'
504    se = ''
505  except OSError as e :
506    tbo = sys.exc_info()[2]
507    emsg = str(e)
508    if not emsg.endswith('\n'): emsg = emsg+'\n'
509    msg ='*******************************************************************************\n'\
510    +'                    OSError while running ./configure \n' \
511    +'-------------------------------------------------------------------------------\n'  \
512    +emsg+'*******************************************************************************\n'
513    se = ''
514  except SystemExit as e:
515    tbo = sys.exc_info()[2]
516    if e.code is None or e.code == 0:
517      return
518    if e.code == 10:
519      sys.exit(10)
520    msg ='*******************************************************************************\n'\
521    +'         CONFIGURATION FAILURE  (Please send configure.log to petsc-maint@mcs.anl.gov)\n' \
522    +'*******************************************************************************\n'
523    se  = str(e)
524  except Exception as e:
525    tbo = sys.exc_info()[2]
526    msg ='*******************************************************************************\n'\
527    +'        CONFIGURATION CRASH  (Please send configure.log to petsc-maint@mcs.anl.gov)\n' \
528    +'*******************************************************************************\n'
529    se  = str(e)
530
531  print(msg)
532  if not framework is None:
533    framework.logClear()
534    if hasattr(framework, 'log'):
535      try:
536        if hasattr(framework,'compilerDefines'):
537          framework.log.write('**** Configure header '+framework.compilerDefines+' ****\n')
538          framework.outputHeader(framework.log)
539        if hasattr(framework,'compilerFixes'):
540          framework.log.write('**** C specific Configure header '+framework.compilerFixes+' ****\n')
541          framework.outputCHeader(framework.log)
542      except Exception as e:
543        framework.log.write('Problem writing headers to log: '+str(e))
544      try:
545        framework.log.write(msg+se)
546        traceback.print_tb(tbo, file = framework.log)
547        print_final_timestamp(framework)
548        if hasattr(framework,'log'): framework.log.close()
549        move_configure_log(framework)
550      except Exception as e:
551        print('Error printing error message from exception or printing the traceback:'+str(e))
552        traceback.print_tb(sys.exc_info()[2])
553      sys.exit(1)
554    else:
555      print(se)
556      traceback.print_tb(tbo)
557  else:
558    print(se)
559    traceback.print_tb(tbo)
560  if hasattr(framework,'log'): framework.log.close()
561
562if __name__ == '__main__':
563  petsc_configure([])
564