osx-cross

osx-cross

CrossBuild tools for MacOS and OSX

Member Since 6 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
9
repos
Activity
Oct
18
3 days ago
started
started time in 3 days ago
Oct
9
1 week ago
Activity icon
issue

failsafe89 issue comment osx-cross/homebrew-avr

failsafe89
failsafe89

Unknown symbol format elf32-avr fix for avr-gdb

Added patch suggested by https://github.com/osx-cross/homebrew-avr/issues/251#issuecomment-879036177 to resolve issue loading avr elf files into avr-gdb.

failsafe89
failsafe89

Sorry was super busy. Thanks for getting the change in!

Activity icon
issue

failsafe89 issue comment osx-cross/homebrew-avr

failsafe89
failsafe89

Add patch file for gdb .elf fix

Solves the issue raised by #251 by implementing the fix proposed by #255.

This PR simply includes the patch file. A subsequent PR will introduce the code that applies the patch to elf-gdb.h using the resulting Github URL created for the patch file.

failsafe89
failsafe89

Sorry was super busy. Thanks for getting it in @danapplegate

Oct
7
2 weeks ago
Activity icon
issue

ladislas issue osx-cross/homebrew-avr

ladislas
ladislas

avr-gdb: Symbol format `elf32-avr' unknown.

I've been scratching my head over this for a while, but I cannot get the avr-gdb package here to load an elf file successfully. I tried a known-good incantation from http://blog.oddbit.com/post/2019-01-22-debugging-attiny-code-pt-1/, but something about elf32-avr is busted.

This is a repro with a simple, empty main.c (int main(void) { }):

$ avr-gcc -mmcu=atmega328p /tmp/main.c -o /tmp/main
$ avr-gdb /tmp/main
GNU gdb (GDB) 10.1
[snip]

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/main...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-avr' unknown.

Uninstalled and reinstalled avr-gdb, avr-gcc and avr-binutils from this tap. Tried various combinations of flags (-g, -Og, different CPUs, etc).

Is it possible that the part of the avr-gdb formula that skips BFD/opcodes causes this? https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gdb.rb#L43

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

avr-gdb: Symbol format `elf32-avr' unknown.

I've been scratching my head over this for a while, but I cannot get the avr-gdb package here to load an elf file successfully. I tried a known-good incantation from http://blog.oddbit.com/post/2019-01-22-debugging-attiny-code-pt-1/, but something about elf32-avr is busted.

This is a repro with a simple, empty main.c (int main(void) { }):

$ avr-gcc -mmcu=atmega328p /tmp/main.c -o /tmp/main
$ avr-gdb /tmp/main
GNU gdb (GDB) 10.1
[snip]

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/main...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-avr' unknown.

Uninstalled and reinstalled avr-gdb, avr-gcc and avr-binutils from this tap. Tried various combinations of flags (-g, -Og, different CPUs, etc).

Is it possible that the part of the avr-gdb formula that skips BFD/opcodes causes this? https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gdb.rb#L43

ladislas
ladislas

This should now be fixed thanks to @danapplegate!

I'll close the issue now.

Feel free to open a new one if needed.

pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

Unknown symbol format elf32-avr fix for avr-gdb

Added patch suggested by https://github.com/osx-cross/homebrew-avr/issues/251#issuecomment-879036177 to resolve issue loading avr elf files into avr-gdb.

Oct
6
2 weeks ago
push

ladislas push osx-cross/homebrew-avr

ladislas
ladislas

Apply .elf patch for binutils and gdb builds

ladislas
ladislas

Pin patch file url to specific git version

Closes #260.

Signed-off-by: osxCrossTestBot [email protected]

ladislas
ladislas

avr-binutils: update 2.36.1 bottle.

ladislas
ladislas

avr-gdb: update 10.1 bottle.

commit sha: ebfc542feab22d5035bd94b1c862867a295d1d7f

push time in 2 weeks ago
pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

Apply .elf patch for binutils and gdb builds

Applies the patch from #259 to the binutils and gdb formulae in order to fix #251.

Activity icon
issue

danapplegate issue comment osx-cross/homebrew-avr

danapplegate
danapplegate

Apply .elf patch for binutils and gdb builds

Applies the patch from #259 to the binutils and gdb formulae in order to fix #251.

danapplegate
danapplegate

@ladislas Ah, makes sense, thanks. Here you go!

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Apply .elf patch for binutils and gdb builds

Applies the patch from #259 to the binutils and gdb formulae in order to fix #251.

ladislas
ladislas

@danapplegate thanks for the PR!

To fix the issues, the following url must be used:

https://raw.githubusercontent.com/osx-cross/homebrew-avr/18d50ba2a168a3b90a25c96e4bc4c053df77d7dc/Patch/avr-binutils-elf-bfd-gdb-fix.patch
Oct
5
2 weeks ago
pull request

danapplegate pull request osx-cross/homebrew-avr

danapplegate
danapplegate

Apply .elf patch for binutils and gdb builds

Applies the patch from #259 to the binutils and gdb formulae in order to fix #251.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Add patch file for gdb .elf fix

Solves the issue raised by #251 by implementing the fix proposed by #255.

This PR simply includes the patch file. A subsequent PR will introduce the code that applies the patch to elf-gdb.h using the resulting Github URL created for the patch file.

push

ladislas push osx-cross/homebrew-avr

ladislas
ladislas

Add patch file for gdb .elf fix

ladislas
ladislas

:twisted_rightwards_arrows: Merge pull request #259 from danapplegate/master

commit sha: 18d50ba2a168a3b90a25c96e4bc4c053df77d7dc

push time in 2 weeks ago
pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

Add patch file for gdb .elf fix

Solves the issue raised by #251 by implementing the fix proposed by #255.

This PR simply includes the patch file. A subsequent PR will introduce the code that applies the patch to elf-gdb.h using the resulting Github URL created for the patch file.

Activity icon
issue

danapplegate issue comment osx-cross/homebrew-avr

danapplegate
danapplegate

avr-gdb: Symbol format `elf32-avr' unknown.

I've been scratching my head over this for a while, but I cannot get the avr-gdb package here to load an elf file successfully. I tried a known-good incantation from http://blog.oddbit.com/post/2019-01-22-debugging-attiny-code-pt-1/, but something about elf32-avr is busted.

This is a repro with a simple, empty main.c (int main(void) { }):

$ avr-gcc -mmcu=atmega328p /tmp/main.c -o /tmp/main
$ avr-gdb /tmp/main
GNU gdb (GDB) 10.1
[snip]

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/main...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-avr' unknown.

Uninstalled and reinstalled avr-gdb, avr-gcc and avr-binutils from this tap. Tried various combinations of flags (-g, -Og, different CPUs, etc).

Is it possible that the part of the avr-gdb formula that skips BFD/opcodes causes this? https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gdb.rb#L43

danapplegate
danapplegate
pull request

danapplegate pull request osx-cross/homebrew-avr

danapplegate
danapplegate

Add patch file for gdb .elf fix

Solves the issue raised by #251 by implementing the fix proposed by #255.

This PR simply includes the patch file. A subsequent PR will introduce the code that applies the patch to elf-gdb.h using the resulting Github URL created for the patch file.

Activity icon
fork

danapplegate forked osx-cross/homebrew-avr

⚡ Homebrew AVR Toolchain
danapplegate BSD 2-Clause "Simplified" License Updated
fork time in 2 weeks ago
Activity icon
issue

ladislas issue osx-cross/homebrew-avr

ladislas
ladislas

There is no `/usr/bin/sed` on GNU/Linux

fcd39d44 adds

    # Avoid reference to sed shim
    args << "SED=/usr/bin/sed"

to the configure args, but unfortunately on GNU/Linux sed lives at /bin/sed (Ubuntu 16.04 here, so at least all Debian-based distros). This results in a rather non-obvious build failure:

==> Installing osx-cross/avr/[email protected]
==> ../configure --target=avr --prefix=/home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1 --libdir=/home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1/li
==> make BOOT_LDFLAGS=-Wl,-headerpad_max_install_names
Last 15 lines from /home/linuxbrew/.cache/Homebrew/Logs/[email protected]/02.make:
configure: creating ./config.status
yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[1]: Leaving directory '/tmp/avr-gcc-8-20210306-19868-sdpji3/gcc-8.4.0/build'
Makefile:882: recipe for target 'all' failed
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/osx-cross/homebrew-avr/issues

that only becomes apparent after inspecting the full logs at /home/linuxbrew/.cache/Homebrew/Logs/[email protected]/01.configure

I'm not sure where ‘sed shim’ the comment refers to lives on macOS, so unfortunately I can't realistically provide a patch. Commenting out the above line builds for me:

…
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1: 1,745 files, 221.7MB, built in 11 minutes 15 seconds
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

There is no `/usr/bin/sed` on GNU/Linux

fcd39d44 adds

    # Avoid reference to sed shim
    args << "SED=/usr/bin/sed"

to the configure args, but unfortunately on GNU/Linux sed lives at /bin/sed (Ubuntu 16.04 here, so at least all Debian-based distros). This results in a rather non-obvious build failure:

==> Installing osx-cross/avr/[email protected]
==> ../configure --target=avr --prefix=/home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1 --libdir=/home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1/li
==> make BOOT_LDFLAGS=-Wl,-headerpad_max_install_names
Last 15 lines from /home/linuxbrew/.cache/Homebrew/Logs/[email protected]/02.make:
configure: creating ./config.status
yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[1]: Leaving directory '/tmp/avr-gcc-8-20210306-19868-sdpji3/gcc-8.4.0/build'
Makefile:882: recipe for target 'all' failed
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/osx-cross/homebrew-avr/issues

that only becomes apparent after inspecting the full logs at /home/linuxbrew/.cache/Homebrew/Logs/[email protected]/01.configure

I'm not sure where ‘sed shim’ the comment refers to lives on macOS, so unfortunately I can't realistically provide a patch. Commenting out the above line builds for me:

…
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/[email protected]/8.4.0_1: 1,745 files, 221.7MB, built in 11 minutes 15 seconds
ladislas
ladislas

@liyang I'll close the issue for now, feel free to reopen if needed.

Activity icon
issue

ladislas issue osx-cross/homebrew-avr

ladislas
ladislas

Missing support for newer MCUs

I work on one AVR project that's targeting AVR128DB28 and have found out that avr-gcc (even the newest version 11) doesn't support it (i.e avr/io.h is not defined for it in /usr/local/Cellar/[email protected]/11.1.0_1/avr/include/avr).

Here's a related avr freaks thread.

Is there any chance that header files for those newer MCUs will be added to avr-libc? I know this is not necessarily the place to ask this question but as of now, I'm just not sure where else to ask this.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Missing support for newer MCUs

I work on one AVR project that's targeting AVR128DB28 and have found out that avr-gcc (even the newest version 11) doesn't support it (i.e avr/io.h is not defined for it in /usr/local/Cellar/[email protected]/11.1.0_1/avr/include/avr).

Here's a related avr freaks thread.

Is there any chance that header files for those newer MCUs will be added to avr-libc? I know this is not necessarily the place to ask this question but as of now, I'm just not sure where else to ask this.

ladislas
ladislas

I'll close this issue for now, feel free to open PR to add new MCUs if needed, I'll happily review them.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

avr-gdb: Symbol format `elf32-avr' unknown.

I've been scratching my head over this for a while, but I cannot get the avr-gdb package here to load an elf file successfully. I tried a known-good incantation from http://blog.oddbit.com/post/2019-01-22-debugging-attiny-code-pt-1/, but something about elf32-avr is busted.

This is a repro with a simple, empty main.c (int main(void) { }):

$ avr-gcc -mmcu=atmega328p /tmp/main.c -o /tmp/main
$ avr-gdb /tmp/main
GNU gdb (GDB) 10.1
[snip]

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/main...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-avr' unknown.

Uninstalled and reinstalled avr-gdb, avr-gcc and avr-binutils from this tap. Tried various combinations of flags (-g, -Og, different CPUs, etc).

Is it possible that the part of the avr-gdb formula that skips BFD/opcodes causes this? https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gdb.rb#L43

ladislas
ladislas

Does someone want to take over #255 and the patch?

Activity icon
issue

ladislas issue osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

ladislas
ladislas

@SpyrosMourelatos did you manage to find a solution for your issue?

I'll close for now, feel free to reopen in the future if needed.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Request for adding avra(assembly compiler) to the formulae

As in the title, can you add avra, the AVR assembly compiler, to the homebrew-avr formulae?

ladislas
ladislas

closing as won't fix for the moment. Feel free to reopen #235 in the future if needed.

Activity icon
issue

ladislas issue osx-cross/homebrew-avr

ladislas
ladislas

Request for adding avra(assembly compiler) to the formulae

As in the title, can you add avra, the AVR assembly compiler, to the homebrew-avr formulae?

pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

Add AVRA

fix #221

I just created the initial scaffold and am not sure how to continue.

@ggoraa maybe you want to help?

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Add AVRA

fix #221

I just created the initial scaffold and am not sure how to continue.

@ggoraa maybe you want to help?

ladislas
ladislas

Alright, I'll close, feel free to reopen in the future if needed

Activity icon
issue

bartekpacia issue comment osx-cross/homebrew-avr

bartekpacia
bartekpacia

Add AVRA

fix #221

I just created the initial scaffold and am not sure how to continue.

@ggoraa maybe you want to help?

bartekpacia
bartekpacia

No, I somehow lost interest in it, sorry! And now I don't have free time at all.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Add AVRA

fix #221

I just created the initial scaffold and am not sure how to continue.

@ggoraa maybe you want to help?

Previous