bugMIT/GNU Scheme - Bugs: bug #29236, mit-scheme-c-9.0.1 fails to build...

 
 

bug #29236: mit-scheme-c-9.0.1 fails to build on GNU/Linux x86_64

Submitter:  Ludovic Courtès <civodul>
Submitted:  Tue 16 Mar 2010 04:44:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  riastradh Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Mar 2010 08:48:01 PM UTC, comment #4: 

There several reasons for not building from binaries, notably the fact that building from C will work on all arches, and the fact that pre-built binaries are unlikely to work as-is on NixOS (there's no /lib there, for instance).

I think this bug can be closed now.

Sorry for the noise and thank you!

Ludo'.

Ludovic Courtès <civodul>
Wed 17 Mar 2010 06:07:14 PM UTC, comment #3: 

You are right: it would be nice if `./configure && make' just worked.  But the tree just has too many different possible states, despite our attempts to clean it up and simplify it, for `make' to know what to do in every case.  (Also, there is no formal test suite.  I usually check whether Edwin launches and behaves itself unless I have something more particular to test.)

I'm still curious to know the answer to my first question, though: why are you using the portable C distribution rather than the native x86-64 distribution?

Taylor R. Campbell <riastradh>
Group Member
Wed 17 Mar 2010 04:52:35 PM UTC, comment #2: 

Hi,

Indeed, I was probably distracted and went with just `./configure && make' (and I think it would be nice if that sequence would just work.)  I followed the instructions and everything went fine.

I didn't try to run the test suite, though, as I noticed "make check" wouldn't do it.

MIT/GNU Scheme is now built for the NixOS GNU/Linux distribution:

  http://hydra.nixos.org/job/nixpkgs/trunk/mitscheme

Thanks,
Ludo'.

Ludovic Courtès <civodul>
Tue 16 Mar 2010 05:58:51 PM UTC, comment #1: 

Works for me, on some flavour of Fedora.  Two questions:

1. Why are you using the portable C distribution rather than the native x86-64 distribution?

2. Exactly what commands did you invoke to build Scheme; or, do you have a typescript of the entire build?

Note that the commands to build the portable C distribution are different from the commands to build the native distributions -- you must run `etc/make-liarc.sh' from the src/ subdirectory to build the portable C distribution, not `./configure && make compile-microcode' as you would run to build a native distribution.

Taylor R. Campbell <riastradh>
Group Member
Tue 16 Mar 2010 04:44:43 PM UTC, original submission:  

Hello,

I'm hitting this link failure with mit-scheme-c-9.0.1:

#v+
rm -f scheme
gcc  -o scheme -export-dynamic artutl.o avltree.o bkpt.o bignum.o bigprm.o bitstr.o boot.o char.o daemon.o debug.o dfloat.o error.o extern.o fasdump.o fasl.o fasload.o fixnum.o flonum.o gcloop.o generic.o hooks.o hunk.o intern.o interp.o intprm.o list.o lookprm.o lookup.o memmag.o missing.o obstack.o option.o osscheme.o ostty.o outf.o prim.o primutl.o ptrvec.o purify.o purutl.o regex.o rgxprim.o step.o storage.o string.o syntax.o sysprim.o term.o transact.o tterm.o utabmd.o utils.o vector.o wind.o prosenv.o prosfile.o prosfs.o prosio.o prosproc.o prospty.o prosterm.o prostty.o pruxsock.o intext.o pruxenv.o pruxfs.o pruxio.o ux.o uxctty.o uxenv.o uxfile.o uxfs.o uxio.o uxproc.o uxsig.o uxsock.o uxterm.o uxtop.o uxtrap.o uxtty.o uxutil.o cmpauxmd.o termcap.o tparam.o pruxdld.o cmpint.o cmpintmd.o comutl.o usrdef.o  -ldl -lm
cmpint.o: In function `comutil_return_to_interpreter':
cmpint.c:(.text+0x223): undefined reference to `interface_to_C'
cmpint.o: In function `comutil_operator_1_0_trap':
cmpint.c:(.text+0x23d): undefined reference to `interface_to_scheme'
cmpint.o: In function `comutil_operator_2_0_trap':
cmpint.c:(.text+0x287): undefined reference to `interface_to_scheme'
cmpint.o: In function `comutil_operator_2_1_trap':
cmpint.c:(.text+0x2c7): undefined reference to `interface_to_scheme'
cmpint.o: In function `comutil_operator_3_0_trap':
cmpint.c:(.text+0x317): undefined reference to `interface_to_scheme'
cmpint.o: In function `comutil_operator_3_1_trap':
cmpint.c:(.text+0x367): undefined reference to `interface_to_scheme'
cmpint.o:cmpint.c:(.text+0x3b7): more undefined references to `interface_to_scheme' follow
cmpint.o: In function `return_to_compiled_code':
cmpint.c:(.text+0xd41): undefined reference to `C_to_interface'
cmpint.o: In function `comutil_primitive_error':
cmpint.c:(.text+0xdb8): undefined reference to `interface_to_C'
cmpint.o: In function `compiler_interrupt_common':
cmpint.c:(.text+0x1480): undefined reference to `interface_to_C'
cmpint.o: In function `comp_unassigned_p_trap_restart':
cmpint.c:(.text+0x16bd): undefined reference to `C_to_interface'
cmpint.o: In function `comp_safe_lookup_trap_restart':
cmpint.c:(.text+0x17dd): undefined reference to `C_to_interface'
cmpint.o: In function `comp_lookup_trap_restart':
cmpint.c:(.text+0x18fd): undefined reference to `C_to_interface'
cmpint.o: In function `comp_assignment_trap_restart':
cmpint.c:(.text+0x1a2d): undefined reference to `C_to_interface'
cmpint.o: In function `comutil_primitive_lexpr_apply':
cmpint.c:(.text+0x1d86): undefined reference to `interface_to_scheme'
cmpint.o: In function `comutil_primitive_apply':
cmpint.c:(.text+0x1e99): undefined reference to `interface_to_scheme'
cmpint.o: In function `enter_compiled_expression':
cmpint.c:(.text+0x217d): undefined reference to `C_to_interface'
cmpint.o: In function `comp_op_lookup_trap_restart':
cmpint.c:(.text+0x25f4): undefined reference to `C_to_interface'

[...]
#v-

This is with GCC 4.4.3.

What am I missing?

Thanks,
Ludo'.

Ludovic Courtès <civodul>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by civodul (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-17 riastradh StatusNone Fixed
        Assigned toNone riastradh
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code