#218 Building on linux using "-m32"

Unstable_git/CVS
open
nobody
None
1
2012-12-20
2012-11-28
Anonymous
No

Current HEAD (ec1fe8781a5f137284cc6c0d0cfa6b0cc9b9b291) fails to build if using "-m32" on a linux 64 host. Same used to work fine on previous revisions (82c6a8e14975a86a21c88f7f62b60182b3b6696b)

(need to install gcc-multilib to test the following)

$ gcc --version
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2

ABI=32 CFLAGS="-m32" LDFLAGS="-m32" ./configure && make

;;; Compiling (DEFUN PPRINT-DEFUN ...).
;;; Compiling (DEFUN PPRINT-DESTRUCTURING-BIND ...).
;;; Compiling (DEFUN PPRINT-DO ...).
;;; Compiling (DEFUN PPRINT-DOLIST ...).
;;; Compiling (DEFUN PPRINT-TYPECASE ...).
;;; Compiling (DEFUN PPRINT-PROG ...).
;;; Compiling (DEFUN PPRINT-FUNCTION-CALL ...).
;;; End of Pass 1.
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL
;;; Style warning:
;;; ! The argument 1 of function <= has type
;;; NIL
;;; instead of expected
;;; REAL

;;;
;;; Stack overflow.
;;; Jumping to the outermost toplevel prompt
;;;

Discussion


  • Anonymous
    2012-12-07

    More info on this. It looks like there is some kind of weird interaction issue between "make" and "ecl_min" because if after compilation fails I do:

    ECLDIR=pwd/ ./ecl_min compile; (instead of make)

    Then the compilation completes OK.

     

  • Anonymous
    2012-12-20

    After more investigation, the reason for this problem is that adding "-O2" to CFLAGS is needed when compiling with gcc. This is normally automatically added by AC_PROG_CC but not when setting CFLAGS using the command line.

    doing:
    ABI=32 CFLAGS="-m32 -O2 -g" LDFLAGS="-m32" ./configure && make

    works

     


Anonymous


Cancel   Add attachments