Opened 10 years ago

Last modified 2 years ago

#46469 assigned defect

libgcc-devel @5-20150104: ld: absolute addressing (perhaps -mdynamic-no-pic) used in _byte_common_op_match_null_string_p from ../libiberty/pic/libiberty.a(regex.o) not allowed in slidable image

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: leopard powerpc Cc: larryv (Lawrence Velázquez), mascguy (Christopher Nielsen), michaelld (Michael Dickens), cjones051073 (Chris Jones)
Port: libgcc-devel

Description

Building libgcc-devel fails (after 13.67 hours) on my PowerBook G4 running Leopard, with this error:

ld: absolute addressing (perhaps -mdynamic-no-pic) used in _byte_common_op_match_null_string_p from ../libiberty/pic/libiberty.a(regex.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs

Attachments (1)

libgcc-devel-5-20150104.main.log.bz2 (170.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

comment:1 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned

comment:2 Changed 3 years ago by michaelld (Michael Dickens)

Is this still relevant with gcc-devel now at 12-20210801?

comment:3 Changed 3 years ago by kencu (Ken)

I have built up to gcc11 on Tiger i386, bootstrapping it with the gcc7-bootstrap port I am working on.

I haven't tried Tiger/Leopard PPC, but I believe it will work as Iain says it does.

When bootstrapping with clang, the i386 builds of all newer gcc versions (gcc7+ I think) are broken without this patch:

https://github.com/macports/macports-ports/blob/master/lang/gcc11/files/patch-iains-i686-clang-bootstrap.diff

comment:4 in reply to:  3 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy michaelld cjones051073 added

Replying to kencu:

I have built up to gcc11 on Tiger i386, bootstrapping it with the gcc7-bootstrap port I am working on.

I haven't tried Tiger/Leopard PPC, but I believe it will work as Iain says it does.

When bootstrapping with clang, the i386 builds of all newer gcc versions (gcc7+ I think) are broken without this patch:

https://github.com/macports/macports-ports/blob/master/lang/gcc11/files/patch-iains-i686-clang-bootstrap.diff

I haven't looked at the history of gcc-devel and libgcc-devel, as they've evolved significantly over the past 13 months. But is this still an issue?

Note: See TracTickets for help on using tickets.