Opened 17 years ago

Closed 10 years ago

Last modified 19 months ago

#14800 closed defect (wontfix)

powerpc mono build fails

Reported by: jean-philippe.humbert@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ppc Cc: blb@…, sbplrports@…, de5ton56@…, raphael@…, ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager), khepler
Port: mono

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I can´t build mono 1.9:

--->  Building mono with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/work/mono-1.9" && make all " returned error 2
Command output: darwin_stop_world.c:259: error: 'ppc_thread_state_t' has no member named '__r6'
darwin_stop_world.c:260: error: 'ppc_thread_state_t' has no member named '__r7'
darwin_stop_world.c:261: error: 'ppc_thread_state_t' has no member named '__r8'
darwin_stop_world.c:262: error: 'ppc_thread_state_t' has no member named '__r9'
darwin_stop_world.c:263: error: 'ppc_thread_state_t' has no member named '__r10'
darwin_stop_world.c:264: error: 'ppc_thread_state_t' has no member named '__r11'
darwin_stop_world.c:265: error: 'ppc_thread_state_t' has no member named '__r12'
darwin_stop_world.c:266: error: 'ppc_thread_state_t' has no member named '__r13'
darwin_stop_world.c:267: error: 'ppc_thread_state_t' has no member named '__r14'
darwin_stop_world.c:268: error: 'ppc_thread_state_t' has no member named '__r15'
darwin_stop_world.c:269: error: 'ppc_thread_state_t' has no member named '__r16'
darwin_stop_world.c:270: error: 'ppc_thread_state_t' has no member named '__r17'
darwin_stop_world.c:271: error: 'ppc_thread_state_t' has no member named '__r18'
darwin_stop_world.c:272: error: 'ppc_thread_state_t' has no member named '__r19'
darwin_stop_world.c:273: error: 'ppc_thread_state_t' has no member named '__r20'
darwin_stop_world.c:274: error: 'ppc_thread_state_t' has no member named '__r21'
darwin_stop_world.c:275: error: 'ppc_thread_state_t' has no member named '__r22'
darwin_stop_world.c:276: error: 'ppc_thread_state_t' has no member named '__r23'
darwin_stop_world.c:277: error: 'ppc_thread_state_t' has no member named '__r24'
darwin_stop_world.c:278: error: 'ppc_thread_state_t' has no member named '__r25'
darwin_stop_world.c:279: error: 'ppc_thread_state_t' has no member named '__r26'
darwin_stop_world.c:280: error: 'ppc_thread_state_t' has no member named '__r27'
darwin_stop_world.c:281: error: 'ppc_thread_state_t' has no member named '__r28'
darwin_stop_world.c:282: error: 'ppc_thread_state_t' has no member named '__r29'
darwin_stop_world.c:283: error: 'ppc_thread_state_t' has no member named '__r30'
darwin_stop_world.c:284: error: 'ppc_thread_state_t' has no member named '__r31'
make[3]: *** [darwin_stop_world.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments (4)

mono_debug.txt.zip (20.3 KB) - added by jean-philippe.humbert@… 16 years ago.
mono_debug.txt (191.7 KB) - added by markus.falb@… 16 years ago.
mono 2.4 debug build log
Portfile (2.8 KB) - added by vike2000 15 years ago.
main.log (359.5 KB) - added by khepler 11 years ago.
@3.2.5 build failure on Leopard/ppc

Download all attachments as: .zip

Change History (33)

comment:1 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainer.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: mono added

comment:3 Changed 16 years ago by blb@…

Cc: blb@… added

mono is currently at 2.4, is this still an issue?

comment:4 Changed 16 years ago by jean-philippe.humbert@…

I have tried again and I have the same Problem With Macports 1.7.1:

sudo port clean --all mono
--->  Cleaning mono
sudo port install mono
--->  Fetching mono
--->  Attempting to fetch mono-2.4.tar.bz2 from http://trd.no.distfiles.macports.org/mono
--->  Attempting to fetch mono-2.4.tar.bz2 from http://arn.se.distfiles.macports.org/mono
--->  Verifying checksum(s) for mono
--->  Extracting mono
--->  Applying patches to mono
--->  Configuring mono
--->  Building mono
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/work/mono-2.4" && make all " returned error 2
Command output: exceptions-ppc.c: In function 'mono_arch_sigctx_to_monoctx':
exceptions-ppc.c:601: error: dereferencing pointer to incomplete type
exceptions-ppc.c:602: error: dereferencing pointer to incomplete type
exceptions-ppc.c:603: error: dereferencing pointer to incomplete type
exceptions-ppc.c:604: error: dereferencing pointer to incomplete type
exceptions-ppc.c: In function 'mono_arch_monoctx_to_sigctx':
exceptions-ppc.c:612: error: dereferencing pointer to incomplete type
exceptions-ppc.c:613: error: dereferencing pointer to incomplete type
exceptions-ppc.c:614: error: dereferencing pointer to incomplete type
exceptions-ppc.c:615: error: dereferencing pointer to incomplete type
exceptions-ppc.c: In function 'mono_arch_ip_from_context':
exceptions-ppc.c:622: error: dereferencing pointer to incomplete type
exceptions-ppc.c: In function 'mono_arch_handle_altstack_exception':
exceptions-ppc.c:641: warning: initialization from incompatible pointer type
exceptions-ppc.c:650: error: dereferencing pointer to incomplete type
exceptions-ppc.c:670: error: dereferencing pointer to incomplete type
exceptions-ppc.c:673: warning: assignment from incompatible pointer type
exceptions-ppc.c:674: error: invalid application of 'sizeof' to incomplete type 'os_ucontext' 
exceptions-ppc.c:680: error: dereferencing pointer to incomplete type
exceptions-ppc.c:680: error: dereferencing pointer to incomplete type
exceptions-ppc.c:689: error: dereferencing pointer to incomplete type
exceptions-ppc.c:691: error: dereferencing pointer to incomplete type
exceptions-ppc.c:692: error: dereferencing pointer to incomplete type
exceptions-ppc.c:693: error: dereferencing pointer to incomplete type
exceptions-ppc.c:694: error: dereferencing pointer to incomplete type
make[4]: *** [exceptions-ppc.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:5 Changed 16 years ago by blb@…

10.4 or 10.5? And I'm guessing PowerPC? Can you rerun with debug enabled and attach the output:

sudo port -d install mono  2>&1 | tee ~/Desktop/mono_debug.txt

Changed 16 years ago by jean-philippe.humbert@…

Attachment: mono_debug.txt.zip added

comment:6 Changed 16 years ago by jean-philippe.humbert@…

I have attached the log file. I have tested on a IMAC G5 with Leopard

Changed 16 years ago by markus.falb@…

Attachment: mono_debug.txt added

mono 2.4 debug build log

comment:7 Changed 16 years ago by markus.falb@…

i also added an attechment. mono 2.4_0 under os-x 10.5 on ppc.

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 Changed 15 years ago by tobypeterson

Summary: port mono 1.9 does not build[ppc] port mono 1.9 does not build

comment:10 Changed 15 years ago by tobypeterson

Summary: [ppc] port mono 1.9 does not buildpowerpc mono build fails

comment:11 Changed 15 years ago by sbplrports@…

Cc: sbplrports@… added

Cc Me!

comment:12 Changed 15 years ago by de5ton56@…

Cc: de5ton56@… added

Cc Me!

comment:13 Changed 15 years ago by raphael@…

Cc: raphael@… added

Cc Me!

comment:14 Changed 15 years ago by vike2000

after some private re-investigation of this error and the headers to consider, i went - taking for granted the portfile made use of all patchfiles - to double-check that patch-mono-mini-mini-ppc.h.diff did good changes and when i had seen that it did
i had to do the changes manually - had, considering that i went to check the portfile not until the port compiled successfully with these changes
it turns out the patch-mono-mini-mini-ppc.h.diff was never appended to 'patchfiles'

attaching an updated portfile with patch-mono-mini-mini-ppc.h.diff added after patch-mono-mini-mini-x86.h.diff under the 'platform darwin 9' block as in:

platform darwin 9 {
    configure.cflags-append    -D_NONSTD_SOURCE
    configure.cxxflags-append    -D_NONSTD_SOURCE
    patchfiles-append \
        patch-interp.h.diff \
        patch-sys-mman.c.diff \
        patch-mono-mini-mini-x86.h.diff \
        patch-mono-mini-mini-ppc.h.diff \
        patch-libgc-darwin_stop_world.c.diff
}

(since i complied mine with manual changes to the source this portfile could be considered untested)

else just a lot of warnings; among common C inconsistencies (and even more so in the c#sharp compiling) this, that seemed odd to me, but what do i know:

 ** Warning: System.dll built without parts that depend on: System.Xml.dll

btw i wanted to install this because i couldn't find mdb in mono's precomiled os-x download and calling mono_object_describe in gdb produces:

debug-helpers.c: No such file or directory.

but now i cant find mdb in this port either, gdb /opt/local/bin/mono produces a lot of warnings about not finding files in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/work/mono-2.4.2.3/mono/mini and p mono_debug_print_vars produces

 Unable to call function "mono_debug_print_vars" at 0x5aed0: no return type information available

*sigh*

pardon my grammar/vocabulary - im a little tired (plus i'm an occasionally quirky swede)

Changed 15 years ago by vike2000

Attachment: Portfile added

comment:15 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Do you still see the problem with mono 2.6.3?

comment:16 Changed 14 years ago by jean-philippe.humbert@…

Sorry I can´t test it anymore because I only have Intel-Macs now.

comment:17 Changed 14 years ago by jmroot (Joshua Root)

Keywords: ppc added; mono removed

comment:18 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Is this still a problem with mono @2.10.6?

comment:19 in reply to:  18 Changed 13 years ago by raphael-st (Raphael Straub)

Replying to ryandesign@…:

Is this still a problem with mono @2.10.6?

Yes, I still have the same problem with mono @2.10.6 on Mac OS X 10.5.8 ppc.

comment:20 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:21 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

has this been reported upstream? I doubt anyone here will be fixing it.

comment:22 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Is this still a problem with mono @3.2.5? If so please report it to the developers of mono.

comment:23 Changed 11 years ago by jean-philippe.humbert@…

Sorry but after 5 years I don't use mono anymore and don't one a powerpc computer to test 3.2.5 again.

comment:24 Changed 11 years ago by khepler

I've had mono @2.10.9_0 installed on my PowerBook G4 for an indeterminate amount of time. Trying to build @3.2.5 fails with:

sgen-os-mach.c: In function 'sgen_suspend_thread':
sgen-os-mach.c:85: error: incompatible types in assignment

I tried a couple different version of GCC in addition to the default. GCC 4.5 fails during the build without printing an error. GCC 4.8 doesn't pass the configure checks ("C compiler can't create executables"). Can try Clang 3.2 and 3.3 upon request (I have both installed), but I don't believe 3.3 works on PowerPC.

Changed 11 years ago by khepler

Attachment: main.log added

@3.2.5 build failure on Leopard/ppc

comment:25 Changed 11 years ago by khepler

Cc: khepler@… added

Cc Me!

comment:26 in reply to:  24 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to khepler@…:

I've had mono @2.10.9_0 installed on my PowerBook G4 for an indeterminate amount of time. Trying to build @3.2.5 fails with:

sgen-os-mach.c: In function 'sgen_suspend_thread':
sgen-os-mach.c:85: error: incompatible types in assignment

Ok, I see the same problem on Leopard ppc. Please report this problem to the developers of mono so they can fix it, and tell us the URL of the bug report once you've done that.

comment:28 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

They have indicated that Mono 3 requires Lion or newer, thus excluding PowerPC machines.

comment:29 Changed 19 months ago by barracuda156

Looks like this port was broken forever. Anyway, here is the issue: https://github.com/mono/mono/issues/21649

Note: See TracTickets for help on using tickets.