No rule to make ...

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

No rule to make ...

Nikolas Becker
Hello,

I started with a project for the ethernut5 board with Nut/OS around a year ago and had some nice help from you. The project took a break and now I have to continue. I reinstalled the ethernut software 5.2.4 and yagarto. I followed the manual up to the point where the Nut/OS libraries are built. The building fails with the following log:

14:02:47: Creating Makefiles for arm-gcc in nutbld
14:02:47: Creating header files in nutbld
14:02:47: OK
14:02:49: ----- Running 'make clean' -----
14:02:49: Located D:\dev\trunk\Ethernut\ethernut-5.2\nut\tools\win32\make.exe
14:02:56: ----- 'make clean' terminated successfully -----
14:02:56: ----- Running 'make all' -----
14:02:56: Located D:\dev\trunk\Ethernut\ethernut-5.2\nut\tools\win32\make.exe
make[1]: *** No rule to make target `aes.o', needed by `libnutcrypto.a'.  Stop.
make: *** [all] Error 2
14:05:08: ----- 'make all' failed with error 2 -----

Im using the non-QT version of the Configurator, chose the recommended arm-gcc platform, added yagarto to the path-variables and loaded the ethernut5f config file.

After checking the makerules.gcc, I found some commentary for this issue, where is stated that it was fixed, but somehow in my case it isn't.

Any idea where my mistake is?

Thanks in advance!


Best regards

pEMTec SNC
Nikolas Becker
Dipl.- Physiker

Entwicklung

6 rue Jules Verne
BP 60147
57603 Forbach Cedex

Tel.:    +33 (0) 387.13.09.22
E-Mail: [hidden email]<mailto:[hidden email]>
www.pemtec.de<http://www.pemtec.de/>
www.pemtec.fr<http://www.pemtec.fr/>

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Uwe Bonnes
Nikolas Becker writes:
> Hello,
>
> I started with a project for the ethernut5 board with Nut/OS around
> a year ago and had some nice help from you. The project took a break
> and now I have to continue. I reinstalled the ethernut software
> 5.2.4 and yagarto. I followed the manual up to the point where the
> Nut/OS libraries are built. The building fails with the following
> log:
Why don't you try SVN head?

SVN head is where I put a lot of work into. 5.2.4 targets mostly
at boards I don't have, so I can not test.

> make[1]: *** No rule to make target `aes.o', needed by
> `libnutcrypto.a'.  Stop.

Perhaps you have to add some license agreements in the configurator
under "Non-BSDL Code". Quote the correspomding lines from the .conf
file.

> Any idea where my mistake is?
>

Clinging to old-age "stable" versions? Arm GCC
(https://developer.arm.com/open-source/gnu-toolchain/gnu-rm.) is now
at version 9 while yagarto has been abandoned for years.

I would appreciate if you give SVN (GIT) head a try.

Bye

--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Nikolas Becker
Hello Uwe,

I'm really sorry, I just downloaded the newest version from the ethernut page and followed the tutorial which recommends yagarto.

I visited the repository and downloaded the head revision. Sadly, I have no idea how to build the newest version from the source, so I just tried to copy the newer files over my already installed 5.2.4 build.
I then installed the gnu arm toolchain as recommended by you.
I accepted all licenses under the non-BSDL code section.
With GNU ARM Toolchain, I get the following log:

10:30:35: Nut/OS Configurator Version 3.0.2
10:30:35: Linked to wxWidgets 2.9.3
10:30:35: Running on Windows 7 (build 7601, Service Pack 1), 64-bit edition
10:30:35: Working in D:\dev\trunk\Ethernut\ethernutmix
10:30:39: Loading nut/conf/repository.nut
10:30:39: Loading nut/conf/ethernut50f.conf
10:30:39: OK
10:30:51: nut/conf/arch/cm3/stm32usart.nut:496: attempt to call upvalue 'CK_CHOICE' (a nil value)
10:31:29: Creating Makefiles for arm-gcc in nutbld
10:31:29: Creating header files in nutbld
10:31:29: OK
10:31:31: ----- Running 'make clean' -----
10:31:31: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
10:31:38: ----- 'make clean' terminated successfully -----
10:31:38: ----- Running 'make all' -----
10:31:38: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
../../nut/fs/phatfs.c: In function 'PhatFileWrite':
../../nut/fs/phatfs.c:699:29: error: taking address of packed member of 'struct _PHATDIRENT' may result in an unaligned pointer value [-Werror=address-of-packed-member]
  699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
../../nut/fs/phatfs.c:699:56: error: taking address of packed member of 'struct _PHATDIRENT' may result in an unaligned pointer value [-Werror=address-of-packed-member]
  699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
      |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
make[1]: *** [phatfs.o] Error 1
make: *** [all] Error 2
10:34:34: ----- 'make all' failed with error 2 -----

With Yagarto, I get the following log:

10:40:33: Creating Makefiles for arm-gcc in nutbld
10:40:33: Creating header files in nutbld
10:40:34: OK
10:40:35: ----- Running 'make clean' -----
10:40:35: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
10:40:42: ----- 'make clean' terminated successfully -----
10:40:42: ----- Running 'make all' -----
10:40:42: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
../../nut/crt/setenv.c:176:10: error: conflicting types for 'unsetenv'
In file included from ../../nut/crt/setenv.c:36:0:
d:/dev/trunk/ethernut/yagarto/lib/gcc/../../arm-none-eabi/sys-include/stdlib.h:196:5: note: previous declaration of 'unsetenv' was here
make[1]: *** [setenv.o] Error 1
make: *** [all] Error 2
10:42:16: ----- 'make all' failed with error 2 -----


Isn't there perhaps an older, known stable release, where I just can compile the basic nut library for my ethernut5?

Best regards,
   Nikolas
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Uwe Bonnes
Nikolas Becker writes:
> Hello Uwe,
>
> I'm really sorry, I just downloaded the newest version from the ethernut page and followed the tutorial which recommends yagarto.
>
...
>   699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
>       |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../../nut/fs/phatfs.c:699:56: error: taking address of packed member of 'struct _PHATDIRENT' may result in an unaligned pointer value [-Werror=address-of-packed-member]
>   699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
I only noticed yesterday, that a new arm-non-eabi is available. I hit
that problem too and fixed it. The fix is now upstream.

Bye
--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Nikolas Becker
Hello Uwe,

I tried your latest build. It looks like it doesen't know the type bigint_t:

14:30:01: Nut/OS Configurator Version 3.0.2
14:30:01: Linked to wxWidgets 2.9.3
14:30:01: Running on Windows 7 (build 7601, Service Pack 1), 64-bit edition
14:30:01: Working in D:\dev\trunk\Ethernut\ethernutmix
14:30:01: Loading nut/conf/repository.nut
14:30:01: Loading nut/conf/ethernut50f.conf
14:30:02: OK
14:30:20: nut/conf/arch/cm3/stm32usart.nut:496: attempt to call upvalue 'CK_CHOICE' (a nil value)
14:31:06: Creating Makefiles for arm-gcc in nutbld
14:31:06: Creating header files in nutbld
14:31:07: OK
14:31:09: ----- Running 'make clean' -----
14:31:09: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
14:31:16: ----- 'make clean' terminated successfully -----
14:31:16: ----- Running 'make all' -----
14:31:16: Located D:\dev\trunk\Ethernut\ethernutmix\nut\tools\win32\make.exe
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:63:20: error: unknown type name 'bigint_t'; did you mean 'bigint'?
   63 | void bigint_adjust(bigint_t* a){
      |                    ^~~~~~~~
      |                    bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:83:32: error: unknown type name 'bigint_t'
   83 | uint16_t bigint_length_b(const bigint_t* a){
      |                                ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_length_b':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:84:7: error: request for member 'length_W' in something not a structure or union
   84 |  if(!a->length_W || a->length_W==0){
      |       ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:84:22: error: request for member 'length_W' in something not a structure or union
   84 |  if(!a->length_W || a->length_W==0){
      |                      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:87:11: error: request for member 'length_W' in something not a structure or union
   87 |  return (a->length_W-1) * BIGINT_WORD_SIZE + GET_FBS(a);
      |           ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:87:27: error: 'BIGINT_WORD_SIZE' undeclared (first use in this function)
   87 |  return (a->length_W-1) * BIGINT_WORD_SIZE + GET_FBS(a);
      |                           ^~~~~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:87:27: note: each undeclared identifier is reported only once for each function it appears in
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:52:26: error: request for member 'info' in something not a structure or union
   52 | #define GET_FBS(a)   ((a)->info&BIGINT_FBS_MASK)
      |                          ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:87:46: note: in expansion of macro 'GET_FBS'
   87 |  return (a->length_W-1) * BIGINT_WORD_SIZE + GET_FBS(a);
      |                                              ^~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:52:33: error: 'BIGINT_FBS_MASK' undeclared (first use in this function)
   52 | #define GET_FBS(a)   ((a)->info&BIGINT_FBS_MASK)
      |                                 ^~~~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:87:46: note: in expansion of macro 'GET_FBS'
   87 |  return (a->length_W-1) * BIGINT_WORD_SIZE + GET_FBS(a);
      |                                              ^~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:92:32: error: unknown type name 'bigint_t'
   92 | uint16_t bigint_length_B(const bigint_t* a){
      |                                ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_length_B':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:93:10: error: request for member 'length_W' in something not a structure or union
   93 |  return a->length_W * sizeof(bigint_word_t);
      |          ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:93:30: error: 'bigint_word_t' undeclared (first use in this function)
   93 |  return a->length_W * sizeof(bigint_word_t);
      |                              ^~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:98:41: error: unknown type name 'bigint_t'
   98 | uint32_t bigint_get_first_set_bit(const bigint_t* a){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_get_first_set_bit':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:99:6: error: request for member 'length_W' in something not a structure or union
   99 |  if(a->length_W==0){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:102:11: error: request for member 'length_W' in something not a structure or union
  102 |  return (a->length_W-1)*sizeof(bigint_word_t)*8+GET_FBS(a);
      |           ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:102:32: error: 'bigint_word_t' undeclared (first use in this function)
  102 |  return (a->length_W-1)*sizeof(bigint_word_t)*8+GET_FBS(a);
      |                                ^~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:52:26: error: request for member 'info' in something not a structure or union
   52 | #define GET_FBS(a)   ((a)->info&BIGINT_FBS_MASK)
      |                          ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:102:49: note: in expansion of macro 'GET_FBS'
  102 |  return (a->length_W-1)*sizeof(bigint_word_t)*8+GET_FBS(a);
      |                                                 ^~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:52:33: error: 'BIGINT_FBS_MASK' undeclared (first use in this function)
   52 | #define GET_FBS(a)   ((a)->info&BIGINT_FBS_MASK)
      |                                 ^~~~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:102:49: note: in expansion of macro 'GET_FBS'
  102 |  return (a->length_W-1)*sizeof(bigint_word_t)*8+GET_FBS(a);
      |                                                 ^~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:108:40: error: unknown type name 'bigint_t'
  108 | uint32_t bigint_get_last_set_bit(const bigint_t* a){
      |                                        ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_get_last_set_bit':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:111:2: error: unknown type name 'bigint_word_t'
  111 |  bigint_word_t x=1;
      |  ^~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:112:6: error: request for member 'length_W' in something not a structure or union
  112 |  if(a->length_W==0){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:115:9: error: request for member 'wordv' in something not a structure or union
  115 |  while(a->wordv[r]==0 && r<a->length_W){
      |         ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:115:29: error: request for member 'length_W' in something not a structure or union
  115 |  while(a->wordv[r]==0 && r<a->length_W){
      |                             ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:118:6: error: request for member 'wordv' in something not a structure or union
  118 |  if(a->wordv[r] == 0){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:121:12: error: request for member 'wordv' in something not a structure or union
  121 |  while((x&a->wordv[r])==0){
      |            ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:125:11: error: 'BIGINT_WORD_SIZE' undeclared (first use in this function)
  125 |  return r*BIGINT_WORD_SIZE+b;
      |           ^~~~~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:130:18: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  130 | void bigint_copy(bigint_t* dest, const bigint_t* src){
      |                  ^~~~~~~~
      |                  bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:130:40: error: unknown type name 'bigint_t'
  130 | void bigint_copy(bigint_t* dest, const bigint_t* src){
      |                                        ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:139:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  139 | void bigint_add_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:139:41: error: unknown type name 'bigint_t'
  139 | void bigint_add_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:139:60: error: unknown type name 'bigint_t'
  139 | void bigint_add_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:167:25: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  167 | void bigint_add_scale_u(bigint_t* dest, const bigint_t* a, uint16_t scale){
      |                         ^~~~~~~~
      |                         bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:167:47: error: unknown type name 'bigint_t'
  167 | void bigint_add_scale_u(bigint_t* dest, const bigint_t* a, uint16_t scale){
      |                                               ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:251:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  251 | void bigint_sub_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:251:41: error: unknown type name 'bigint_t'
  251 | void bigint_sub_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:251:60: error: unknown type name 'bigint_t'
  251 | void bigint_sub_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:298:27: error: unknown type name 'bigint_t'
  298 | int8_t bigint_cmp_u(const bigint_t* a, const bigint_t* b){
      |                           ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:298:46: error: unknown type name 'bigint_t'
  298 | int8_t bigint_cmp_u(const bigint_t* a, const bigint_t* b){
      |                                              ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_cmp_u':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:299:6: error: request for member 'length_W' in something not a structure or union
  299 |  if(a->length_W > b->length_W){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:299:20: error: request for member 'length_W' in something not a structure or union
  299 |  if(a->length_W > b->length_W){
      |                    ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:302:6: error: request for member 'length_W' in something not a structure or union
  302 |  if(a->length_W < b->length_W){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:302:20: error: request for member 'length_W' in something not a structure or union
  302 |  if(a->length_W < b->length_W){
      |                    ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:305:6: error: request for member 'length_W' in something not a structure or union
  305 |  if(a->length_W==0){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:309:7: error: request for member 'length_W' in something not a structure or union
  309 |  i = a->length_W-1;
      |       ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:311:7: error: request for member 'wordv' in something not a structure or union
  311 |   if(a->wordv[i] != b->wordv[i]){
      |       ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:311:22: error: request for member 'wordv' in something not a structure or union
  311 |   if(a->wordv[i] != b->wordv[i]){
      |                      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:312:8: error: request for member 'wordv' in something not a structure or union
  312 |    if(a->wordv[i] > b->wordv[i]){
      |        ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:312:22: error: request for member 'wordv' in something not a structure or union
  312 |    if(a->wordv[i] > b->wordv[i]){
      |                      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:324:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  324 | void bigint_add_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:324:41: error: unknown type name 'bigint_t'
  324 | void bigint_add_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:324:60: error: unknown type name 'bigint_t'
  324 | void bigint_add_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:350:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  350 | void bigint_sub_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:350:41: error: unknown type name 'bigint_t'
  350 | void bigint_sub_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:350:60: error: unknown type name 'bigint_t'
  350 | void bigint_sub_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:377:27: error: unknown type name 'bigint_t'
  377 | int8_t bigint_cmp_s(const bigint_t* a, const bigint_t* b){
      |                           ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:377:46: error: unknown type name 'bigint_t'
  377 | int8_t bigint_cmp_s(const bigint_t* a, const bigint_t* b){
      |                                              ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_cmp_s':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:379:6: error: request for member 'length_W' in something not a structure or union
  379 |  if(a->length_W==0 && b->length_W==0){
      |      ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:379:24: error: request for member 'length_W' in something not a structure or union
  379 |  if(a->length_W==0 && b->length_W==0){
      |                        ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:60:25: error: request for member 'info' in something not a structure or union
   60 | #define GET_SIGN(a) ((a)->info&BIGINT_NEG_MASK)
      |                         ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:382:7: note: in expansion of macro 'GET_SIGN'
  382 |  s  = GET_SIGN(a)?2:0;
      |       ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:60:32: error: 'BIGINT_NEG_MASK' undeclared (first use in this function); did you mean 'BIGINT_NUM_MODS'?
   60 | #define GET_SIGN(a) ((a)->info&BIGINT_NEG_MASK)
      |                                ^~~~~~~~~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:382:7: note: in expansion of macro 'GET_SIGN'
  382 |  s  = GET_SIGN(a)?2:0;
      |       ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:60:25: error: request for member 'info' in something not a structure or union
   60 | #define GET_SIGN(a) ((a)->info&BIGINT_NEG_MASK)
      |                         ^~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:383:7: note: in expansion of macro 'GET_SIGN'
  383 |  s |= GET_SIGN(b)?1:0;
      |       ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: At top level:
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:405:23: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  405 | void bigint_shiftleft(bigint_t* a, uint16_t shift){
      |                       ^~~~~~~~
      |                       bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:441:24: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  441 | void bigint_shiftright(bigint_t* a, uint16_t shift){
      |                        ^~~~~~~~
      |                        bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:476:17: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  476 | void bigint_xor(bigint_t* dest, const bigint_t* a){
      |                 ^~~~~~~~
      |                 bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:476:39: error: unknown type name 'bigint_t'
  476 | void bigint_xor(bigint_t* dest, const bigint_t* a){
      |                                       ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:486:22: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  486 | void bigint_set_zero(bigint_t* a){
      |                      ^~~~~~~~
      |                      bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:494:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  494 | void bigint_mul_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:494:41: error: unknown type name 'bigint_t'
  494 | void bigint_mul_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:494:60: error: unknown type name 'bigint_t'
  494 | void bigint_mul_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:589:19: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  589 | void bigint_mul_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                   ^~~~~~~~
      |                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:589:41: error: unknown type name 'bigint_t'
  589 | void bigint_mul_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                         ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:589:60: error: unknown type name 'bigint_t'
  589 | void bigint_mul_s(bigint_t* dest, const bigint_t* a, const bigint_t* b){
      |                                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:619:20: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  619 | void bigint_square(bigint_t* dest, const bigint_t* a){
      |                    ^~~~~~~~
      |                    bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:619:42: error: unknown type name 'bigint_t'
  619 | void bigint_square(bigint_t* dest, const bigint_t* a){
      |                                          ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:671:28: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  671 | void bigint_sub_u_bitscale(bigint_t* a, const bigint_t* b, uint16_t bitscale){
      |                            ^~~~~~~~
      |                            bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:671:47: error: unknown type name 'bigint_t'
  671 | void bigint_sub_u_bitscale(bigint_t* a, const bigint_t* b, uint16_t bitscale){
      |                                               ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:698:20: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  698 | void bigint_reduce(bigint_t* a, const bigint_t* r){
      |                    ^~~~~~~~
      |                    bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:698:39: error: unknown type name 'bigint_t'
  698 | void bigint_reduce(bigint_t* a, const bigint_t* r){
      |                                       ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:756:22: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  756 | void bigint_expmod_u(bigint_t* dest, const bigint_t* a, const bigint_t* exp, const bigint_t* r){
      |                      ^~~~~~~~
      |                      bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:756:44: error: unknown type name 'bigint_t'
  756 | void bigint_expmod_u(bigint_t* dest, const bigint_t* a, const bigint_t* exp, const bigint_t* r){
      |                                            ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:756:63: error: unknown type name 'bigint_t'
  756 | void bigint_expmod_u(bigint_t* dest, const bigint_t* a, const bigint_t* exp, const bigint_t* r){
      |                                                               ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:756:84: error: unknown type name 'bigint_t'
  756 | void bigint_expmod_u(bigint_t* dest, const bigint_t* a, const bigint_t* exp, const bigint_t* r){
      |                                                                                    ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:817:20: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  817 | void bigint_gcdext(bigint_t* gcd, bigint_t* a, bigint_t* b, const bigint_t* x, const bigint_t* y){
      |                    ^~~~~~~~
      |                    bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:817:35: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  817 | void bigint_gcdext(bigint_t* gcd, bigint_t* a, bigint_t* b, const bigint_t* x, const bigint_t* y){
      |                                   ^~~~~~~~
      |                                   bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:817:48: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  817 | void bigint_gcdext(bigint_t* gcd, bigint_t* a, bigint_t* b, const bigint_t* x, const bigint_t* y){
      |                                                ^~~~~~~~
      |                                                bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:817:67: error: unknown type name 'bigint_t'
  817 | void bigint_gcdext(bigint_t* gcd, bigint_t* a, bigint_t* b, const bigint_t* x, const bigint_t* y){
      |                                                                   ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:817:86: error: unknown type name 'bigint_t'
  817 | void bigint_gcdext(bigint_t* gcd, bigint_t* a, bigint_t* b, const bigint_t* x, const bigint_t* y){
      |                                                                                      ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:947:21: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  947 | void bigint_inverse(bigint_t* dest, const bigint_t* a, const bigint_t* m){
      |                     ^~~~~~~~
      |                     bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:947:43: error: unknown type name 'bigint_t'
  947 | void bigint_inverse(bigint_t* dest, const bigint_t* a, const bigint_t* m){
      |                                           ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:947:62: error: unknown type name 'bigint_t'
  947 | void bigint_inverse(bigint_t* dest, const bigint_t* a, const bigint_t* m){
      |                                                              ^~~~~~~~
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:956:29: error: unknown type name 'bigint_t'; did you mean 'bigint'?
  956 | void bigint_changeendianess(bigint_t* a){
      |                             ^~~~~~~~
      |                             bigint
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_length_b':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:88:1: error: control reaches end of non-void function [-Werror=return-type]
   88 | }
      | ^
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_length_B':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:94:1: error: control reaches end of non-void function [-Werror=return-type]
   94 | }
      | ^
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_get_first_set_bit':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:103:1: error: control reaches end of non-void function [-Werror=return-type]
  103 | }
      | ^
../../nut/contrib/arm-crypto-lib/bigint/bigint.c: In function 'bigint_get_last_set_bit':
../../nut/contrib/arm-crypto-lib/bigint/bigint.c:126:1: error: control reaches end of non-void function [-Werror=return-type]
  126 | }
      | ^
cc1.exe: all warnings being treated as errors
make[1]: *** [arm-crypto-lib/bigint/bigint.o] Error 1
make: *** [all] Error 2
14:35:18: ----- 'make all' failed with error 2 -----

Where is my mistake?

Best regards,
   Nikolas

-----Urspr√ľngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von [hidden email]
Gesendet: Freitag, 6. Dezember 2019 10:00
An: Ethernut User Chat (English) <[hidden email]>
Betreff: Re: [En-Nut-Discussion] No rule to make ...

Nikolas Becker writes:
> Hello Uwe,
>
> I'm really sorry, I just downloaded the newest version from the ethernut page and followed the tutorial which recommends yagarto.
>
...
>   699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
>       |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../../nut/fs/phatfs.c:699:56: error: taking address of packed member of 'struct _PHATDIRENT' may result in an unaligned pointer value [-Werror=address-of-packed-member]
>   699 |             GetDosTimeStamp(&fcb->f_dirent.dent_mtime, &fcb->f_dirent.dent_mdate);
I only noticed yesterday, that a new arm-non-eabi is available. I hit that problem too and fixed it. The fix is now upstream.

Bye
--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Uwe Bonnes
Nikolas Becker writes:

> Hello Uwe,
>
> I tried your latest build. It looks like it doesen't know the type bigint_t:
>
> 14:30:01: Nut/OS Configurator Version 3.0.2
> 14:30:01: Linked to wxWidgets 2.9.3
> 14:30:01: Running on Windows 7 (build 7601, Service Pack 1), 64-bit edition
> 14:30:01: Working in D:\dev\trunk\Ethernut\ethernutmix
> 14:30:01: Loading nut/conf/repository.nut
> 14:30:01: Loading nut/conf/ethernut50f.conf
> 14:30:02: OK
> 14:30:20: nut/conf/arch/cm3/stm32usart.nut:496: attempt to call upvalue 'CK_CHOICE' (a nil value)
You seem to use a ethernut50f.conf with local additions. It helps, if
you explicit tell so. Or better use a different name. And you should
send it too or better send the diff, showing the additions.

Try first some of the examples in the app directory. Make sure the
examples work.

It seems you added in your conf file:
+LICENSE_GPL3 = ""
That tries to compile contrib/arm-crypto-lib. Do you indent to use
these?. So you should tell also. If you do not need it, try to compile
with the original conf file.

If you need crypto, these crypto things have not need touched since
2013. The errors appear her to. Perhaps the order of includes is
wrong.

app/tls_client used crypto libs. I will have a look.

Bye


--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: No rule to make ...

Nikolas Becker
Hello Uwe,

yes, I modified the ethernut50f.conf, I checked all the options from the the non-BSDL code section since you suggested that there could be a problem. I don't need anything from there, I just wanted to rule out problems.
But after unchecking these, it now compiles successfully.
Thank you very much! :)

Best regards,
   Nikolas

-----Urspr√ľngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von [hidden email]
Gesendet: Freitag, 6. Dezember 2019 14:31
An: Ethernut User Chat (English) <[hidden email]>
Betreff: Re: [En-Nut-Discussion] No rule to make ...

Nikolas Becker writes:

> Hello Uwe,
>
> I tried your latest build. It looks like it doesen't know the type bigint_t:
>
> 14:30:01: Nut/OS Configurator Version 3.0.2
> 14:30:01: Linked to wxWidgets 2.9.3
> 14:30:01: Running on Windows 7 (build 7601, Service Pack 1), 64-bit
> edition
> 14:30:01: Working in D:\dev\trunk\Ethernut\ethernutmix
> 14:30:01: Loading nut/conf/repository.nut
> 14:30:01: Loading nut/conf/ethernut50f.conf
> 14:30:02: OK
> 14:30:20: nut/conf/arch/cm3/stm32usart.nut:496: attempt to call
> upvalue 'CK_CHOICE' (a nil value)
You seem to use a ethernut50f.conf with local additions. It helps, if you explicit tell so. Or better use a different name. And you should send it too or better send the diff, showing the additions.

Try first some of the examples in the app directory. Make sure the examples work.

It seems you added in your conf file:
+LICENSE_GPL3 = ""
That tries to compile contrib/arm-crypto-lib. Do you indent to use these?. So you should tell also. If you do not need it, try to compile with the original conf file.

If you need crypto, these crypto things have not need touched since 2013. The errors appear her to. Perhaps the order of includes is wrong.

app/tls_client used crypto libs. I will have a look.

Bye


--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: Ethernut crypto, was: No rule to make .

Uwe Bonnes
In reply to this post by Nikolas Becker
Hello,

at least app/tls_client compiles with  a standard configuration.

Is there any user of contrib/arm-crypto-lib out there?
At the present state it does not compile.

Bye
--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion