GCC 7.5.0 on PPC Mac OS X 10.4.11/Tiger (ppc-apple-darwin8) reports "ld: bl out of range ..."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Almost ¼ century old Mac, but quite modern GCC7 and MuPDF 1.24.2, the problem comes up when creating shared libmupdf.dylib from a few hundred object files:

	g++-mp-7 -v -save-temps -Wl,-dead_strip -Wl,-s -o build/shared-release/libmupdf.dylib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -lm -dynamiclib -Wl,-install_name,/opt/local/lib/libmupdf.dylib -L/opt/local/lib -lfreetype -L/opt/local/lib -lgumbo -L/opt/local/lib -lharfbuzz -L/opt/local/lib -ljpeg   -L/opt/local/lib -lz -ljbig2dec -L/opt/local/lib -lopenjp2  -L/opt/local/libexec/openssl3/lib -lcrypto

leads to the failure:

	ld: bl out of range (-47397244 max is +/-16M) from _convert_pixmap_for_painting.isra.6 at 0x02D38248 in __text_cold of build/shared-release/source/fitz/draw-device.o to _fz_colorspace_is_device_n$island$3 at 0x00004900 in __text of  build/shared-release/libmupdf.dylib in _convert_pixmap_for_painting.isra.6 from build/shared-release/source/fitz/draw-device.o
	collect2: error: ld returned 1 exit status


Is there a simple way to work around that failure, by using different options to compile draw-device.c or to build the shared library? I am more of an amateur then a pro… (but can provide much more files and information if needed)

The ld programme is not from GCC7 suite (I presume), from invocation as "gcc-mp-7 -v":

	@(#)PROGRAM:ld  PROJECT:ld64-97.17
	configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7


--

Greetings

  Pete

Sending unsolicited commercial eMail to this account incurs a fee of € 500 per message and acknowledges the legality of this contract.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux