Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [ISSUE] [CLOSED] Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
  2020-07-07 18:39 ` Missing obstack symbols for arduino-cli binaries on musl ericonr
@ 2020-08-08 14:23 ` Johnnynator
  2022-03-17 18:38 ` 4ntoine
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: Johnnynator @ 2020-08-08 14:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

Closed issue by kqo on void-packages repository

https://github.com/void-linux/void-packages/issues/22616

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:
  * Void 5.6.2 x86_64-musl GenuineIntel uptodate rrFFFF
* package:
  * arduino-cli
  * gcompat
  * musl-obstack

### Expected behavior

Binaries pulled in by `arduino-cli` which are linked against `glibc` should hopefully work on musl after #22237 (which fixed other missing symbols, thank you for that!).

### Actual behavior

The `arm-none-eabi-g++` binary pulled in by the `arduino:sam` core is still missing symbols from obstack, namely:

```
Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_newchunk: symbol not found
Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: obstack_free: symbol not found
Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_begin: symbol not found
Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_memory_used: symbol not found
```

`gcompat` seems to support building with `musl-obstack`, so I [tried enabling support](https://github.com/void-linux/void-packages/compare/master...kqo:gcompat-arduino) in the template. I can see that `musl-obstack` gets linked in with `-lobstack`, but the binary still can't find the symbols, nor can I with `nm`.

I'm really out of my depth with this, so I'm not sure if this is a `gcompat` problem, something I'm doing wrong with `xbps`, or if I'm just misunderstanding how things are supposed to work.

### Steps to reproduce the behavior

This will bump into the binary needing obstack symbols:
```
$ arduino-cli core update-index
$ arduino-cli core install arduino:sam
$ arduino-cli sketch new test_sketch
$ arduino-cli compile test_sketch --fqbn arduino:sam:arduino_due_x_dbg
```

It's probably quicker to run:
```
$ LD_PRELOAD=/usr/lib/libgcompat.so.0 ldd ~/.local/share/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++
```

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
  2020-07-07 18:39 ` Missing obstack symbols for arduino-cli binaries on musl ericonr
  2020-08-08 14:23 ` [ISSUE] [CLOSED] " Johnnynator
@ 2022-03-17 18:38 ` 4ntoine
  2022-03-17 18:39 ` 4ntoine
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071200169

Comment:
I'm still having it (seems to) on alpine-virt with gcompat:
```
asvm-x86-64:~/myapp/bin# ./arduino-cli compile --fqbn "esp32:esp32:nano32" ./sk1/
Error relocating /root/myapp/data/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++: obstack_free: symbol not found

Error during build: exit status 127
```

is there any oob solution?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2022-03-17 18:38 ` 4ntoine
@ 2022-03-17 18:39 ` 4ntoine
  2022-03-17 18:40 ` 4ntoine
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071200169

Comment:
I'm still having it (seems to) on alpine-virt with gcompat:
```
asvm-x86-64:~/myapp/bin# ./arduino-cli compile --fqbn "esp32:esp32:nano32" ./sk1/
Error relocating /root/myapp/data/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++: obstack_free: symbol not found

Error during build: exit status 127
```

is there any oob solution?

PS.
```
# apk list | grep gcompat
gcompat-1.0.0-r4 x86_64 {gcompat} (NCSA) [installed]
```

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2022-03-17 18:39 ` 4ntoine
@ 2022-03-17 18:40 ` 4ntoine
  2022-03-17 18:43 ` 4ntoine
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071200169

Comment:
I'm still having it (seems to) on alpine-virt 3.15.1 with gcompat:
```
asvm-x86-64:~/myapp/bin# ./arduino-cli compile --fqbn "esp32:esp32:nano32" ./sk1/
Error relocating /root/myapp/data/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++: obstack_free: symbol not found

Error during build: exit status 127
```

is there any oob solution?

PS.
```
# apk list | grep gcompat
gcompat-1.0.0-r4 x86_64 {gcompat} (NCSA) [installed]
```

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2022-03-17 18:40 ` 4ntoine
@ 2022-03-17 18:43 ` 4ntoine
  2022-03-17 18:48 ` 4ntoine
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071204041

Comment:
i've installed (musl-obstack [package](https://pkgs.alpinelinux.org/package/edge/main/x86/musl-obstack)), but it did not work. I was too naive ;)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2022-03-17 18:43 ` 4ntoine
@ 2022-03-17 18:48 ` 4ntoine
  2022-03-17 18:49 ` 4ntoine
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071204041

Comment:
i've installed (musl-obstack [package](https://pkgs.alpinelinux.org/package/edge/main/x86/musl-obstack))

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (6 preceding siblings ...)
  2022-03-17 18:48 ` 4ntoine
@ 2022-03-17 18:49 ` 4ntoine
  2022-03-17 22:58 ` Johnnynator
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-17 18:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071204041

Comment:
i've installed musl-obstack [package](https://pkgs.alpinelinux.org/package/edge/main/x86/musl-obstack)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (7 preceding siblings ...)
  2022-03-17 18:49 ` 4ntoine
@ 2022-03-17 22:58 ` Johnnynator
  2022-03-17 23:19 ` Johnnynator
  2022-03-18  6:20 ` 4ntoine
  10 siblings, 0 replies; 11+ messages in thread
From: Johnnynator @ 2022-03-17 22:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071746303

Comment:
First thing, we aren't Alpine, we are Void, so this repo isn't really correct.
But either way the issue is, that musl-obstack doesn't export a `obstack_free` function, only `_obstack_free`.

https://github.com/void-linux/musl-obstack Would be the upstream for `musl-obstack` for both Alpine and Void, you can open an isue there.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (8 preceding siblings ...)
  2022-03-17 22:58 ` Johnnynator
@ 2022-03-17 23:19 ` Johnnynator
  2022-03-18  6:20 ` 4ntoine
  10 siblings, 0 replies; 11+ messages in thread
From: Johnnynator @ 2022-03-17 23:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1071798532

Comment:
https://github.com/void-linux/musl-obstack/pull/6

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
                   ` (9 preceding siblings ...)
  2022-03-17 23:19 ` Johnnynator
@ 2022-03-18  6:20 ` 4ntoine
  10 siblings, 0 replies; 11+ messages in thread
From: 4ntoine @ 2022-03-18  6:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

New comment by 4ntoine on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-1072067930

Comment:
@Johnnynator Thanks a lot for your answers! I will definitely look in void-linux distro whether this issue is solved oob to jusut use it instead of alpine. 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Missing obstack symbols for arduino-cli binaries on musl
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
@ 2020-07-07 18:39 ` ericonr
  2020-08-08 14:23 ` [ISSUE] [CLOSED] " Johnnynator
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-07-07 18:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/22616#issuecomment-655049498

Comment:
@kqo I have a PR to fix it now, it's in #23432 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-18  6:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22616@inbox.vuxu.org>
2020-07-07 18:39 ` Missing obstack symbols for arduino-cli binaries on musl ericonr
2020-08-08 14:23 ` [ISSUE] [CLOSED] " Johnnynator
2022-03-17 18:38 ` 4ntoine
2022-03-17 18:39 ` 4ntoine
2022-03-17 18:40 ` 4ntoine
2022-03-17 18:43 ` 4ntoine
2022-03-17 18:48 ` 4ntoine
2022-03-17 18:49 ` 4ntoine
2022-03-17 22:58 ` Johnnynator
2022-03-17 23:19 ` Johnnynator
2022-03-18  6:20 ` 4ntoine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).