Opened 4 years ago

Last modified 3 years ago

#61546 new defect

avr-gdb fails to build on macOS 11 Big Sur

Reported by: neilt (Neil Tiffin) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: avr-gdb


The apparent first error.

:info:build /usr/bin/clang -c -DHAVE_CONFIG_H    -I. -I. -DRL_LIBRARY_VERSION='"6.2"' -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 bind.c
:info:build yes
:info:build checking minix/config.h usability... rltty.c:83:7: error: implicit declaration of function 'ioctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build   if (ioctl (tty, TIOCGWINSZ, &w) == 0)
:info:build       ^
:info:build rltty.c:720:3: error: implicit declaration of function 'ioctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build   ioctl (fildes, TIOCSTART, 0);
:info:build   ^
:info:build rltty.c:759:3: error: implicit declaration of function 'ioctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build   ioctl (fildes, TIOCSTOP, 0);
:info:build   ^
:info:build rm -f isearch.o
:info:build 3 errors generated.
ProductName:	macOS
ProductVersion:	11.0.1
BuildVersion:	20B28

Attachments (1)

main.log (100.4 KB) - added by neilt (Neil Tiffin) 4 years ago.
log file

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by neilt (Neil Tiffin)

Attachment: main.log added

log file

comment:1 Changed 3 years ago by shaze (Scott Hazelhurst)

I have the same issue -- Big Sur 11.4, port 2.7.1

comment:2 Changed 3 years ago by reneeotten (Renee Otten)

perhaps updating to the latest version (10.2) would help to resolve these issues

comment:3 Changed 3 years ago by neilt (Neil Tiffin)

I can confirm that changing the following lines in the Portfiles allows it to compile to apparent completion and installs. Had a lot of non-fatal errors, but it did not stop the compile or install. This is at least better that what exists as of 16 June 2021.

version             10.2
checksums           rmd160  dccb69f3f90b8f6d00cf0485162673bde9c299ad \
                    sha256  aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
iMac macports_local % avr-gdb
Python Exception <class 'ModuleNotFoundError'> No module named 'gdb': 
avr-gdb: warning: 
Could not load the Python gdb module from `/opt/local/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin20.5.0 --target=avr".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word".
Note: See TracTickets for help on using tickets.