Skip to content

Commit 94b4867

Browse files
committed
avoid linker error: use MICROPY_NLR_THUMB_USE_LONG_JUMP; update translations
1 parent 9c43fd9 commit 94b4867

2 files changed

Lines changed: 32 additions & 74 deletions

File tree

locale/circuitpython.pot

Lines changed: 26 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,6 @@ msgstr ""
915915
msgid "ESP-IDF memory allocation failed"
916916
msgstr ""
917917

918-
#: extmod/modopenamp.c
919-
msgid "Endpoint not ready"
920-
msgstr ""
921-
922918
#: extmod/modre.c
923919
msgid "Error in regex"
924920
msgstr ""
@@ -987,34 +983,10 @@ msgstr ""
987983
msgid "Failed to connect: timeout"
988984
msgstr ""
989985

990-
#: extmod/modopenamp.c
991-
msgid "Failed to create RPMsg endpoint"
992-
msgstr ""
993-
994-
#: extmod/modopenamp.c
995-
msgid "Failed to create virtio device"
996-
msgstr ""
997-
998-
#: extmod/modopenamp.c
999-
msgid "Failed to initialize device io region"
1000-
msgstr ""
1001-
1002-
#: extmod/modopenamp.c
1003-
msgid "Failed to initialize vrings"
1004-
msgstr ""
1005-
1006-
#: extmod/modopenamp.c
1007-
msgid "Failed to open metal device"
1008-
msgstr ""
1009-
1010986
#: shared-module/audiomp3/MP3Decoder.c
1011987
msgid "Failed to parse MP3 file"
1012988
msgstr ""
1013989

1014-
#: extmod/modopenamp.c
1015-
msgid "Failed to register metal device"
1016-
msgstr ""
1017-
1018990
#: ports/nordic/sd_mutex.c
1019991
#, c-format
1020992
msgid "Failed to release mutex, err 0x%04x"
@@ -2434,6 +2406,10 @@ msgstr ""
24342406
msgid "argsort is not implemented for flattened arrays"
24352407
msgstr ""
24362408

2409+
#: extmod/ulab/code/numpy/random/random.c
2410+
msgid "argument must be None, an integer or a tuple of integers"
2411+
msgstr ""
2412+
24372413
#: py/compile.c
24382414
msgid "argument name reused"
24392415
msgstr ""
@@ -2734,10 +2710,6 @@ msgstr ""
27342710
msgid "can't truncate-divide a complex number"
27352711
msgstr ""
27362712

2737-
#: extmod/moductypes.c
2738-
msgid "can't unambiguously get sizeof scalar"
2739-
msgstr ""
2740-
27412713
#: extmod/modasyncio.c
27422714
msgid "can't wait"
27432715
msgstr ""
@@ -2895,18 +2867,6 @@ msgstr ""
28952867
msgid "default is not a function"
28962868
msgstr ""
28972869

2898-
#: extmod/machine_usb_device.c
2899-
msgid "desc_cfg"
2900-
msgstr ""
2901-
2902-
#: extmod/machine_usb_device.c
2903-
msgid "desc_dev"
2904-
msgstr ""
2905-
2906-
#: extmod/machine_usb_device.c
2907-
msgid "desc_strs"
2908-
msgstr ""
2909-
29102870
#: shared-bindings/audiobusio/PDMIn.c
29112871
msgid ""
29122872
"destination buffer must be a bytearray or array of type 'B' for bit_depth = 8"
@@ -3332,10 +3292,6 @@ msgstr ""
33323292
msgid "invalid bits_per_pixel %d, must be, 1, 2, 4, 8, 16, 24, or 32"
33333293
msgstr ""
33343294

3335-
#: extmod/modopenamp.c
3336-
msgid "invalid callback"
3337-
msgstr ""
3338-
33393295
#: shared-module/ssl/SSLSocket.c
33403296
msgid "invalid cert"
33413297
msgstr ""
@@ -3431,10 +3387,6 @@ msgstr ""
34313387
msgid "lhs and rhs should be compatible"
34323388
msgstr ""
34333389

3434-
#: extmod/modopenamp_remoteproc.c
3435-
msgid "loading firmware is not supported."
3436-
msgstr ""
3437-
34383390
#: py/emitnative.c
34393391
msgid "local '%q' has type '%q' but source is '%q'"
34403392
msgstr ""
@@ -3484,7 +3436,7 @@ msgstr ""
34843436
msgid "max_length must be 0-%d when fixed_length is %s"
34853437
msgstr ""
34863438

3487-
#: extmod/ulab/code/ndarray.c
3439+
#: extmod/ulab/code/ndarray.c extmod/ulab/code/numpy/random/random.c
34883440
msgid "maximum number of dimensions is "
34893441
msgstr ""
34903442

@@ -3626,7 +3578,7 @@ msgstr ""
36263578
msgid "no default packer"
36273579
msgstr ""
36283580

3629-
#: extmod/modrandom.c
3581+
#: extmod/modrandom.c extmod/ulab/code/numpy/random/random.c
36303582
msgid "no default seed"
36313583
msgstr ""
36323584

@@ -3835,6 +3787,10 @@ msgstr ""
38353787
msgid "out array is too small"
38363788
msgstr ""
38373789

3790+
#: extmod/ulab/code/numpy/random/random.c
3791+
msgid "out has wrong type"
3792+
msgstr ""
3793+
38383794
#: extmod/ulab/code/numpy/vector.c
38393795
msgid "out keyword is not supported for complex dtype"
38403796
msgstr ""
@@ -3859,6 +3815,14 @@ msgstr ""
38593815
msgid "out of range of target"
38603816
msgstr ""
38613817

3818+
#: extmod/ulab/code/numpy/random/random.c
3819+
msgid "output array has wrong type"
3820+
msgstr ""
3821+
3822+
#: extmod/ulab/code/numpy/random/random.c
3823+
msgid "output array must be contiguous"
3824+
msgstr ""
3825+
38623826
#: py/objint_mpz.c
38633827
msgid "overflow converting long int to machine word"
38643828
msgstr ""
@@ -3985,6 +3949,10 @@ msgstr ""
39853949
msgid "set unsupported"
39863950
msgstr ""
39873951

3952+
#: extmod/ulab/code/numpy/random/random.c
3953+
msgid "shape must be None, and integer or a tuple of integers"
3954+
msgstr ""
3955+
39883956
#: extmod/ulab/code/ndarray.c
39893957
msgid "shape must be integer or tuple of integers"
39903958
msgstr ""
@@ -4005,6 +3973,10 @@ msgstr ""
40053973
msgid "size is defined for ndarrays only"
40063974
msgstr ""
40073975

3976+
#: extmod/ulab/code/numpy/random/random.c
3977+
msgid "size must match out.shape when used together"
3978+
msgstr ""
3979+
40083980
#: py/nativeglue.c
40093981
msgid "slice unsupported"
40103982
msgstr ""
@@ -4078,18 +4050,6 @@ msgstr ""
40784050
msgid "string indices must be integers, not %s"
40794051
msgstr ""
40804052

4081-
#: extmod/moductypes.c
4082-
msgid "struct: can't index"
4083-
msgstr ""
4084-
4085-
#: extmod/moductypes.c
4086-
msgid "struct: index out of range"
4087-
msgstr ""
4088-
4089-
#: extmod/moductypes.c
4090-
msgid "struct: no fields"
4091-
msgstr ""
4092-
40934053
#: py/objarray.c py/objstr.c
40944054
msgid "substring not found"
40954055
msgstr ""
@@ -4102,10 +4062,6 @@ msgstr ""
41024062
msgid "syntax error in JSON"
41034063
msgstr ""
41044064

4105-
#: extmod/moductypes.c
4106-
msgid "syntax error in uctypes descriptor"
4107-
msgstr ""
4108-
41094065
#: extmod/modtime.c
41104066
msgid "ticks interval overflow"
41114067
msgstr ""
@@ -4118,10 +4074,6 @@ msgstr ""
41184074
msgid "timeout must be < 655.35 secs"
41194075
msgstr ""
41204076

4121-
#: extmod/modopenamp.c
4122-
msgid "timeout waiting for a free buffer"
4123-
msgstr ""
4124-
41254077
#: ports/raspberrypi/common-hal/floppyio/__init__.c
41264078
msgid "timeout waiting for flux"
41274079
msgstr ""

ports/atmel-samd/mpconfigport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
// Only support simpler HID descriptors on SAMD21.
4747
#define CIRCUITPY_USB_HID_MAX_REPORT_IDS_PER_DESCRIPTOR (1)
4848

49+
// Avoid linker error:
50+
// <artificial>:(.text.nlr_push+0x20): relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `nlr_push_tail' defined in .text.nlr_push_tail section in /tmp/ccvHNpPQ.ltrans0.ltrans.o
51+
// See https://github.com/micropython/micropython/pull/11353
52+
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
53+
54+
4955
#endif // SAMD21
5056

5157
////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)