New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32649 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

erlang R15B build fails on 10.5.8 ppc (powerpc-apple-darwin9.8.0)

Reported by: macports@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: ryandesign@…
Port: erlang

Description (last modified by macsforever2000@…) (diff)

The error is this:

:info:build powerpc-apple-darwin9.8.0/opt/smp/hipe_ppc_bifs.S:457:Parameter syntax error (parameter 3)

Full log is attached.

Attachments

main.log (338.2 KB) - added by macports@… 2 years ago.
Portfile.diff (482 bytes) - added by ryandesign@… 2 years ago.
proposed patch
patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff (1.8 KB) - added by ryandesign@… 2 years ago.
proposed patch

Change History

Changed 2 years ago by macports@…

comment:1 Changed 2 years ago by macsforever2000@…

  • Owner changed from macports-tickets@… to bfulgham@…
  • Description modified (diff)
  • Port changed from erlang R15B_1 to erlang

comment:2 Changed 2 years ago by ryandesign@…

  • Keywords haspatch added

Confirmed on my Leopard G4. The problem seems to be that some of the lines they've added to the assembler source files in R15B contain comments, like this:

	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]

And the assembler doesn't like those comments. Another report of this kind of problem is here. There, they fixed the problem by removing the comments, but I think the problem is just that "#" is not a valid start-of-comment character in this context, at least not for the assembler that's on PowerPC Macs. I Googled examples of PowerPC assembly code, and they use ";" as the start-of-comment character. Here's a patch that makes this change, and now it builds for me. I haven't tested on Tiger yet.

Changed 2 years ago by ryandesign@…

proposed patch

Changed 2 years ago by ryandesign@…

proposed patch

comment:3 Changed 2 years ago by ryandesign@…

  • Cc ryandesign@… added

comment:4 Changed 21 months ago by smbmacportstrac@…

I just verified that this patch fixes the compile problem. Please commit this fix. It is still needed for 10.5.8 ppc. Thank you.

comment:5 Changed 21 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Committed in r96434.

Someone should still report this problem to the developers of erlang.

Note: See TracTickets for help on using tickets.