Sanket Sharma | 4 Jun 2009 19:34
Picon

Build fails on Mac OS X 10.3

Hi,

I am playing around with the source for some time now with the
intentions of porting it to a 64 bit platform, if the complexity
doesn't kills me first.

However, I'm stuck at the very first step - I can't build it on my
Mac. The build fails with the following message
(/ack-6.0pre3/lang/pc/comp/pmfile I guess):

gcc "-g"   -o "/tmp/ack-temp/pmcache/615/em_pc"
"/tmp/ack-temp/pmcache/574-LLlex.o"
"/tmp/ack-temp/pmcache/575-LLmessage.o"
"/tmp/ack-temp/pmcache/576-body.o"
"/tmp/ack-temp/pmcache/577-chk_expr.o"
"/tmp/ack-temp/pmcache/578-code.o"
"/tmp/ack-temp/pmcache/579-cstoper.o"
"/tmp/ack-temp/pmcache/580-def.o" "/tmp/ack-temp/pmcache/581-desig.o"
"/tmp/ack-temp/pmcache/582-enter.o"
"/tmp/ack-temp/pmcache/583-error.o" "/tmp/ack-temp/pmcache/584-idf.o"
"/tmp/ack-temp/pmcache/585-input.o"
"/tmp/ack-temp/pmcache/586-label.o"
"/tmp/ack-temp/pmcache/587-lookup.o"
"/tmp/ack-temp/pmcache/588-main.o" "/tmp/ack-temp/pmcache/589-misc.o"
"/tmp/ack-temp/pmcache/590-node.o"
"/tmp/ack-temp/pmcache/591-options.o"
"/tmp/ack-temp/pmcache/592-progs.o"
"/tmp/ack-temp/pmcache/593-readwrite.o"
"/tmp/ack-temp/pmcache/594-scope.o" "/tmp/ack-temp/pmcache/595-stab.o"
"/tmp/ack-temp/pmcache/596-tokenname.o"
(Continue reading)

Sanket Sharma | 4 Jun 2009 19:45
Picon

Build fails on Mac OS X 10.3

Okay...it seems like its they way GCC on darwin handles externs ..not
sure though..still working on it.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
Sanket Sharma | 5 Jun 2009 00:49
Picon

More compilation issues

Hi,

I got over the previous one by adding a -Wl,-undefined,warning to the
Linker options, but it now complains of the following:

/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/LLmessage.c:60:
warning: assignment makes pointer from integer without a cast
gcc "-g" "-I/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp"
"-I/tmp/ack-temp/pmcache/615" "-I/tmp/ack-temp/pmcache/616"
"-I/tmp/ack-temp/pmcache/617" "-I/tmp/ack-temp/pmcache/618"
"-I/tmp/ack-temp/pmcache/619" "-I/tmp/ack-temp/pmcache/621"
"-I/Users/Sanket/Desktop/ack-6.0pre3/h"
"-I/Users/Sanket/Desktop/ack-6.0pre3/modules/h"
"-I/tmp/ack-temp/headers/" "-DSTATIC=static"  -c -o
"/tmp/ack-temp/pmcache/624-error.o"
"/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c"
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c: In function 'fatal':
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c:163: error:
'S_EXIT' undeclared (first use in this function)
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c:163: error:
(Each undeclared identifier is reported only once
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c:163: error: for
each function it appears in.)
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c: In function 'crash':
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c:179: error:
'S_EXIT' undeclared (first use in this function)
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c: In function '_error':
/Users/Sanket/Desktop/ack-6.0pre3/lang/m2/comp/error.c:408: error:
'STDERR' undeclared (first use in this function)
rm -f "/tmp/ack-temp/pmcache/624-error.o"
(Continue reading)

David Given | 5 Jun 2009 00:59

Re: More compilation issues


Sanket Sharma wrote:
[...]
> I got over the previous one by adding a -Wl,-undefined,warning to the
> Linker options

Good!

> but it now complains of the following:

Not so good.

[...]
> I'm looking into it right now, but just wondering if anyone has
> successfully compiled this on any platform?

I did have this compiling on OSX back when the Sourceforge compile farm
was up and running, so I know it *should* work. Unfortunately the bit
rot has probably killed it by now.

The latest errors look like they could be due to header filename
collisions --- S_EXIT is defined in modules/src/system/system.h, but
then included with <system.h>. If OSX has such a header, ACK will pick
up the wrong one. The correct fix in that situation is to change ACK to
include "system.h". There are only 87 of them...

Incidentally, with regard to 64 bit compatibility, the ACK is rather
picky about word length. It's full of old K&Risms like casting pointers
to int and back, and it does odd things with bitfields in words that may
need adjusting. I'm not saying it's impossible, just that it'll be
(Continue reading)

Sanket Sharma | 5 Jun 2009 15:08
Picon

Re: More compilation issues

Hi,

Thank you for your response.

I eventually got past that error late last night and finally landed up
with the one below when I decided to sleep for the night.

/tmp/ack-temp/staging/bin/ack "-mpc86" "-O" "-ansi"   -c -o
"/tmp/ack-temp/pmcache/651-lfr6.o"
"/Users/Sanket/Desktop/ack-6.0pre3/mach/i86/libem/lfr6.s"
/tmp/ack-temp/staging/bin/ack "-mpc86" "-O" "-ansi"   -c -o
"/tmp/ack-temp/pmcache/652-lfr8.o"
"/Users/Sanket/Desktop/ack-6.0pre3/mach/i86/libem/lfr8.s"
/tmp/ack-temp/staging/bin/ack "-mpc86" "-O" "-ansi"   -c -o
"/tmp/ack-temp/pmcache/653-retarea.o"
"/Users/Sanket/Desktop/ack-6.0pre3/mach/i86/libem/retarea.s"
/tmp/ack-temp/staging/bin/ack "-mpc86" "-O" "-ansi"   -c -o
"/tmp/ack-temp/pmcache/654-blm.o"
"/Users/Sanket/Desktop/ack-6.0pre3/mach/i86/libem/blm.s"
/tmp/ack-temp/staging/bin/ack "-mpc86" "-O" "-ansi"   -c -o
"/tmp/ack-temp/pmcache/655-return.o"
"/Users/Sanket/Desktop/ack-6.0pre3/mach/i86/libem/return.s"
rm -f "/tmp/ack-temp/pmcache/656/libem-pc86.a" &&
/tmp/ack-temp/staging/bin/aal cr
"/tmp/ack-temp/pmcache/656/libem-pc86.a"
"/tmp/ack-temp/pmcache/597-adi.o" "/tmp/ack-temp/pmcache/598-and.o"
"/tmp/ack-temp/pmcache/599-cii.o" "/tmp/ack-temp/pmcache/600-cms.o"
"/tmp/ack-temp/pmcache/601-cmi4.o" "/tmp/ack-temp/pmcache/602-cmu4.o"
"/tmp/ack-temp/pmcache/603-com.o" "/tmp/ack-temp/pmcache/604-csa2.o"
"/tmp/ack-temp/pmcache/605-csb2.o" "/tmp/ack-temp/pmcache/606-csa4.o"
(Continue reading)


Gmane