Opened 3 years ago

Closed 2 years ago

#62882 closed defect (duplicate)

avrdude @6.3_2: fails to link libavrdude.1.dylib

Reported by: cqexbesd (Andrew Stevenson) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc: g5pw (Aljaž Srebrnič)
Port: avrdude

Description

avrdude fails at the linking stage when trying to make libavrdude.1.dylib:

Undefined symbols for architecture x86_64:
  "_avrdude_message", referenced from:
      _arduino_read_sig_bytes in libavrdude_la-arduino.o
      _avr_tpi_chip_erase in libavrdude_la-avr.o
      _avr_tpi_program_enable in libavrdude_la-avr.o
      _avr_read_byte_default in libavrdude_la-avr.o
      _avr_read in libavrdude_la-avr.o
      _avr_write_page in libavrdude_la-avr.o
      _avr_write_byte_default in libavrdude_la-avr.o
      ...
  "_elf32_getehdr", referenced from:
      _fileio in libavrdude_la-fileio.o

and so on - see attached for full output.

Building by hand works (sudo -u macports env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure && sudo -u macports make in the MacPorts build directory). Looking at the different link lines, macports uses clang and building by hand is defaulting to gcc. Macports also uses -arch x86_64 twice and specifies -syslibroot which the successful build does not.

Attachments (1)

main.log (170.6 KB) - added by cqexbesd (Andrew Stevenson) 3 years ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by cqexbesd (Andrew Stevenson)

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by cqexbesd (Andrew Stevenson)

Im using OSX 11.3.1 BTW

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added
Resolution: duplicate
Status: newclosed

Duplicate of #62520.

Note: See TracTickets for help on using tickets.