Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Configure error, not sure what to make of it.

  1. #1
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Configure error, not sure what to make of it.

    I'm trying to create a deb package for ntfs-3g that has internal fuse support (this will allow a normal user to mount/unmount a Windows volume from the command line), however I'm getting a configure error that I can't make much sense of. Here's my process:

    Code:
    blddir=~/Downloads/build
    pkgname=ntfs-3g
    pkgver=$(apt q ntfs-3g | awk '{print $3}' | sed 's/1://') # Unused '1:' before
    PKGVER=$(echo $pkgver | sed 's/-.*//')       # Uncompressed build folder name
    apt i build-essential fakeroot dpkg-dev lynx
    sudo apt-get build-dep $pkgname
    [ ! -d $blddir ] && mkdir -p $blddir
    cd $blddir
    [ ! -d "$pkgname"_$pkgver ] && mkdir "$pkgname"_$PKGVER
    cd "$pkgname"_$PKGVER
    apt S ntfs-3g
    sudo chown -R 1000:1000 .                   # Oddly source is owned by root
    cd "$pkgname"-$PKGVER                       # Enter source directory
    vim debian/rules                  # --with-fuse=external > --with-fuse=internal
    dpkg-buildpackage -rfakeroot -b
    During configure, it stops with this error:

    Code:
    target_cpu='i686'
    target_os='linux-gnu'
    target_vendor='pc'
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define PACKAGE_NAME "ntfs-3g"
    #define PACKAGE_TARNAME "ntfs-3g"
    #define PACKAGE_VERSION "2011.4.12AR.4"
    #define PACKAGE_STRING "ntfs-3g 2011.4.12AR.4"
    #define PACKAGE_BUGREPORT "ntfs-3g-devel@lists.sf.net"
    #define PACKAGE_URL ""
    #define PACKAGE "ntfs-3g"
    #define VERSION "2011.4.12AR.4"
    
    configure: exit 77
    dh_auto_configure: ./configure --build=i686-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/ntfs-3g --disable-maintainer-mode --disable-dependency-tracking --host=i686-linux-gnu --build=i686-linux-gnu --prefix=/usr --exec-prefix=/ --mandir=${prefix}/share/man --enable-crypto --enable-extras --enable-posix-acls --enable-xattr-mappings --disable-ldconfig --with-fuse=internal CFLAGS=-Wall -g -O2 LDFLAGS=-Wl,-z,defs returned exit code 77
    make[1]: *** [override_dh_auto_configure] Error 25
    make[1]: Leaving directory `/home/todd/Downloads/build/ntfs-3g_2011.4.12AR.4/ntfs-3g-2011.4.12AR.4'
    make: *** [build] Error 2
    dpkg-buildpackage: error: debian/rules build gave error exit status 2
    Any ideas?

  2. #2
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Configure error, not sure what to make of it.

    Maybe look at changing
    Code:
     CFLAGS=-Wall -g -O2
    to
    Code:
     CFLAGS="-Wall -g -O2"
    ie, not
    Code:
    $ ./configure --build=i686-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/ntfs-3g --disable-maintainer-mode --disable-dependency-tracking --host=i686-linux-gnu --build=i686-linux-gnu --prefix=/usr --exec-prefix=/ --mandir=${prefix}/share/man --enable-crypto --enable-extras --enable-posix-acls --enable-xattr-mappings --disable-ldconfig --with-fuse=internal CFLAGS=-Wall -g -O2 LDFLAGS=-Wl,-z,defs
    configure: error: unrecognized option: `-g'
    Try `./configure --help' for more information
    but

    Code:
    $ ./configure --build=i686-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/ntfs-3g --disable-maintainer-mode --disable-dependency-tracking --host=i686-linux-gnu --build=i686-linux-gnu --prefix=/usr --exec-prefix=/ --mandir=${prefix}/share/man --enable-crypto --enable-extras --enable-posix-acls --enable-xattr-mappings --disable-ldconfig --with-fuse=internal CFLAGS="-Wall -g -O2" LDFLAGS=-Wl,-z,defs
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... GNU
    checking for i686-linux-gnu-gcc... no
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    .....
    Last edited by SevenMachines; December 4th, 2011 at 02:52 PM.

  3. #3
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Re: Configure error, not sure what to make of it.

    Hmm, good thinking with the un-enclosed CFLAGS options. I tried to enclose them in the debian/rules file but they wouldn't get passed on. I'm not sure that is the error though for sure because I thought I've seen them un-enclosed before. Am I wrong? How should they look in the debian/rules file. Here's the relevant part of the compiling options file (debian/rules). I highlighted the CFLAGS options:

    Code:
    #!/usr/bin/make -f
    
    SHELL := sh -e
    
    DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    
    CFLAGS = -Wall -g
    
    ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    	CFLAGS += -O0
    else
    	CFLAGS += -O2
    endif
    ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
            NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
            MAKEFLAGS += -j$(NUMJOBS)
    endif
    
    upstream:
    	lynx -dump http://b.andre.pagesperso-orange.fr/changelog.html > debian/local/changelog
    
    %:
    	dh ${@} --with autotools_dev
    
    override_dh_auto_configure:
    	dh_auto_configure --	--host=$(DEB_HOST_GNU_TYPE) \
    				--build=$(DEB_BUILD_GNU_TYPE) \
    				--prefix=/usr \
    				--exec-prefix=/ \
    				--mandir=\$${prefix}/share/man \
    				--enable-crypto \
    				--enable-extras \
    				--enable-posix-acls \
    				--enable-xattr-mappings \
    				--disable-ldconfig \
    				--with-fuse=external \
    				CFLAGS="$(CFLAGS)" \
    				LDFLAGS="-Wl,-z,defs"
    ...
    I changed:

    Code:
    CFLAGS = -Wall -g # to
    CFLAGS="-Wall -g"
    but they were Not enclosed when I tried to compile.

    Possibly a second problem??:

    I looked some more at the config.log and also discovered this:

    Code:
    configure:3700: error: in `/home/$USER/Downloads/build/ntfs-3g_2011.4.12AR.4/ntfs-3g-2011.4.12AR.4':
    configure:3702: error: C compiler cannot create executables
    See `config.log' for more details
    Not sure what to make of this though, I got the development tools I think:

    Code:
    libc-bin_2.13-20ubuntu5
    libc-dev-bin_2.13-20ubuntu5
    libc6_2.13-20ubuntu5
    libc6-dev_2.13-20ubuntu5
    ...
    g++_4:4.6.1-2ubuntu5
    g++-4.6_4.6.1-9ubuntu3
    ...
    build-essential_11.5ubuntu1  # this this is a meta package
    Hmmm, any thoughts anyone?
    Last edited by Gen2ly; December 4th, 2011 at 11:47 PM.

  4. #4
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: Configure error, not sure what to make of it.

    have a look at the config.log
    somewhere in there the real error message will be including all parameter that might have caused it. you often have to scroll up quite a bit.

  5. #5
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Re: Configure error, not sure what to make of it.

    Thanks MadCow. I think I see what you mean. I found this:

    Code:
    ...
    gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 
    configure:3611: $? = 0
    configure:3600: i686-linux-gnu-gcc -V >&5
    i686-linux-gnu-gcc: error: unrecognized option '-V'
    i686-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    configure:3611: $? = 4
    configure:3600: i686-linux-gnu-gcc -qversion >&5
    i686-linux-gnu-gcc: error: unrecognized option '-qversion'
    i686-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    configure:3611: $? = 4
    configure:3631: checking whether the C compiler works
    configure:3653: i686-linux-gnu-gcc -Wall -g -O2  -Wl,-z,defs conftest.c  >&5
    conftest.c:18:1: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccwVtmwx.out file, please attach this to   your bugreport.
    ...
    This seems to be it. Unfortunately, I'm not entirely sure what to make of it. To me, it appears like GCC just crashed. Any ideas? What can I do from here?

  6. #6
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Configure error, not sure what to make of it.

    Hi there, no need to chop the log, add it all between code tags or if needs be, add it as an attachment, can't actually see what was happening leading up to the errors!
    Your process mentioned in the first post still confuses me a bit, lots of stuff going on and root owning dirs and things. To test out if thats whats broken you might want to try a clean build, this below I know to work to get fuse internal at least here...
    Code:
    # Get the source and the build-dep
    $ apt-get source ntfs-3g
    $ sudo apt-get build-dep ntfs-3g
    
    $ cd ntfs-3g-2011.4.12AR.4/
    
    # Change the fuse option
    $ sed -i 's/--with-fuse=external/--with-fuse=internal/g' debian/rules 
    
    # Update the changelog
    $ dch -i "Changed fuse option to internal in configuration rules"
    
    #  Build the binaries
    $ debuild -b -us -uc

  7. #7
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: Configure error, not sure what to make of it.

    Quote Originally Posted by Gen2ly View Post
    Thanks MadCow. I think I see what you mean. I found this:

    Code:
    ...
    gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 
    configure:3611: $? = 0
    configure:3600: i686-linux-gnu-gcc -V >&5
    i686-linux-gnu-gcc: error: unrecognized option '-V'
    i686-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    configure:3611: $? = 4
    configure:3600: i686-linux-gnu-gcc -qversion >&5
    i686-linux-gnu-gcc: error: unrecognized option '-qversion'
    i686-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    configure:3611: $? = 4
    configure:3631: checking whether the C compiler works
    configure:3653: i686-linux-gnu-gcc -Wall -g -O2  -Wl,-z,defs conftest.c  >&5
    conftest.c:18:1: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccwVtmwx.out file, please attach this to   your bugreport.
    ...
    This seems to be it. Unfortunately, I'm not entirely sure what to make of it. To me, it appears like GCC just crashed. Any ideas? What can I do from here?
    do you know where this -qversion is comming from?

    also please upload the temporary file gcc creates, crashes on i686 are rare.

  8. #8
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Re: Configure error, not sure what to make of it.

    Quote Originally Posted by SevenMachines View Post
    Hi there, no need to chop the log, add it all between code tags or if needs be, add it as an attachment, can't actually see what was happening leading up to the errors!
    Your process mentioned in the first post still confuses me a bit, lots of stuff going on and root owning dirs and things. To test out if thats whats broken you might want to try a clean build, this below I know to work to get fuse internal at least here...
    Code:
    # Get the source and the build-dep
    $ apt-get source ntfs-3g
    $ sudo apt-get build-dep ntfs-3g
    
    $ cd ntfs-3g-2011.4.12AR.4/
    
    # Change the fuse option
    $ sed -i 's/--with-fuse=external/--with-fuse=internal/g' debian/rules 
    
    # Update the changelog
    $ dch -i "Changed fuse option to internal in configuration rules"
    
    #  Build the binaries
    $ debuild -b -us -uc
    Good suggestion, SevenMachines. I tried a clean build and your compile method (using debuild) and am getting the same error still.

    Quote Originally Posted by MadCow108 View Post
    do you know where this -qversion is comming from?

    also please upload the temporary file gcc creates, crashes on i686 are rare.
    From the build directory:

    Code:
    grep -Rn qversion .
    ./config.log:89:configure:3600: i686-linux-gnu-gcc -qversion >&5
    ./config.log:90:i686-linux-gnu-gcc: error: unrecognized option '-qversion'
    ./configure:3594:for ac_option in --version -v -V -qversion; do
    ./configure:4781:for ac_option in --version -v -V -qversion; do
    Attached the config.log.
    Attached Files Attached Files

  9. #9
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Configure error, not sure what to make of it.

    Can't reproduce this on i386 or amd64 11.10 clean environments. Maybe have a look at whats happening with
    Code:
    $ cat conftest.c 
    /* confdefs.h */
     #define PACKAGE_NAME "ntfs-3g"
     #define PACKAGE_TARNAME "ntfs-3g"
     #define PACKAGE_VERSION "2011.4.12AR.4"
     #define PACKAGE_STRING "ntfs-3g 2011.4.12AR.4"
     #define PACKAGE_BUGREPORT "ntfs-3g-devel@lists.sf.net"
     #define PACKAGE_URL ""
     #define PACKAGE "ntfs-3g"
     #define VERSION "2011.4.12AR.4"
     /* end confdefs.h.  */
     
     int
     main ()
     {
     
       ;
       return 0;
     }
    
    $ i686-linux-gnu-gcc -Wall -g -O2  -Wl,-z,defs conftest.c
    gcc crashing is *unusual*

  10. #10
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Re: Configure error, not sure what to make of it.

    Quote Originally Posted by SevenMachines View Post
    Can't reproduce this on i386 or amd64 11.10 clean environments. Maybe have a look at whats happening with
    Code:
    $ cat conftest.c 
    /* confdefs.h */
     #define PACKAGE_NAME "ntfs-3g"
     #define PACKAGE_TARNAME "ntfs-3g"
     #define PACKAGE_VERSION "2011.4.12AR.4"
     #define PACKAGE_STRING "ntfs-3g 2011.4.12AR.4"
     #define PACKAGE_BUGREPORT "ntfs-3g-devel@lists.sf.net"
     #define PACKAGE_URL ""
     #define PACKAGE "ntfs-3g"
     #define VERSION "2011.4.12AR.4"
     /* end confdefs.h.  */
     
     int
     main ()
     {
     
       ;
       return 0;
     }
    
    $ i686-linux-gnu-gcc -Wall -g -O2  -Wl,-z,defs conftest.c
    gcc crashing is *unusual*
    Man Seven this is good thinking and you hit the nail on the head:

    Code:
    # i686-linux-gnu-gcc -Wall -g -O2  -Wl,-z,defs conftest.c
    conftest.c:18:2: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccyLmuPc.out file, please attach this to your bugreport.
    The preprocessed source is:

    Code:
    # cat /tmp/ccyLmuPc.out 
    // /usr/lib/gcc/i686-linux-gnu/4.6.1/cc1 -quiet -imultilib . -imultiarch i386-linux-gnu conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -g -O2 -Wall -fstack-protector -o - -frandom-seed=0
    # 1 "conftest.c"
    # 1 "/home/todd/Downloads/build//"
    # 1 "<built-in>"
    # 1 "<command-line>"
    # 1 "conftest.c"
    # 12 "conftest.c"
     int
     main ()
     {
    
       ;
       return 0;
     }
    GCC looks like it isn't working from the start. Any ideas why this may be happening?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •