Opened 13 months ago

Last modified 8 months ago

#68368 assigned defect

fpc @3.2.2: ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixups

Reported by: kwolcott Owned by: kamischi (Karl-Michael Schindler)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: fpc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

fpc build from source fails during linking:

ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixups

Attachments (1)

main.log.bz2 (44.1 KB) - added by kwolcott 13 months ago.

Download all attachments as: .zip

Change History (9)

Changed 13 months ago by kwolcott

Attachment: main.log.bz2 added

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sonoma added; link failure alignment removed
Owner: set to kamischi
Status: newassigned
Summary: fpc build from source fails during linking: ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixupsfpc @3.2.2: ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixups
Version: 2.8.1
ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixups
An error occurred while linking 
pp.pas(252,36) Error: Error while linking
pp.pas(252,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

comment:2 Changed 13 months ago by kencu (Ken)

looks like another duplicate of #64035

comment:3 Changed 13 months ago by kamischi (Karl-Michael Schindler)

My current point of knowledge: The error shows up after updating Xcode 14 to 15 on macOS 13 (Ventura) and sure enough macOS 14 (Sonoma) is equally hit. I tried a series of things to fix this, but did not manage it. At the moment, I see no other way than to limit the port to macOS < 13 and wait until upstream comes up with a solution. #64035 is slightly different but definitely related.

comment:4 Changed 13 months ago by kamischi (Karl-Michael Schindler)

I found that the alignment error results from setting the option -WM13.0. By simply replacing this with -WM11.0 resolves the problem on macOS 13 (Ventura). My latest PR takes care of this. macOS 14 needs a check.

comment:5 Changed 9 months ago by kamischi (Karl-Michael Schindler)

-WM11.0 also fixes it for Sonoma, i.e. macOS 14. Issue can be closed as fixed with version 3.2.2_1.

comment:6 Changed 9 months ago by kwolcott

The build from source was successful. Thanks! Haven't tried to use the Pascal compiler yet...

comment:7 Changed 8 months ago by kwolcott

Thanks for your time and effort! I have successfully used the fpc port for some time now.

comment:8 Changed 8 months ago by kamischi (Karl-Michael Schindler)

Thanks for your feed back. It is so nice that someone else can use the stuff I care for.

Note: See TracTickets for help on using tickets.