Build errors with i686 gcc from rubenvb

Help
Alexx83
2012-05-18
2013-06-06
  • Alexx83

    Alexx83 - 2012-05-18

    I try to build some programs with rubenvb's i686 and x86_64 gcc-4.6.3 toolchains. With x86_64 everything ok, but with i686 I have troubles with building gsl and pkg-config.

     
  • Alexx83

    Alexx83 - 2012-05-18

    I got errors:
    GSL

    Making all in poly
    make[2]: Entering directory `/sources/build32/gsl/build/poly'
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT dd.lo -MD -MP -MF .deps/dd.Tpo -c -o dd.lo ../../gsl-1.15/poly/dd.c
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT eval.lo -MD -MP -MF .deps/eval.Tpo -c -o eval.lo ../../gsl-1.15/poly/eval.c
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT solve_quadratic.lo -MD -MP -MF .deps/solve_quadratic.Tpo -c -o solve_quadratic.lo ../../gsl-1.15/poly/solve_quadratic.c
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15 -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT dd.lo -MD -MP -MF .deps/dd.Tpo -c ../../gsl-1.15/poly/dd.c  -DDLL_EXPORT -DPIC -o .libs/dd.o
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15 -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT eval.lo -MD -MP -MF .deps/eval.Tpo -c ../../gsl-1.15/poly/eval.c  -DDLL_EXPORT -DPIC -o .libs/eval.o
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../gsl-1.15/poly -I.. -I../../gsl-1.15 -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT solve_quadratic.lo -MD -MP -MF .deps/solve_quadratic.Tpo -c ../../gsl-1.15/poly/solve_quadratic.c  -DDLL_EXPORT -DPIC -o .libs/solve_quadratic.o
    ../../gsl-1.15/poly/dd.c: In function 'gsl_poly_dd_taylor':
    ../../gsl-1.15/poly/dd.c:53:1: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1127
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://gcc.gnu.org/bugs.html> for instructions.
    mv -f .deps/solve_quadratic.Tpo .deps/solve_quadratic.Plo
    make[2]: *** [dd.lo] Error 1
    make[2]: *** Waiting for unfinished jobs....
    mv -f .deps/eval.Tpo .deps/eval.Plo
    make[2]: Leaving directory `/sources/build32/gsl/build/poly'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/sources/build32/gsl/build'
    make: *** [all] Error 2
    

    PKG-CONFIG

    make[1]: Entering directory `/sources/build32/pkg-config/build'
    Making all in popt
    make[2]: Entering directory `/sources/build32/pkg-config/build/popt'
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I..   -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT popt.lo -MD -MP -MF .deps/popt.Tpo -c -o popt.lo ../../pkg-config-0.26/popt/popt.c
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I..   -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT poptconfig.lo -MD -MP -MF .deps/poptconfig.Tpo -c -o poptconfig.lo ../../pkg-config-0.26/popt/poptconfig.c
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I..   -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT popthelp.lo -MD -MP -MF .deps/popthelp.Tpo -c -o popthelp.lo ../../pkg-config-0.26/popt/popthelp.c
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I.. -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT popt.lo -MD -MP -MF .deps/popt.Tpo -c ../../pkg-config-0.26/popt/popt.c  -DDLL_EXPORT -DPIC -o .libs/popt.o
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I.. -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT popthelp.lo -MD -MP -MF .deps/popthelp.Tpo -c ../../pkg-config-0.26/popt/popthelp.c  -DDLL_EXPORT -DPIC -o .libs/popthelp.o
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I.. -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT poptconfig.lo -MD -MP -MF .deps/poptconfig.Tpo -c ../../pkg-config-0.26/popt/poptconfig.c  -DDLL_EXPORT -DPIC -o .libs/poptconfig.o
    mv -f .deps/poptconfig.Tpo .deps/poptconfig.Plo
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I..   -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT poptparse.lo -MD -MP -MF .deps/poptparse.Tpo -c -o poptparse.lo ../../pkg-config-0.26/popt/poptparse.c
    mv -f .deps/popthelp.Tpo .deps/popthelp.Plo
    /bin/sh ../libtool --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I..   -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT findme.lo -MD -MP -MF .deps/findme.Tpo -c -o findme.lo ../../pkg-config-0.26/popt/findme.c
    mv -f .deps/popt.Tpo .deps/popt.Plo
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I.. -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT poptparse.lo -MD -MP -MF .deps/poptparse.Tpo -c ../../pkg-config-0.26/popt/poptparse.c  -DDLL_EXPORT -DPIC -o .libs/poptparse.o
    libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pkg-config-0.26/popt -I.. -I/3rdparty/include -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT findme.lo -MD -MP -MF .deps/findme.Tpo -c ../../pkg-config-0.26/popt/findme.c  -DDLL_EXPORT -DPIC -o .libs/findme.o
    mv -f .deps/poptparse.Tpo .deps/poptparse.Plo
    mv -f .deps/findme.Tpo .deps/findme.Plo
    /bin/sh ../libtool --tag=CC   --mode=link i686-w64-mingw32-gcc  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all  -L/3rdparty/lib -o libpopt.la  popt.lo poptconfig.lo popthelp.lo poptparse.lo findme.lo  
    libtool: link: ar cru .libs/libpopt.a .libs/popt.o .libs/poptconfig.o .libs/popthelp.o .libs/poptparse.o .libs/findme.o 
    libtool: link: ranlib .libs/libpopt.a
    libtool: link: ( cd ".libs" && rm -f "libpopt.la" && cp -p "../libpopt.la" "libpopt.la" )
    make[2]: Leaving directory `/sources/build32/pkg-config/build/popt'
    Making all in .
    make[2]: Entering directory `/sources/build32/pkg-config/build'
    i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../pkg-config-0.26 -DPKG_CONFIG_PC_PATH="\"\/3rdparty\/lib\/pkgconfig:\/3rdparty\/share\/pkgconfig\"" -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"\/usr\/include\"" -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"\/usr\/lib\"" -I/3rdparty/include/glib-2.0 -I/3rdparty/lib/glib-2.0/include -mms-bitfields -I../pkg-config-0.26/popt  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT pkg.o -MD -MP -MF .deps/pkg.Tpo -c -o pkg.o ../pkg-config-0.26/pkg.c
    i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../pkg-config-0.26 -DPKG_CONFIG_PC_PATH="\"\/3rdparty\/lib\/pkgconfig:\/3rdparty\/share\/pkgconfig\"" -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"\/usr\/include\"" -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"\/usr\/lib\"" -I/3rdparty/include/glib-2.0 -I/3rdparty/lib/glib-2.0/include -mms-bitfields -I../pkg-config-0.26/popt  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT parse.o -MD -MP -MF .deps/parse.Tpo -c -o parse.o ../pkg-config-0.26/parse.c
    i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../pkg-config-0.26 -DPKG_CONFIG_PC_PATH="\"\/3rdparty\/lib\/pkgconfig:\/3rdparty\/share\/pkgconfig\"" -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"\/usr\/include\"" -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"\/usr\/lib\"" -I/3rdparty/include/glib-2.0 -I/3rdparty/lib/glib-2.0/include -mms-bitfields -I../pkg-config-0.26/popt  -I/3rdparty/include  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o ../pkg-config-0.26/main.c
    ../pkg-config-0.26/pkg.c: In function 'scan_dir':
    ../pkg-config-0.26/pkg.c:159:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
    ../pkg-config-0.26/pkg.c: In function 'verify_package':
    ../pkg-config-0.26/pkg.c:819:21: warning: unknown escape sequence: '\/' [enabled by default]
    ../pkg-config-0.26/pkg.c:819:21: warning: unknown escape sequence: '\/' [enabled by default]
    ../pkg-config-0.26/pkg.c:892:21: warning: unknown escape sequence: '\/' [enabled by default]
    ../pkg-config-0.26/pkg.c:892:21: warning: unknown escape sequence: '\/' [enabled by default]
    mv -f .deps/parse.Tpo .deps/parse.Po
    mv -f .deps/pkg.Tpo .deps/pkg.Po
    mv -f .deps/main.Tpo .deps/main.Po
    /bin/sh ./libtool --tag=CC   --mode=link i686-w64-mingw32-gcc  -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all  -L/3rdparty/lib -o pkg-config.exe pkg.o parse.o main.o -L/3rdparty/lib -lglib-2.0 -lintl  popt/libpopt.la 
    libtool: link: i686-w64-mingw32-gcc -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -o .libs/pkg-config.exe pkg.o parse.o main.o  -L/3rdparty/lib /3rdparty/lib/libglib-2.0.dll.a -lws2_32 -lole32 -lwinmm -lshlwapi /3rdparty/lib/libintl.dll.a /3rdparty/lib/libiconv.dll.a popt/.libs/libpopt.a -L/3rdparty/lib
    pkg.o:pkg.c:(.text+0xf54): undefined reference to `g_win32_get_package_installation_subdirectory'
    pkg.o:pkg.c:(.text+0xf72): undefined reference to `g_win32_get_package_installation_subdirectory'
    c:/sdk/x86/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: pkg.o: bad reloc address 0x33c in section `.rdata'
    c:/sdk/x86/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
    collect2: ld returned 1 exit status
    make[2]: *** [pkg-config.exe] Error 1
    make[2]: Leaving directory `/sources/build32/pkg-config/build'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/sources/build32/pkg-config/build'
    make: *** [all] Error 2
    
     
  • rubenvb

    rubenvb - 2012-05-18

    I cannot reproduce the failure building on Windows under MSYS (GSL built and tested without failures). I also noticed that pkg-config doesn't configure on Windows, so I guess you're using the linux cross-compiler. I will check this out in a bit.

     
  • Alexx83

    Alexx83 - 2012-05-18

    I using i686-w64-mingw32-gcc-4.6.3-release-win32_rubenvb.7z and x86_64-w64-mingw32-gcc-4.6.3-release-win32_rubenvb.7z compilers. On x86_64 all programs compile fine, but on i686 fails gsl and pkg-config. I use msys under win2008 server enterprise.

     
  • rubenvb

    rubenvb - 2012-05-18

    OK, using the compiler options you used:

    -O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all
    

    I can reproduce the problem. This is a GCC 4.6 problem. When I switch to 4.7.0, I do not have this ICE. I suggest you do the same (or disable the graphite optimizations for this specific build).

    How do you configure pkgbuild? I get a glibc not found error.

     
  • rubenvb

    rubenvb - 2012-05-18

    Make that Glib, obviously. pkg-config seems like a pita to build. Any steps I can follow to try and reproduce?

     
  • Alexx83

    Alexx83 - 2012-05-19

    I can get you my scripts with patches to build packages. Do you have the opportunity to try to compile them?
    Links:
    1.  Update to msys autotools
    http://ifolder.ru/30576073
    2. Build scripts (under msys)
    http://ifolder.ru/30576050 (only scripts)

    On MSYS fstab I do 2 mount ponts: /3rdparty and /sources. Extract scripts to /sources. To build programs:

    cd /sources
    sh build32.sh #on i686 mingw
    sh build64.sh #on x86_64 mingw
    
     

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

Sign up for the SourceForge newsletter:





No, thanks