Hi,
As part of my Ada learning I’ve decided to have a look at the Rossetta Code tasks, mentioned on the ada-lang.io “Projects to work on” list. I’ve made a fix to the “Find unimplemented tasks” program, a couple of changes in the XML had seemingly broken it. Now that it’s working you can see that there’s a whopping 425 tasks not coded in Ada, quite a bit of work to do here!!! It seems like a good place to come for some practice to me.
Now a question, in case any experts on Alire can help me: To work with it I dropped into a new Alire crate, it took me a bit of work to get it to compile. In my first attempt I initialised a new crate and dropped the program in the src dir. I then did an “alr with aws” and tried to build it. It failed with an error while linking (I’m using alire 2.0.1 on Windows 10, by the way):
…
Bind
[gprbind] awsres.bexch
[Ada] awsres.ali
Link
[link] awsres.adb
make[1]: Entering directory ‘/c/Users/jose_/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/31b0bbcf12d7e2d20fc86acc68082713f9548776d81915a755f9fe0cf44f059b/tools/wsdl2aws-templates’
…/…/.build/x86_64-w64-mingw32/debug/static/tools/awsres
-r wsdl2aws_templates
-o …/…/.build/x86_64-w64-mingw32/common/src
*.tad[sb] *.macros
AWSRes - Resource Creator v1.3
I couldn’t see what might be wrong so I tried another approach. I started again with a new create, dropped the program in it again. Then did an “alr get aws” and built it on its own without any trouble. Went back to my crate, did an “alr with aws --use=…\aws_XXX” to have it pinned and that got it to build. Not sure what was wrong on the first attempt.
Many thanks for any help.
Best regards,
Alexis.
4 Likes
Hola Alexis!
it is very very nice that you are learning Ada and during the process helping fill in holes and missing bits!
Regarding the “error” that you posted, I cannot see were it fails. It seems that the build process calls the AWSRes program, but the exact error is not show in the following code you posted:
make[1]: Entering directory ‘/c/Users/jose_/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/31b0bbcf12d7e2d20fc86acc68082713f9548776d81915a755f9fe0cf44f059b/tools/wsdl2aws-templates’
…/…/.build/x86_64-w64-mingw32/debug/static/tools/awsres
-r wsdl2aws_templates
-o …/…/.build/x86_64-w64-mingw32/common/src
*.tad[sb] *.macros
AWSRes - Resource Creator v1.3
(Btw, you can use three backtiks “`” to open a code block and another three to close it).
Sadly, beyond my basic observation, I cannot really help you further… I also do not use Alire on Windows, so I cannot test it myself.
Thank you for your post and be very welcomed! Best regards,
Fer
P.S: as a beginner, your feedback is very useful, so feel free to share it with your opinions!
P.P.S: and in case you happen to speak Spanish, you may be interested in the Ada-Spain “Jornada técnica” which will be taking place this Friday. More info can be found in this forum post
Hi Alexis;
There are quite a few “completed” Rosetta Code Tasks written in Ada which no longer compile, most due to Ada package availability or changes to the packages. If you could fix some of the ones that are already written, but not quite right (“bit rot”?), it might help you with the Tasks not yet implemented.
Looking forward to your contribution!
Retired Build Engineer
Hi Fer,
Thanks for your feedback and the tips! I think I’ll try to replicate the error and take it to the Alire forum on Gitter better.
I’m a Spanish speaker, living in Madrid now. I know about the “Jornada técnica” and I’d love to attend but sadly (really not so much I’m “de puente” this week and I won’t be able to attend. I’ll definitely try to attend the next ones, and the Monthly Meetups too, whenever possible.
Thank you very much.
Best regards,
Alexis.
1 Like
Hi Ret,
Thanks for the advice, I’ll be having a go at trying out the existing ones too. I’ll try them out on Alire and share that experience too.
Thanks a lot!
Best regards,
Alexis.
I built the program with Alire 2.0.1 using these commands:
alr init not_coded
cd not_coded
# Paste the program in src/not_coded.adb
alr with aws
alr with xmlada
alr with gnatcoll
alr build
The dependencies result in:
Dependencies (direct):
aws^24.0.0
gnatcoll^24.0.0
xmlada^24.0.0
Might it be a Windows issue? I tried the same sequence, the resulting dependencies were:
Dependencies (direct):
aws^24.0.0
gnatcoll^24.0.0
xmlada^24.0.0
Then
alr build
Again the build failed, here’s the full log:
Note: Running post-fetch actions for aws=24.0.0...
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/config'
gprbuild: "xoscons.exe" up to date
Setup OS specific definitions
aws-os_lib-tmplt.c:128: warning: "EADDRNOTAVAIL" redefined
128 | #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
In file included from C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/lib/gcc/x86_64-w64-mingw32/13.2.0/include/mm_malloc.h:29,
from C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/malloc.h:84,
from C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/stdlib.h:770,
from aws-os_lib-tmplt.c:77:
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:90: note: this is the location of the previous definition
90 | #define EADDRNOTAVAIL 101
|
aws-os_lib-tmplt.c:129: warning: "ETIMEDOUT" redefined
129 | #define ETIMEDOUT WSAETIMEDOUT
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:223: note: this is the location of the previous definition
223 | #define ETIMEDOUT 138
|
aws-os_lib-tmplt.c:130: warning: "ENOTCONN" redefined
130 | #define ENOTCONN WSAENOTCONN
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:150: note: this is the location of the previous definition
150 | #define ENOTCONN 126
|
aws-os_lib-tmplt.c:131: warning: "EWOULDBLOCK" redefined
131 | #define EWOULDBLOCK WSAEWOULDBLOCK
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:166: note: this is the location of the previous definition
166 | #define EWOULDBLOCK 140
|
aws-os_lib-tmplt.c:132: warning: "EINPROGRESS" redefined
132 | #define EINPROGRESS WSAEINPROGRESS
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:158: note: this is the location of the previous definition
158 | #define EINPROGRESS 112
|
aws-os_lib-tmplt.c:133: warning: "ENOBUFS" redefined
133 | #define ENOBUFS WSAENOBUFS
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:98: note: this is the location of the previous definition
98 | #define ENOBUFS 119
|
aws-os_lib-tmplt.c:137: warning: "ECONNRESET" redefined
137 | #define ECONNRESET WSAECONNRESET
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:114: note: this is the location of the previous definition
114 | #define ECONNRESET 108
|
aws-os_lib-tmplt.c:138: warning: "EADDRINUSE" redefined
138 | #define EADDRINUSE WSAEADDRINUSE
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:86: note: this is the location of the previous definition
86 | #define EADDRINUSE 100
|
aws-os_lib-tmplt.c:139: warning: "EAFNOSUPPORT" redefined
139 | #define EAFNOSUPPORT WSAEAFNOSUPPORT
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:82: note: this is the location of the previous definition
82 | #define EAFNOSUPPORT 102
|
aws-os_lib-tmplt.c:140: warning: "EALREADY" redefined
140 | #define EALREADY WSAEALREADY
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:106: note: this is the location of the previous definition
106 | #define EALREADY 103
|
aws-os_lib-tmplt.c:141: warning: "ECONNABORTED" redefined
141 | #define ECONNABORTED WSAECONNABORTED
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:102: note: this is the location of the previous definition
102 | #define ECONNABORTED 106
|
aws-os_lib-tmplt.c:142: warning: "ECONNREFUSED" redefined
142 | #define ECONNREFUSED WSAECONNREFUSED
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:110: note: this is the location of the previous definition
110 | #define ECONNREFUSED 107
|
aws-os_lib-tmplt.c:143: warning: "EDESTADDRREQ" redefined
143 | #define EDESTADDRREQ WSAEDESTADDRREQ
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:118: note: this is the location of the previous definition
118 | #define EDESTADDRREQ 109
|
aws-os_lib-tmplt.c:145: warning: "EHOSTUNREACH" redefined
145 | #define EHOSTUNREACH WSAEHOSTUNREACH
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:122: note: this is the location of the previous definition
122 | #define EHOSTUNREACH 110
|
aws-os_lib-tmplt.c:146: warning: "EISCONN" redefined
146 | #define EISCONN WSAEISCONN
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:94: note: this is the location of the previous definition
94 | #define EISCONN 113
|
aws-os_lib-tmplt.c:147: warning: "ELOOP" redefined
147 | #define ELOOP WSAELOOP
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:227: note: this is the location of the previous definition
227 | #define ELOOP 114
|
aws-os_lib-tmplt.c:148: warning: "EMSGSIZE" redefined
148 | #define EMSGSIZE WSAEMSGSIZE
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:126: note: this is the location of the previous definition
126 | #define EMSGSIZE 115
|
aws-os_lib-tmplt.c:150: warning: "EPROTONOSUPPORT" redefined
150 | #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:178: note: this is the location of the previous definition
178 | #define EPROTONOSUPPORT 135
|
aws-os_lib-tmplt.c:151: warning: "EPROTOTYPE" redefined
151 | #define EPROTOTYPE WSAEPROTOTYPE
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:231: note: this is the location of the previous definition
231 | #define EPROTOTYPE 136
|
aws-os_lib-tmplt.c:152: warning: "ENETDOWN" redefined
152 | #define ENETDOWN WSAENETDOWN
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:130: note: this is the location of the previous definition
130 | #define ENETDOWN 116
|
aws-os_lib-tmplt.c:153: warning: "ENETRESET" redefined
153 | #define ENETRESET WSAENETRESET
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:134: note: this is the location of the previous definition
134 | #define ENETRESET 117
|
aws-os_lib-tmplt.c:154: warning: "ENETUNREACH" redefined
154 | #define ENETUNREACH WSAENETUNREACH
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:138: note: this is the location of the previous definition
138 | #define ENETUNREACH 118
|
aws-os_lib-tmplt.c:155: warning: "ENOPROTOOPT" redefined
155 | #define ENOPROTOOPT WSAENOPROTOOPT
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:142: note: this is the location of the previous definition
142 | #define ENOPROTOOPT 123
|
aws-os_lib-tmplt.c:156: warning: "ENOTSOCK" redefined
156 | #define ENOTSOCK WSAENOTSOCK
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:146: note: this is the location of the previous definition
146 | #define ENOTSOCK 128
|
aws-os_lib-tmplt.c:157: warning: "EOPNOTSUPP" redefined
157 | #define EOPNOTSUPP WSAEOPNOTSUPP
|
C:/Users/paezj/AppData/Local/alire/cache/toolchains/gnat_native_13.2.1_fa3c7439/x86_64-w64-mingw32/include/errno.h:162: note: this is the location of the previous definition
162 | #define EOPNOTSUPP 130
|
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/config'
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/regtests'
Can not generate system tags. The test are disabled
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/regtests'
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/demos'
make[1]: Nothing to be done for 'setup'.
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/demos'
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/templates_pa
rser'
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/templates_par
ser'
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/templates_pa
rser'
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/templates_par
ser'
Build Libraries
[gprlib] aws_ssl.lexch
[archive] libaws_ssl.a
[index] libaws_ssl.a
[gprlib] aws.lexch
[archive] libaws.a
[index] libaws.a
Bind
[gprbind] awsres.bexch
[Ada] awsres.ali
Link
[link] awsres.adb
make[1]: Entering directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/tools/wsdl2a
ws-templates'
../../.build/x86_64-w64-mingw32/debug/static/tools/awsres \
-r wsdl2aws_templates \
-o ../../.build/x86_64-w64-mingw32/common/src \
*.tad[sb] *.macros
AWSRes - Resource Creator v1.3
creating s-main.tadb
Cannot create embedded resource file
make[1]: *** [Makefile:20: gen-templates] Error 1
make[1]: Leaving directory '/c/Users/paezj/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/c47edc84ea7245f3ab28f1afcdc4b8a636f15f91aabd43cde2a72ef7077f0133/tools/wsdl2aw
s-templates'
make: *** [Makefile:220: gen-templates] Error 2
ERROR: Command ["make", "all", "ENABLE_SHARED=false"] exited with code 2
RosettaCode now has a page with tasks not implemented in Ada:
Tasks not implemented in Ada
3 Likes
The error does seem to be generated by awsres
while trying to create s-main.tadb
… I would assume this is an AWS error and not Alire’s or the toolchain’s…
If someone else could test it it would be nice…
Regards,
Fer
HI All;
I have successfully completed this exercise!!
I followed the instructions [mgrojo] provided with a brand new Alire built from source and using the new Ada 14.1 Ada compiler (thanks Simon!) on a Mac with M1 chip (aarch64).
This is my first successful Alire project!
Thanks, Alire team!
Retired_Build_Engineer
3 Likes
DrPi
May 17, 2024, 9:37pm
11
I tried with Windows 10 and Alire 1.2.2 (I have not updated Alire yet).
The dependencies are
aws^23.0.0
gnatcoll^23.0.0
xmlada^23.0.0
GNAT version is 12.2.1
The compilation failed with surprising linking errors :
.
.
.
[archive] libaws_ssl.a
[index] libaws_ssl.a
[archive] libaws.a
[index] libaws.a
Bind
[gprbind] not_coded.bexch
[Ada] not_coded.ali
Link
[link] not_coded.adb
c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/2/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/crt2.o:crtexe.c:(.rdata$.refptr.mingw_initcharmax[.refptr.mingw_initcharmax]+0x0): undefined reference to `mingw_initcharmax'
c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/crt2.o:crtexe.c:(.rdata$.refptr.mingw_initltssuo_force[.refptr.mingw_initltssuo_force]+0x0): undefined reference to `mingw_initltssuo_force'
c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/crt2.o:crtexe.c:(.rdata$.refptr.mingw_initltsdyn_force[.refptr.mingw_initltsdyn_force]+0x0): undefined reference to `mingw_initltsdyn_force'
c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/crt2.o:crtexe.c:(.rdata$.refptr.mingw_initltsdrot_force[.refptr.mingw_initltsdrot_force]+0x0): undefined reference to `mingw_initltsdrot_force'
c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/crt2.o:crtexe.c:(.rdata$.refptr.mingw_app_type[.refptr.mingw_app_type]+0x0): undefined reference to `mingw_app_type'
collect2.exe: error: ld returned 1 exit status
gprbuild: link of not_coded.adb failed
gprbuild: failed command was: c:\users\nicolas\.config\alire\cache\dependencies\gnat_native_12.2.1_c210a022\bin\gcc.exe not_coded.o b__not_coded.o Z:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\aws\libaws.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\ssl\libaws_ssl.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\gn
atcoll_23.0.0_29478a20\lib\gnatcoll\static\libgnatcoll.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\libgpr_23.0.0_34e332b9\gpr\lib\production\static\libgpr.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\schema\lib\static\libxmlada_schema.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\dom\lib\static\libxmlada_dom.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\sax\lib\static\libxmlada_sax.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\input_sources\lib\static\libxmlada_input_sources.a Z:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\unicode\lib\static\libxmlada_unicode.a -LC:\Users\Nicolas\.cache\alire\msys64\mingw64\lib\ -lssl -lcrypto Z:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\zlib\libz.a -lpsapi -lntdll -LZ:\ada\alire_projects\not_coded\obj\development\ -LZ:\ada\alire_projects\not_coded\obj\development\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\aws\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\include\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\obj\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\zlib\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\src\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\aws_23.0.0_6c406859\.build\x86_64-w64-mingw32\debug\static\lib\ssl\ -LC:\Users\Nicolas\.cache\alire\msys64\mingw64\lib\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\gnatcoll_23.0.0_29478a20\lib\gnatcoll\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\libgpr_23.0.0_34e332b9\gpr\lib\production\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\unicode\lib\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\sax\lib\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\input_sources\lib\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\dom\lib\static\ -LZ:\ada\alire_projects\not_coded\alire\cache\dependencies\xmlada_23.0.0_70494123\schema\lib\static\ -LC:/users/nicolas/.config/alire/cache/dependencies/gnat_native_12.2.1_c210a022/lib/gcc/x86_64-w64-mingw32/12.2.0/adalib/ -shared-libgcc -lws2_32 -lgnarl-12 -lgnat-12 -lws2_32 -Xlinker --stack=0x200000,0x1000 -mthreads -lm -o Z:\ada\alire_projects\not_coded\bin\\not_coded.exe
ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "Z:\ada\alire_projects\not_coded\not_coded.gpr"] exited with code 4
ERROR: Compilation failed.
The 5 lines after [link] not_coded.adb
show errors like undefined reference to `mingw_initcharmax'
JC001
May 18, 2024, 4:15pm
12
This page says that it’s autogenerated and updates every 15 minutes or less. I implemented one of the simpler tasks (Arithmetic-geometric mean/Calculate Pi ) in Ada on May 15. If I am not logged in, this page still indicates that it is an unimplemented task today, May 18. If I log in, it does not appear in the list of unimplemented tasks. Why does being logged in affect the tasks in the list?
jere
May 18, 2024, 9:27pm
13
Maybe there is an approval process that hasn’t happened yet?
I just checked the Rosetta Code page, your implementation is listed now.
Edit: weird if not showing.
Oh no it isn’t (UK, 2024-05-19, 08:18 GMT+1)
It’s a Schrodinger’s task (both implemented and unimplemented), at 11:28 GMT+1
1 Like
The thing is that if I alr get aws
and alr build
separately it builds the aws crate fine. If I then go back to my not_coded crate and alr with aws --use=<path to the built aws crate>
it then builds fine. It’s somewhat strange.
Best regards,
Alexis.
JC001
May 19, 2024, 10:49am
17
The phrase “this page” in my comment refers to the “Tasks not implemented in Ada” page. The task still appears on the “Tasks not implemented in Ada” page if I’m not logged in.
mgrojo
May 19, 2024, 12:21pm
18
Mediawiki, the software behind Wikipedia and Rosetta Code, has a cache mechanism. According to its manual :
The file cache serves anonymous users only and they see the same HTML rendered. Logged-in users don’t benefit from this cache because their page contains user name, selected skin, etc.
Probably, in this case, the result of the script which is called by the page has been cached for anonymous users, and it is older than the latest page generation, which can be seen by the logged-in users. With the necessary time, we can assume the cache will be invalidated and the page refreshed for all users.
mgrojo
May 19, 2024, 12:34pm
19
I’m not sure of this after reading further in the MediaWiki manual page I referenced. So maybe there is a bug there, either in the RosettaCode setup or in MediaWiki itself, because this kind of page should disable caching, since there is no general cache expiration date. Adding ?action=purge
to the URL didn’t work either.
Hi Alexis,
Which task is this one? (I’d like to try it on a Mac)