Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] StarPU and mingw64 error

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] StarPU and mingw64 error


Chronologique Discussions 
  • From: Rafal Brzegowy <rafal.brzegowy@yahoo.com>
  • To: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>, Nathalie Furmento <nathalie.furmento@labri.fr>
  • Subject: Re: [Starpu-devel] StarPU and mingw64 error
  • Date: Fri, 18 Sep 2020 11:27:25 +0000 (UTC)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=rafal.brzegowy@yahoo.com; spf=Pass smtp.mailfrom=rafal.brzegowy@yahoo.com; spf=None smtp.helo=postmaster@sonic314-13.consmr.mail.bf2.yahoo.com
  • Ironport-phdr: 9a23:eW+J3xZIQk3W86PIkmjRH+//LSx+4OfEezUN459isYplN5qZpsyzYx7h7PlgxGXEQZ/co6odzbaP7Oa4Bydbut7B6ClELMUSEUddyI0/pE8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUoHdgN6q2O+s5pbdfxtHhCanYbN1MR66sRjdutMZjId/KKs90AfFr3pHd+lYy25jOFafkwrh6suq85Nv7iVdt+g9+8JcVKnxYrg1Q6FfADk6KW4++dfltQPETQuB53scVnsZnx9VCAXb7x/0Q4n8vDLiuuVyxCeVM8v2TaspWTu59KdkVAXoiCYcODEn9mzcl9F9g7haoBKloBx/3pLUbYSIP/dwYq/RYdUXTndaU81PSyJOHJ+zb4oXD+oAI+lYqZX9p0ATphe6HAWgGf/jxiNNinLwwKY00fkuERve0QIuH9wArnfao9f7NKkPXu+60K7GwC7ZYP9Kwjjy85LFfgwjrPyKQLl+cdDRyU4qFw7dklufs4LlMCmR1u8QrmWb9ethWvygi24gpQBwoiWky8A2iobTiIIa0FTE+T9iz4YvJNy3VkF7YdmqEZpQrCybN5F5QsMlQ2Fvoio11roGuZuicSUM1Z8oyALRZeadfIiU/hLsSvyRITFgiX9mdr+ymRK//Eiux+D8SMS4zFlHozRZntTDuH4A2R7e59WbRvZ+8Umv1jmC2hzS5+xYLk46mrTWJp0iz7Awi5cet1nIECHxmEXzlqCWd0Mk9/Cp6+TheLXmp4WTO5V6igHkKqguntawDv8iMggPRWSb9/682bv+9kP6WLVHlv87n6bDvJ3bP8gXu6C0DxFP3oo+9RqyATGr28kCk3YdNlJKYheHgpDpO17QJPD4Cu+yg0+rkDdtxvDJIrPsDojCI3Tajbvsc6xx5FJbyAo11tBf4ohUBqsEIP3pW0/xsMbUAQQ3MwCq2ermCM9y1oMZWWKIGKOWLKTSsVqQ6uIuJemDepMVtS7/JvUq/fLjjGU1lUITcKW3x5cbdW60E/p+L0Wce3Xsg9MBEWkQvgo5SeznkEeCXiRdZ3moW6Iw/Co0CJinDIjdSYCth7KA3SegE5xWfG9GCleMEXDye4qYXPcMbTqeItV9nTwcSbihV4gh2Am1tA/m0bVnNPLU+jABuZ3+ytd1+fPclRUp+DxwDsSdyH2NT3pukmMHST8227p/oUNjxVuZ0Kh4heZYFd1J6P9TXAc6L82U8+svQcvuUxjZY5KFRUirRv2iACotVZQ+zdgUbEs7GtO4jxmF0TDgS+sOi7WRHIFx/q/C0nzZI8dm122A26cmlVYrBMpJL2yvwKBloUybIYfVk0ydlqviW7kG2SPL6GDLmWyHoEFRVA99F6vYR3USYFfRhdDw7FnDCbG0X+cJKAxEnPSLJKJOIvfzn1hJQ+jycIDEamy4nyG6HwSFybSTfaL7cmUa22PWD01SwFNbxmqPKQVrXnTpmGnZFjE7UAu3Oxq9o9k7k2uySwoP9y/PakRg07Sv/RtM3K6NQvMU2fQPvyJz8mwpTmb45MrfDp+7nyQkfKhYZohsskxA02PS7FUhe8X7aatlgEUbaUJytkLqkR95UMNRmMgtqzUhyw8gcfvEgmMETCuR2NXLApOSMnP7pUn9eqfW3VaY29GTqP8C
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Hi,

After the fix, compilation goes without errors.

I have one more question related to StarPU, when I compile CaluliuX with the StarPU dynamic library everything works, but with the static (.a) library this errors occurs (any advice):

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/usr/local/PaStiX/starpu_i4/lib/libstarpu-1.3.a(libstarpu_1.3_la-workers.o): in function `starpu_initialize':
C:\msys64_2\usr\local\starpu-1.3.5\src/core/workers.c:1305: undefined reference to `__imp_WSAStartup'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/usr/local/PaStiX/starpu_i4/lib/libstarpu-1.3.a(libstarpu_1.3_la-component_worker.o): in function `memcpy':
C:/msys64_2/mingw64/x86_64-w64-mingw32/include/string.h:202: undefined reference to `__memcpy_chk'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/usr/local/PaStiX/starpu_i4/lib/libstarpu-1.3.a(libstarpu_1.3_la-utils.o): in function `_starpu_gethostname':
C:\msys64_2\usr\local\starpu-1.3.5\src/common/utils.c:531: undefined reference to `__imp_gethostname'
collect2.exe: error: ld returned 1 exit status


Regards
Rafal

W piątek, 18 września 2020, 13:03:04 CEST, Nathalie Furmento <nathalie.furmento@labri.fr> napisał(-a):


Hello,

Thanks for the BR, it's fixed in the git repository.

Cheers,

Nathalie

On 18/09/2020 11:52, Rafal Brzegowy wrote:
Hi,

I try to compile starp 1.3 in mingw64 environment but at the end of compilation I have this error:

  CCLD     errorcheck/invalid_blocking_calls.exe
  CC       workers_cpuid.o
errorcheck/workers_cpuid.c: In function 'test_combination':
errorcheck/workers_cpuid.c:99:2: error: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Werror=implicit-function-declaration]
   99 |  setenv("STARPU_WORKERS_CPUID", str, 1);
      |  ^~~~~~
      |  getenv
errorcheck/workers_cpuid.c: In function 'generate_arrangement':
errorcheck/workers_cpuid.c:133:2: error: implicit declaration of function 'srandom'; did you mean 'srand'? [-Werror=implicit-function-declaration]
  133 |  srandom(time(0));
      |  ^~~~~~~
      |  srand
cc1.exe: some warnings being treated as errors


Best regards
Rafal

_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
https://lists.gforge.inria.fr/mailman/listinfo/starpu-devel


-- 
Dr Nathalie Furmento               Ingénieure de recherche CNRS
http://www.labri.fr/~furmento/     LaBRI - Université Bordeaux



Archives gérées par MHonArc 2.6.19+.

Haut de le page