Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Error compiling Windows v8p4r0

Error compiling Windows v8p4r0 1 year 8 months ago #42145

  • toby.jhnsn
  • toby.jhnsn's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 8
Hi,

Have successfully compiled many previous versions of Telemac on Windows with mingw64 however, am getting errors on the new v8p4r0 version (see attached).

I have not made any changes to my standard config file so not sure if something has changed. If I use the python scripts of v8p3r0 to compile v8p4r0 then I don't have any issues although I'm sure this is not the right solution.

Config file is attached for reference.

Thanks,
Toby
Attachments:
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 8 months ago #42175

  • rjj
  • rjj's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Hello, would like to ask you how to install other versions. I'm distressed and have a lot of problems installing the new version. Looking forward to your reply, I would appreciate it!
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 7 months ago #42269

Hi everybody,
I have the same error for the version v8p4r0.
C:\opentelemac-mascaret\v8p4r0\configs>pysource.win10pll.bat

C:\opentelemac-mascaret\v8p4r0\configs>cd ..

C:\opentelemac-mascaret\v8p4r0>ls
'ls' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

C:\opentelemac-mascaret\v8p4r0>cd scripts

C:\opentelemac-mascaret\v8p4r0\scripts>python3.11 config.py
python3.11: can't open file 'C:\\opentelemac-mascaret\\v8p4r0\\scripts\\config.py': [Errno 2] No such file or directory

C:\opentelemac-mascaret\v8p4r0\scripts>cd python3

C:\opentelemac-mascaret\v8p4r0\scripts\python3>python3.11 config.py


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          ___          _  _           ___
         / _ \        | || |         / _ \
 __   __| (_) | _ __  | || |_  _ __ | | | |
 \ \ / / > _ < | '_ \ |__   _|| '__|| | | |
  \ V / | (_) || |_) |   | |  | |   | |_| |
   \_/   \___/ | .__/    |_|  |_|    \___/
               | |
               |_|


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

wing64mpi:

    +> root:    C:\opentelemac-mascaret\v8p4r0
    +> module: ad / api / artemis / bief
               damocles  / gaia  / gretel  / hermes
               identify_liq_bnd  / khione  / mascaret  / nestor
               parallel  / partel  / postel3d  / sisyphe
               special  / stbtel  / telemac2d  / telemac3d
               tomawac / waqtel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



My work is done



C:\opentelemac-mascaret\v8p4r0\scripts\python3>python3.11 compile_telemac.py


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          ___          _  _           ___
         / _ \        | || |         / _ \
 __   __| (_) | _ __  | || |_  _ __ | | | |
 \ \ / / > _ < | '_ \ |__   _|| '__|| | | |
  \ V / | (_) || |_) |   | |  | |   | |_| |
   \_/   \___/ | .__/    |_|  |_|    \___/
               | |
               |_|

            _                  __   _  _                      _
           (_)                / /  | || |                    (_)
 __      __ _  _ __    __ _  / /_  | || |_  _ __ ___   _ __   _
 \ \ /\ / /| || '_ \  / _` || '_ \ |__   _|| '_ ` _ \ | '_ \ | |
  \ V  V / | || | | || (_| || (_) |   | |  | | | | | || |_) || |
   \_/\_/  |_||_| |_| \__, | \___/    |_|  |_| |_| |_|| .__/ |_|
                       __/ |                          | |
                      |___/                           |_|

Scanning the source code for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

wing64mpi:

    +> root:    C:\opentelemac-mascaret\v8p4r0
    +> module: ad / api / artemis / bief
               damocles  / gaia  / gretel  / hermes
               identify_liq_bnd  / khione  / mascaret  / nestor
               parallel  / partel  / postel3d  / sisyphe
               special  / stbtel  / telemac2d  / telemac3d
               tomawac / waqtel


Compiling from the tree top api plus dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        +> There is no need to compile any object
        +> There is no need to package any library
Driving: x86_64-w64-mingw32-gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -o C:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\bin\api.exe api_handle_error.o api_instance_art.o api_instance_sis.o api_instance_t2d.o api_instance_t3d.o api_instance_wac.o api_handle_var_sis.o api_handle_var_t2d.o api_coupling.o api_handle_var_art.o api_handle_var_t3d.o api_handle_var_wac.o api_run_art.o api_run_sis.o api_run_t2d.o api_run_t3d.o api_run_wac.o api_interface.o example_cpl_t2d_sis.o homere_api.o -Xlinker --start-group -LC:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\lib -lartemis4api -ltelemac3d4api -lpartel4api -lgretel4api -ltelemac2d4api -lgaia4api -lkhione4api -lwaqtel4api -lsisyphe4api -ltomawac4api -lad4api -lnestor4api -lbief4api -lhermes4api -lparallel4api -ldamocles4api -lspecial4api C:\opentelemac-mascaret\mpich2\lib\libfmpich2g.a C:\opentelemac-mascaret\metis\lib\libmetis.a -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gfortran
COLLECT_LTO_WRAPPER=c:/opentelemac-mascaret/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: /home/ruben/mingw-w64/src/gcc/configure --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpfr=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpc=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-cloog=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --disable-cloog-version-check --with-isl=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' --enable-shared --enable-static --enable-threads=win32 --enable-plugins --disable-multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java --enable-libgomp --enable-fully-dynamic-string --enable-libstdcxx-time --disable-nls --disable-werror --enable-checking=release --with-gnu-as --with-gnu-ld --disable-win32-registry --disable-rpath --disable-werror --with-libiconv-prefix=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-pkgversion=rubenvb-4.8.0 --with-bugurl=mingw-w64-public@lists.sourceforge.net CC= CFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' CXXFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS= 'BOOT_CFLAGS=-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' 'BOOT_CXXFLAGS=-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' BOOT_LDFLAGS= 'CFLAGS_FOR_TARGET= -O2 -march=nocona -mtune=core2 -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all' 'CXXFLAGS_FOR_TARGET= -O2 -march=nocona -mtune=core2 -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all' LDFLAGS_FOR_TARGET=
Thread model: win32
gcc version 4.8.0 (rubenvb-4.8.0)
Reading specs from c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../lib/libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-fopenmp' '-fconvert=big-endian' '-frecord-marker=4' '-v' '-o' 'C:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\bin\api.exe' '-LC:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\lib' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-mthreads' '-pthread'
COMPILER_PATH=c:/opentelemac-mascaret/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.0/;c:/opentelemac-mascaret/mingw64/bin/../libexec/gcc/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../lib/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/;c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../
Reading specs from c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../lib/libgomp.spec
COLLECT_GCC_OPTIONS='-fopenmp' '-fconvert=big-endian' '-frecord-marker=4' '-v' '-o' 'C:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\bin\api.exe' '-LC:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\lib' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-mthreads' '-pthread'
 c:/opentelemac-mascaret/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.0/collect2.exe --sysroot=c:\opentelemac-mascaret\mingw64\bin\../../mingw64 -m i386pep -Bdynamic -o C:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\bin\api.exe c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/crtbegin.o -LC:\opentelemac-mascaret\v8p4r0\builds\wing64mpi\lib -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0 -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../lib -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib -Lc:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../.. api_handle_error.o api_instance_art.o api_instance_sis.o api_instance_t2d.o api_instance_t3d.o api_instance_wac.o api_handle_var_sis.o api_handle_var_t2d.o api_coupling.o api_handle_var_art.o api_handle_var_t3d.o api_handle_var_wac.o api_run_art.o api_run_sis.o api_run_t2d.o api_run_t3d.o api_run_wac.o api_interface.o example_cpl_t2d_sis.o homere_api.o --start-group -lartemis4api -ltelemac3d4api -lpartel4api -lgretel4api -ltelemac2d4api -lgaia4api -lkhione4api -lwaqtel4api -lsisyphe4api -ltomawac4api -lad4api -lnestor4api -lbief4api -lhermes4api -lparallel4api -ldamocles4api -lspecial4api C:\opentelemac-mascaret\mpich2\lib\libfmpich2g.a C:\opentelemac-mascaret\metis\lib\libmetis.a -lgfortran -lgomp -lmingwthrd -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lquadmath -lm -lmingwthrd -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingwthrd -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/crtend.o
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lartemis4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ltelemac3d4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpartel4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgretel4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ltelemac2d4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgaia4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkhione4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwaqtel4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsisyphe4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ltomawac4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lad4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lnestor4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbief4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhermes4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lparallel4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldamocles4api
c:/opentelemac-mascaret/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lspecial4api
collect2.exe: error: ld returned 1 exit status
Traceback (most recent call last):
  File "C:\opentelemac-mascaret\v8p4r0\scripts\python3\compile_telemac.py", line 142, in <module>
    main()
  File "C:\opentelemac-mascaret\v8p4r0\scripts\python3\compile_telemac.py", line 129, in main
    compile_cmdf(options.ncsize, modules, options.verbose)
  File "C:\opentelemac-mascaret\v8p4r0\scripts\python3\compilation\compil_tools.py", line 1299, in compile_cmdf
    found_exe = create_exe_files(item, mod,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\opentelemac-mascaret\v8p4r0\scripts\python3\compilation\compil_tools.py", line 485, in create_exe_files
    raise TelemacException(\
utils.exceptions.TelemacException: Could not link your executable. Please verify your external library installation or the python script itself.
Attachments:
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 7 months ago #42359

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Please use the batch script from the wintel repository to build Telemac: gitlab.pam-retd.fr/otm/wintel.

This is the recommended way to build it for now because the systel.cis-windows.cfg and systel.cis-windows-7.cfg files in the Telemac repository are outdated and don't work properly, I will update them.
The administrator has disabled public write access.
The following user(s) said Thank You: MathieuSoulayrol

Error compiling Windows v8p4r0 1 year 6 months ago #42426

Hi Boris,
Thanks for these tips, it seems very helpful.
Unlikely, when I adapt "C:\>build-telemac C:\telemac" for building Telemac in a anaconda environment with python3.10.9 and all the requirements, I have this error :
(telemac-v8p4r0) C:\Users\mathi>C:\opentelemac-mascaret\v8p4r0\wintel-main\build-telemac.bat C:\opentelemac-mascaret
Error: Python 3.10 not found. You need to install it using the official installer.

When I type python it's this version :
(telemac-v8p4r0) C:\Users\mathi>python
Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.


Do you know where this problem comes from?

Thank you,
Mathieu
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42437

I think I managed to resolve the problem, but now, when I run :
"C:\opentelemac-mascaret\wintel-main\wintel-main\build-telemac.bat" C:\opentelemac-mascaret

This line of code deletes all the files that were present in C:\opentelemac-mascaret... including my old version which worked very well with which I made all my calculations...
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42444

Ok it's because you need to go inside (cd) your wintel repository that contain the .bat file
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42439

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Hello Mathieu,

The script relies on the 64-bit version of Python 3.10 that has to be known by the Python Launcher, so it may not be the case with the Python version provided by Anaconda. How did you fix your issue?

Otherwise, sorry to hear that the script deleted all your results... Did you specify the actual path where you wanted to install TELEMAC, or did you specify the parent path? I ask because the batch expects the full path where you want to install TELEMAC, e.g. "C:\opentelemac-mascaret\telemac-main", not the parent path. However, to avoid further problems of this type, I will remove the flag that forces a silent delete, so that the script asks the user for confirmation.
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42443

Hi Boris,
No problem, I am responsible for the error I had not seen that it was necessary to go to the folder wintel from the command terminal. I managed to launch the compilation by creating a python environment under anaconda with python 3.10.9. It's still running, I'll let you know if it works.

I specify my parent path where my different version was installed "C:\opentelemac-mascaret"

Thank you,
M.
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42448

Hi,
the compilation block at this level :
[notice] A new release of pip available: 22.3.1 -> 23.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Accès refusé - SCRIPTS\PYTHON3
Accès refusé - EXAMPLES\PYTHON3
Accès refusé - OPTIONALS\ADDONS
Fichier introuvable - -NAME
Fichier introuvable - -EXEC
Fichier introuvable - SED
Fichier introuvable - -I
Fichier introuvable - 'S/ENV\
Fichier introuvable - PYTHON3/ENV\
Fichier introuvable - PYTHON/G'
Fichier introuvable - {}
Fichier introuvable - ;

And the file compile_telemac.py opens

Thanks for your help,
M
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.