[mercury-users] Re: Welcome to mercury-users

Vic Bancroft bancroft at zvolve.net
Thu Oct 4 08:20:36 AEST 2001


On Thu, Oct 04, 2001 at 07:12:05AM +1000, Majordomo at cs.mu.OZ.AU wrote:
> --
> 
> Welcome to the mercury-users mailing list!

While attempting to build mercury under a recent vintage AIX 4.3.3, I
made the following changes to scripts/rs6000_hack :

   [bancroft at zaix:/usr/local/src] diff rs6000_hack mercury-compiler-0.10.1/scripts/rs6000_hack | tee rs6000_hack.diff
   28,29c28,29
   < fixup="sed -e /^MR_declare_static/s//MR_declare_entry/ 
   < -e /^MR_define_static/s//MR_define_entry/"
   ---
   > fixup="sed -e /^Declare_static/s//Declare_entry/ 
   > -e /^Define_static/s//Define_entry/"
   32d31
   < echo $files_to_fix
   44d42
   <               echo first_line $first_line last_line $last_line
   50c48
   <                       egrep -n '^(MR_define_extern_entry|MR_declare)' $file |
   ---
   >                       egrep -n '^(Define_extern_entry|Declare)' $file |
   64c62
   <                       grep -n '^MR_END_MODULE' $file |
   ---
   >                       grep -n '^END_MODULE' $file |

The resulting run of the script is as follows :

   [bancroft at zaix:/usr/local/src/mercury-compiler-0.10.1/compiler] ../scripts/rs6000_hack
   finding small files
   make_hlds.c prog_io.c
   splitting 3 pieces off make_hlds.c
   splitting piece number 1 into mlds_to_java.c
   first_line 10000 last_line 20000
   begin_line=10109
   end_line=19909
   len=9801
   splitting piece number 2 into maybe_mlds_to_gcc.c
   first_line 20000 last_line 30000
   begin_line=19910
   end_line=29947
   len=10038
   splitting piece number 3 into commit_gen.c
   first_line 30000 last_line 40000
   begin_line=29948
   end_line=37401
   len=7454
   fixing make_hlds.c
   splitting 1 pieces off prog_io.c
   splitting piece number 1 into delay_slot.c
   first_line 10000 last_line 20000
   begin_line=10433
   end_line=15395
   len=4963
   fixing prog_io.c

This seemed to work, however, after, ./configure; make;

   MERCURY_INT_DIR=../library MERCURY_ALL_C_INCL_DIRS=" -I../browser -I../trace -I../library -I../runtime -I../boehm_gc -I../boehm_gc/include " ../scripts/mgnuc --grade asm_fast.gc             -c commit_gen.c -o commit_gen.o
   commit_gen.c: In function `make_hlds_module139':
   commit_gen.c:277: `mercury_data_prog_data__type_ctor_info_prog_var_type_0' undeclared (first use in this function)
   commit_gen.c:277: (Each undeclared identifier is reported only once
   commit_gen.c:277: for each function it appears in.)

   [...]

What else might I need to add to rs6000_hack ???

more,
l8r,
   
-- 
------------------------------------------------------------------- 
Victor Bancroft, Principal Engineer, Zvolve Systems [v]770.551.4505 
1050 Crown Pointe Pkwy, Suite 300, Atlanta GA 30338 [f]770.551.4509 
Fellow, Artificial Intelligence Center              [v]706.542-0358 
Athens, Georgia  30602, U.S.A           http://ai.uga.edu/~bancroft 
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list