Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004930OCamlOCaml generalpublic2009-11-26 13:382009-11-26 16:31
Reportermonipol 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.1 
Target VersionFixed in Version3.11.2+dev 
Summary0004930: Patch for 0004841 doesn't solve the problem on PowerPC processors
DescriptionWhile trying to build Unison on Mac OS X, PowerPC:

    /Developer/usr/bin/gcc-4.0 -arch ppc -L/sw/src/fink.build/unison-aqua-2.27.57-1008/unison-2.13.16/uimac/build/Default -F/sw/src/fink.build/unison-aqua-2.27.57-1008/unison-2.13.16/uimac/build/Default -filelist /sw/src/fink.build/unison-aqua-2.27.57-1008/unison-2.13.16/uimac/build/uimac.build/Default/uimac.build/Objects-normal/ppc/Unison.LinkFileList -mmacosx-version-min=10.5 /sw/src/fink.build/unison-aqua-2.27.57-1008/unison-2.13.16/uimac/../unison-blob.o -L/sw/lib/ocaml -lunix -lstr -lasmrun -framework Cocoa -framework Security -o /sw/src/fink.build/unison-aqua-2.27.57-1008/unison-2.13.16/uimac/build/Default/Unison.app/Contents/MacOS/Unison
Undefined symbols:
  "_caml_apply2", referenced from:
      _caml_callback2_exn in libasmrun.a(power.o)
      _caml_callback2_exn in libasmrun.a(power.o)
  "_caml_apply3", referenced from:
      _caml_callback3_exn in libasmrun.a(power.o)
      _caml_callback3_exn in libasmrun.a(power.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
** BUILD FAILED **
Additional InformationThe fix in the 3.11 bugfix branch for i386 and amd64 does not apply to powerpc.

From asmcomp/i386/emit.mlp:

  if macosx
  && not !Clflags.output_c_object
  && is_generic_function fundecl.fun_name
  then (* PR#4690 *)
    ` .private_extern {emit_symbol fundecl.fun_name}\n`
  else
    ` .globl {emit_symbol fundecl.fun_name}\n`;

whilst in asmcomp/power/emit.mlp:

  if Config.system = "rhapsody" && is_generic_function fundecl.fun_name
  then (* PR#4690 *)
    ` .private_extern {emit_symbol fundecl.fun_name}\n`
  else
  ` .globl {emit_symbol fundecl.fun_name}\n`;
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005180)
xleroy (administrator)
2009-11-26 16:31

Thanks for spotting this. The fix for i386 and amd64 is now propagated to the powerpc code generator. Will go in release 3.11.2.

- Issue History
Date Modified Username Field Change
2009-11-26 13:38 monipol New Issue
2009-11-26 16:31 xleroy Note Added: 0005180
2009-11-26 16:31 xleroy Status new => closed
2009-11-26 16:31 xleroy Resolution open => fixed
2009-11-26 16:31 xleroy Fixed in Version => 3.11.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker