Build error for x86-64

Bug #286507 reported by anders
4
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Confirmed
Medium
Abdulaziz Ghuloum

Bug Description

Grabbed Ikarus from launchpad yesterday.
Version (from 'make'):
echo '(define ikarus-version "0.0.3")' >ikarus.config.ss
echo '(define ikarus-revision "1636")' >>ikarus.config.ss

When building on x68-64, Fedora 9 (not updated since released), the following error occur:

echo '(define wordsize 8)' >>ikarus.config.ss
../src/ikarus -b ./ikarus.boot.8.prebuilt --r6rs-script makefile.ss
Mapping failed: Cannot allocate memory
make[2]: *** [ikarus.boot] Error 255
make[2]: Leaving directory `/home/ando/Languages/Scheme/ikarus/scheme'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ando/Languages/Scheme/ikarus'
make: *** [all] Error 2

If I do ./configure "CFLAGS=-m32" "LDFLAGS=-m32" "ASFLAGS=-32" and then make:

echo '(define wordsize 4)' >>ikarus.config.ss
../src/ikarus -b ./ikarus.boot.4.prebuilt --r6rs-script makefile.ss
Expanding .........................................................
running stats for macro expansion:

and Ikarus builds and then seem to work.

My toolchain:
cc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
GNU ld version 2.18.50.0.6-2 20080403
GNU assembler version 2.18.50.0.6-2 20080403

If you need more help don't hesitate to ask me / anders

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

I have just tried to build the latest version on 64-bit debian (on vmware) and it worked properly. I will try to download fedora 9 to see what's up there.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

This will take 13 hours to download the dvd image.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

While we're waiting, can you change line 234 of src/ikarus-runtime.c to be:

    fprintf(stderr, "Mapping (%d bytes) failed:%s\n", size, strerror(errno));

and tell me how many bytes it's trying to allocate?

Thanks!

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Confirmed that this is broken. I will have to fix this, but the changes required are a little involved to be done now (as I'm preparing for a new release and don't want to break things). Setting priority to medium since the 32-bit still works as usual under fedora 9. I'll let you know when there's progress. Thanks again for bringing this to my attention.

Aziz,,,

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
anders (anders-n-ostlund) wrote :

OK,

thanks for your fast reply. I'm not in that big need for the 64bit version, I was planning to try the FFI, but, most 32bit versions of libraries should already be installed on my system.

As I understand your last message, you do not need the result from the suggested patch of ikarus-runtime.c anymore?

/anders

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote : Re: [Bug 286507] Re: Build error for x86-64

On Oct 21, 2008, at 9:01 AM, anders wrote:

> thanks for your fast reply. I'm not in that big need for the 64bit
> version, I was planning to try the FFI, but, most 32bit versions
> of libraries should already be installed on my system.

The FFI should work on the 32-bit version just as well.

> As I understand your last message, you do not need the result from
> the suggested patch of ikarus-runtime.c anymore?

Correct.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.