Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-12

FPC won't bootstrap anymore on Mac OS X 10.3

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giulio Bernardi

Hi,
I tried to cycle the compiler on my ancient PowerMacintosh G3 and both 2.2.1 and 2.3.1 fail. The reason is that the assembler supplied with Xcode 1.5 (the last supported version for 10.3.9) doesn't like the output generated by fpc. I think that 2.2.0 is not affected since, when cycling, this happens: fpc 2.2.0 compiles the new rtl (no errors)
fpc 2.2.0 compiles ppc1 (no errors)
ppc1 compiles the rtl, and here apple's as complains: in a couple of places in sysutils.s as says: "Complex expression. Absolute segment assumed". Since it is a warning I made fpc call as with -W option: compilation continues but then the generated compiler is buggy and crashes.

To "solve" the problem I did a crude hack: I downloaded the apple cctools given with mac os x 10.4.10, I ran make, at some point it fails but the assembler has been built: if I replace my old /usr/libexec/gcc/darwin/ppc/as (cctools-525.obj~1) with the new one (cctools-622.5.1) everything goes fine.

bye,
Giulio
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply by email

Jonas Maebe
to Giulio Bernardi
Giulio Bernardi wrote 13 lines
I tried to cycle the compiler on my ancient PowerMacintosh G3 and both 2.2.1 and 2.3.1 fail. The reason is that the assembler supplied with Xcode 1.5 (the last supported version for 10.3.9) doesn't like the output generated by fpc. I think that 2.2.0 is not affected since, when cycling, this happens: fpc 2.2.0 compiles the new rtl (no errors) fpc 2.2.0 compiles ppc1 (no errors) ppc1 compiles the rtl, and here apple's as complains: in a couple of places in sysutils.s as says: "Complex expression. Absolute segment assumed". Since it is a warning I made fpc call as with -W option: compilation continues but then the generated compiler is buggy and crashes.

Please compile with -al, note the lines at which the assembler complains (it prints them as pascalsourcefile:linenr, but those line numbers are actually inside the assembler file) and create a bug report showing what kind of expressions cause problems.

Jonas

Reply by email

Giulio Bernardi
to Jonas Maebe
Show quoted text 5 lines
Please compile with -al, note the lines at which the assembler complains (it prints them as pascalsourcefile:linenr, but those line numbers are actually inside the assembler file) and create a bug report showing what kind of expressions cause problems.

Done:
http://bugs.freepascal.org/view.php?id=10541

bye,
Giulio
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply by email

Jonas Maebe
to Giulio Bernardi
Giulio Bernardi wrote
I could test only today. Now it works, thank you :)

Glad to hear! Can you close the bug report in that case? (to everyone: when you report a bug and it's marked as "resolved" and you can confirm the fix, then please always set the issue to "closed" afterwards to confirm it indeed worked for you)

Jonas

Reply by email