pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43698: ocaml does not build on snow leopard
>Number: 43698
>Category: pkg
>Synopsis: ocaml does not build on snow leopard
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 03 01:25:00 +0000 2010
>Originator: Matthew Sporleder
>Release: none
>Organization:
mspo.com
>Environment:
Darwin wednesday.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53
PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
file /mach_kernel
/mach_kernel: Mach-O universal binary with 3 architectures
/mach_kernel (for architecture x86_64): Mach-O 64-bit executable x86_64
/mach_kernel (for architecture i386): Mach-O executable i386
/mach_kernel (for architecture ppc): Mach-O executable ppc
>Description:
lang/ocaml does not build because the architecture is wrong on an amd64 macbook
pro running os x 10.6.
You get a bunch of this:
/tmp/camlasmfeed48.s:2213:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2214:32-bit absolute addressing is not supported for x86-64
/tmp/camlasmfeed48.s:2214:cannot do signed 4 byte relocation
/tmp/camlasmfeed48.s:2221:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2222:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2223:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2224:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2226:suffix or operands invalid for `push'
/tmp/camlasmfeed48.s:2239:32-bit absolute addressing is not supported for x86-64
/tmp/camlasmfeed48.s:2239:cannot do signed 4 byte relocation
/tmp/camlasmfeed48.s:2241:32-bit absolute addressing is not supported for x86-64
/tmp/camlasmfeed48.s:2241:cannot do signed 4 byte relocation
/tmp/camlasmfeed48.s:2243:32-bit absolute addressing is not supported for x86-64
And then
/tmp/camlasmfeed48.s:3332:Rest of line ignored. 1st junk character valued 95
(_).
/tmp/camlasmfeed48.s:3335:Unknown pseudo-op: .indirect_symbol
/tmp/camlasmfeed48.s:3335:Rest of line ignored. 1st junk character valued 95
(_).
/tmp/camlasmfeed48.s:3338:Unknown pseudo-op: .indirect_symbol
/tmp/camlasmfeed48.s:3338:Rest of line ignored. 1st junk character valued 95
(_).
File "pervasives.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasmfeed48.s
gnumake[2]: *** [pervasives.cmx] Error 2
gnumake[1]: *** [libraryopt] Error 2
gnumake: *** [opt] Error 2
*** Error code 2
Stop.
bmake: stopped in /Users/msporleder/Documents/development/pkgsrc/lang/ocaml
*** Error code 1
Stop.
bmake: stopped in /Users/msporleder/Documents/development/pkgsrc/lang/ocaml
>How-To-Repeat:
build lang/ocaml on a newish mac.
>Fix:
I'm not sure why this doesn't work:
# Stub libraries for functions missing from base system.
.if !empty(MACHINE_PLATFORM:MDarwin-*-powerpc) || \
!empty(MACHINE_PLATFORM:MDarwin-9.*-i386) || \
!empty(MACHINE_PLATFORM:MDarwin-10.*-x86_64) || \
But the following shows up on the ./configure step:
hardware architecture..... i386
target architecture ...... ia32 (asm level 2)
Whereas the natural ./configure gives:
hardware architecture..... amd64
target architecture ...... amd64 (asm level 1)
Home |
Main Index |
Thread Index |
Old Index