chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Build error on MinGW


From: Matt Gushee
Subject: [Chicken-users] Build error on MinGW
Date: Fri, 24 Apr 2015 15:48:40 -0600

Hello, all--

I'm helping Matt Welland with the chicken-iup package. However, amusingly (?), I am rather a novice with MinGW, so this error I'm getting is a complete mystery to me.

The OS is 32-bit Windows XP running in VirtualBox on 64-bit Linux. The build environment I'm trying to use is the old mingw32 with MSYS. I'm aware that that product is rather ancient and crufty, and that mingw-w64 is now recommended for building Chicken - and I have not ruled out using that - but the existing project is designed for MSYS (which is not included in mingw-w64) and I'd like to save myself the trouble of porting it just now.

Anyway, when I invoke

    make PLATFORM=mingw-msys PREFIX=c:/chicken

    [I've tried various other values for PREFIX, with no apparent effect]

I get the following error:

    gcc -Wl,--enable-auto-import -shared -Wl,--out-implib,libchicken.dll.a \
      -o libchicken.dll library.o eval.o data-structures.o ports.o files.o extras.o lolevel.o utils.o tcp.o srfi-1.o srfi-4.o srfi-13.o srfi-14.o srfi-18.o srfi-69.o   posixwin.o irregex.o scheduler.o profiler.o stub.o expand.o modules.o     chicken-syntax.o chicken-ffi-syntax.o build-version.o runtime.o apply-  hack.x86.o -lm -lws2_32
    library.o:library.c:(.text+0x35199): undefined reference to `getc_unlocked'
    library.o:library.c:(.text+0x351f1): undefined reference to `getc_unlocked'
    library.o:library.c:(.text+0x3521f): undefined reference to `getc_unlocked'
    c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:    library.o: bad reloc address 0x0 in section `.data'
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [libchicken.dll] Error 1
    make[1]: Leaving directory `/home/IEUser/chicken-4.9.0.1'
    make: *** [all] Error 2

Anyone know why this would happen?

--
Matt Gushee


reply via email to

[Prev in Thread] Current Thread [Next in Thread]