pkgsrc-Bugs archive

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

pkg/49417: fix lang/ocaml build issue on Darwin PowerPC prior to 9



>Number:         49417
>Category:       pkg
>Synopsis:       fix lang/ocaml build issue on Darwin PowerPC prior to 9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 25 10:15:00 +0000 2014
>Originator:     Sevan Janiyan
>Release:        pkgsrc-current
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Build fails on Tiger PowerPC with
gcc -pipe -O2 -I/usr/include -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT  -DDB_DBM_HSEARCH -isystem /usr/include -I/usr/include  -c -o prims.o prims.c
gcc -Wl,-no_compact_unwind  -o ocamlrun \
	  prims.o libcamlrun.a -L/usr/lib -L/usr/pkg/lib    -lcurses -lpthread
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: unknown flag: -no_compact_unwind
collect2: ld returned 1 exit status
Makefile:29: recipe for target 'ocamlrun' failed
gmake[2]: *** [ocamlrun] Error 1
gmake[2]: Leaving directory '/private/tmp/lang/ocaml/work/ocaml-4.02.0/byterun'
Makefile:186: recipe for target 'coldstart' failed
gmake[1]: *** [coldstart] Error 2
gmake[1]: Leaving directory '/private/tmp/lang/ocaml/work/ocaml-4.02.0'
Makefile:135: recipe for target 'world' failed
gmake: *** [world] Error 2

Amend the version match string in hacks.mk to apply to versions 9 and prior & not specifically to 9.
>How-To-Repeat:

>Fix:
Index: hacks.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/ocaml/hacks.mk,v
retrieving revision 1.4
diff -u -r1.4 hacks.mk
--- hacks.mk    9 Oct 2014 19:08:28 -0000       1.4
+++ hacks.mk    25 Nov 2014 10:05:42 -0000
@@ -6,7 +6,7 @@
 .include "../../mk/compiler.mk"
 
 ### [Fri Jan 17 18:06:18 JST 2014 : pho]
-### The linker comes with Darwin 9 does not recognize the option
+### The linker that comes with Darwin 9 & prior does not recognize the option
 ### "-no_compact_unwind" since compact unwind information is only
 ### introduced (and made default) as of Darwin 10.  Note that this
 ### can't be worked around with transformation
@@ -14,7 +14,7 @@
 ### into utils/config.ml and will later be used by the OCaml compiler
 ### itself.
 ###
-.if !empty(MACHINE_PLATFORM:MDarwin-9.*)
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-9].*-*)
 PKG_HACKS+=    no_compact_unwind
 SUBST_CLASSES+=        no_compact_unwind
 SUBST_MESSAGE.no_compact_unwind= Removing -no_compact_unwind from linker options



Home | Main Index | Thread Index | Old Index