#2 Cannot compile version 1.1.3

closed-out-of-date
nobody
None
2010-09-09
2010-02-18
Anonymous
No

Hi,

I am getting an error saying AC - command not found when I do ./configure in the latest version.

how do I fix it?

Thanks
Koushik

Discussion

  • Kapil Arya

    Kapil Arya - 2010-02-18

    Hi Koushik,

    Thanks for opening the tracker.

    Could you please cut-paste the complete output of ./configure, also if you can tell us more about your system, it would be nice.

    Thanks,
    Developer Team

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-02-18

    Thanks for the prompt response . I am usign linux2.6 kernel x86-64

    Link to the full log of ./configure and make
    http://docs.google.com/leaf?id=0By81WDGLy1uQNmMxYjEzNmQtNmMzMy00ZjIwLWE4NGQtMDUyYTE2MGJhZTdi&hl=en

     
  • Kapil Arya

    Kapil Arya - 2010-02-18

    Please also write the output of the following commands:

    /lib/libc.so.6
    gcc --version
    uname -a

    Also, which Linux distro are you using?

    Thanks,

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-02-18

    GNU C Library stable release version 2.3.5 (20050720), by Roland McGrath et al.
    Copyright (C) 2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    Configured for i686-suse-linux.
    Compiled by GNU CC version 3.3.3 (SuSE Linux).
    Compiled on a Linux 2.6.5 system on 2007-09-03.
    Available extensions:
    GNU libio by Per Bothner
    crypt add-on version 2.1 by Michael Glad and others
    linuxthreads-0.10 by Xavier Leroy
    GNU Libidn by Simon Josefsson
    NoVersion patch for broken glibc 2.0 binaries
    BIND-8.2.3-T5B
    libthread_db work sponsored by Alpha Processor Inc
    NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
    Thread-local storage support included.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/libc/bugs.html>.
    gcc (GCC) 3.4.2
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Linux scci71009 2.6.5-7.287.3.PTF.363939.1-smp #1 SMP Tue Oct 2 07:31:36 UTC 2007 x86_64 x86_64 x86_64 GNU/Linuxsuse64

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-02-18

    When I change the gcc version to 4.2.2, I get this error

    (cd mtcp && make CC=gcc build readmtcp)
    make[1]: Entering directory `/tmp/localdisk/kkalyana/checkpoint/dmtcp_1.1.3/mtcp'
    rm -f mtcp.t
    ld -shared --verbose > mtcp.t
    cat mtcp.t | sed -e '1,/========================/ d' > mtcp.tmp
    cat mtcp.tmp | sed -e '/========================/,$ d' > mtcp.t
    rm -f mtcp.tmp mtcp.t-fail
    if test `uname -m` = x86_64; then \ if patch mtcp.t mtcp.t.patch-x86_64; then \ :; \ else \ mv mtcp.t mtcp.t-fail; false; \ fi \ else \ if patch mtcp.t mtcp.t.patch-i386; then \ :; \ else \ mv mtcp.t mtcp.t-fail; false; \ fi \ fi
    patching file mtcp.t
    Hunk #1 succeeded at 6 with fuzz 2.
    Hunk #2 succeeded at 160 (offset -15 lines).
    gcc -DDMTCP=1 -O0 -g -DDEBUG -DTIMING -Wall -fPIC -DPIC -Wa,-adhl=mtcp.lis -c -o mtcp.o mtcp.c
    mtcp.c:178: error: array type has incomplete element type
    make[1]: *** [mtcp.o] Error 1
    make[1]: Leaving directory `/tmp/localdisk/kkalyana/checkpoint/dmtcp_1.1.3/mtcp'
    make: *** [mtcp] Error 2

     
  • Kapil Arya

    Kapil Arya - 2010-02-18

    Thanks for the info.
    I think it has to do with struct user_desc. Its definition changed in some glibc version, I don't know which. Let me try a couple of things and I will get back to you ASAP.

     
  • Kapil Arya

    Kapil Arya - 2010-02-19

    It seems that you are using an old Linux kernel. The simplest option is to update your kernel version since you are using a recent gcc.

    If you do want to support the old kernel then please look into /usr/include/linux/version.h.
    (Please save the original /usr/include/linux/version.h file and restore it back if you see some instability in the system.) :
    Update the file to make sure that the following two lines match your kernel (2.6.5) :
    #define UTS_RELEASE "2.6.5"
    #define LINUX_VERSION_CODE 132613

    This is required for DMTCP to correctly compile.

    Thanks,

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-02-19

    Karya,

    Note: I do not have root access.
    This is my linux.h file. I did not change it (but it is what you expect it to be).

    #ifdef __KERNEL__
    #error "======================================================="
    #error "You should not include /usr/include/{linux,asm}/ header"
    #error "files directly for the compilation of kernel modules."
    #error ""
    #error "glibc now uses kernel header files from a well-defined"
    #error "working kernel version (as recommended by Linus Torvalds)"
    #error "These files are glibc internal and may not match the"
    #error "currently running kernel. They should only be"
    #error "included via other system header files - user space"
    #error "programs should not directly include <linux/*.h> or"
    #error "<asm/*.h> as well."
    #error ""
    #error "To build kernel modules please do the following:"
    #error ""
    #error " o Have the kernel sources installed"
    #error ""
    #error " o Make sure that the symbolic link"
    #error " /lib/modules/`uname -r`/build exists and points to"
    #error " the matching kernel source directory"
    #error ""
    #error " o Configure kernel sources:"
    #error " - cd /usr/src/linux"
    #error " - make mrproper"
    #error " - make cloneconfig"
    #error " - make dep"
    #error ""
    #error " o When compiling, make sure to use the following"
    #error " compiler option to use the correct include files:"
    #error ""
    #error " -I/lib/modules/`uname -r`/build/include"
    #error ""
    #error " instead of"
    #error ""
    #error " -I/usr/include/linux"
    #error ""
    #error " Please adjust the Makefile accordingly."
    #error "======================================================="
    #else
    #define UTS_RELEASE "2.6.5"
    #define LINUX_VERSION_CODE 132613
    #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
    #endif

     
  • Kapil Arya

    Kapil Arya - 2010-02-19

    Aha.
    Now I guess we need some more information. Can you run the following command in the mtcp subdirectory and send us the output:
    cpp mtcp.c

    Thanks,

     
  • Kapil Arya

    Kapil Arya - 2010-02-19

    Hii,

    Thanks for the information.
    If you comment out the following lines in mtcp/mtcp_internal.h and try to compile, the current problem should go away:

    87# if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,9)
    88/* struct modify_ldt_ldt_s was defined instead of struct user_desc */
    89 # define user_desc modify_ldt_ldt_s
    90 # endif

    Please let us know if there are some other issues.

    Thank you.
    Thanks,

     
  • Nobody/Anonymous

    Hi,

    I tried that - but had no effect.

    mtcp.c:38#include <asm/ldt.h> // for struct user_desc

    is the include line - Where does it actually look for it? I think this include file is the problem - not sure though.

    Thanks for your help

     
  • Gene Cooperman

    Gene Cooperman - 2010-02-19

    mtcp.c:38#include <asm/ldt.h> will try to read /usr/include/asm/ldt.h
    This is the standard place on most Linux distributions, but each one
    can be different. Please do:
    find /usr/include | grep ldt.h
    and tell us the result. If you find that ldt.h does not exist
    in /usr/include, then most likely, there is a missing package that
    needs to be installed for your distribution.

    For example, under Ubuntu 9.10, the package linux-libc-dev
    provides /usr/include/asm/ldt.h . For your SuSe Linux distribution, you will
    need to go to the package search application or web page,
    select "package contents", and search on ldt.h .

    If you have not found ldt.h in your /usr/include filesystem,
    is the package linux-libc-dev (or equivalent) installed in your distribution?

    Thanks,
    - Gene

     
  • Nobody/Anonymous

    find /usr/include | grep ldt.h
    /usr/include/asm/ldt.h
    /usr/include/asm-x86_64/ldt.h
    /usr/include/asm-i386/ldt.h

    The files are there. x86_64 has the definition for user_desc -> I tried to change asm to asm-x86-64 - but could not get it to working..

     
  • Kapil Arya

    Kapil Arya - 2010-02-20

    Hii,

    Why not we continue this conversation on some high-bandwidth, may be email or even better, instant messaging.

    If that's okay with you, can you send me an email on my email address given on my home page www.ccs.neu.edu/home/kapil.

    Thanks,
    -Kapil

     
  • Kapil Arya

    Kapil Arya - 2010-02-20

    We now have a irc-channel #dmtcp hosted at FreeNode.

     
  • Kapil Arya

    Kapil Arya - 2010-02-26

    Hello Koushik,

    We haven't heard back from you. Please write to us if you still want to keep this thread open otherwise we would like to close this thread.

    Thanks.

     
  • Kapil Arya

    Kapil Arya - 2010-04-05

    No further information received from reporter. Closing.

     
  • Kapil Arya

    Kapil Arya - 2010-04-05
    • status: open --> closed
     
  • Kapil Arya

    Kapil Arya - 2010-09-09
    • status: closed --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks