[MacPorts] #52468: gtk3 3.22.0_0 build fails on 10.5 ppc
MacPorts
noreply at macports.org
Wed Dec 28 20:52:22 CET 2016
#52468: gtk3 3.22.0_0 build fails on 10.5 ppc
-------------------------+-----------------------------
Reporter: dgonyier@… | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: leopard powerpc
Port: gtk3 |
-------------------------+-----------------------------
Comment (by ballapete):
With `gtk33.22.5_0` I get on PPC Leopard a differrnt error:
{{{
ld: illegal text-relocation to cstring in .libs/libgdk_3_la-gdkcolor.o
from _gdk_color_copy in .libs/libgdk_3_la-gdkcolor.o for architecture ppc
}}}
There seems to exist a cure, http://stackoverflow.com/questions/6650178
/illegal-text-reloc-to-non-lazy-ptr-error-while-building-in-xcode-4-with-
libav-l, but setting in Portfile
{{{
if {[variant_isset universal]} {
foreach arch ${configure.universal_archs} {
lappend merger_build_args(${arch}) CC='${configure.cc} -arch
${arch}'
lappend merger_build_args(${arch}) CC_FOR_BUILD='${configure.cc}
-arch ${arch} -Wl,-read_only_relocs suppress'
lappend merger_build_args(${arch}) LDFLAGS='${configure.ldflags}
-arch ${arch} -read_only_relocs suppress'
lappend merger_destroot_args(${arch}) CC='${configure.cc} -arch
${arch}'
lappend merger_destroot_args(${arch})
CC_FOR_BUILD='${configure.cc} -arch ${arch} -Wl,-read_only_relocs
suppress'
lappend merger_destroot_args(${arch})
LDFLAGS='${configure.ldflags} -arch ${arch} -read_only_relocs suppress'
}
} else {
build.args-append CC="${configure.cc} ${configure.cc_archflags}"
\
CC_FOR_BUILD="${configure.cc}
${configure.cc_archflags} -Wl,-read_only_relocs suppress" \
LDFLAGS="${configure.ldflags} -read_only_relocs suppress"
destroot.args-append CC="${configure.cc} ${configure.cc_archflags}"
\
CC_FOR_BUILD="${configure.cc}
${configure.cc_archflags} -Wl,-read_only_relocs suppress" \
LDFLAGS="${configure.ldflags} -read_only_relocs suppress"
}
}}}
leads to only a few uses of `-read_only_relocs suppress` … At least the
error is consistent.
--
Ticket URL: <https://trac.macports.org/ticket/52468#comment:48>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list