Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2171

Can't build 32bit xerces-c on new redhat8 64bit server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Build
    • None

    Description

      Hello,Admin,

          You know,Redhat upgrade to 8 in 2019.5, so we need build xerces-c 64bit &32bit on new OS version.

        64bit build is ok but 32bit build failed.

       My build env is Redhat 8 64bit server.and gcc version is below:

      [root@rhel8-mcas61 xerces-c-3.1.1]# rpm -qa|grep gcc
      libgcc-8.2.1-3.5.el8.i686
      gcc-gdb-plugin-8.2.1-3.5.el8.i686
      libgcc-8.2.1-3.5.el8.x86_64
      gcc-c++-8.2.1-3.5.el8.x86_64
      gcc-8.2.1-3.5.el8.x86_64
      gcc-plugin-devel-8.2.1-3.5.el8.i686

       

      build error below:

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libpthread.so when searching for -lpthread

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libpthread.a when searching for -lpthread

      /usr/bin/ld: skipping incompatible /lib/../lib64/libpthread.so when searching for -lpthread

      /usr/bin/ld: skipping incompatible /lib/../lib64/libpthread.a when searching for -lpthread

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libpthread.so when searching for -lpthread

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libpthread.a when searching for -lpthread

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/libstdc+.so when searching for -lstdc+

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libm.so when searching for -lm

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libm.a when searching for -lm

      /usr/bin/ld: skipping incompatible /lib/../lib64/libm.so when searching for -lm

      /usr/bin/ld: skipping incompatible /lib/../lib64/libm.a when searching for -lm

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libm.so when searching for -lm

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libm.a when searching for -lm

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libc.so when searching for -lc

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libc.a when searching for -lc

      /usr/bin/ld: skipping incompatible /lib/../lib64/libc.so when searching for -lc

      /usr/bin/ld: skipping incompatible /lib/../lib64/libc.a when searching for -lc

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libc.so when searching for -lc

      /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libc.a when searching for -lc

      /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/libgcc_s.so when searching for -lgcc_s

      /usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o' is incompatible with i386 output

      /usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/8/crtbeginS.o' is incompatible with i386 output

      /usr/bin/ld: i386:x86-64 architecture of input file `.libs/stricmp.o' is incompatible with i386 output

      /usr/bin/ld: i386:x86-64 architecture of input file `.libs/strnicmp.o' is incompatible with i386 output

      /usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/8/crtendS.o' is incompatible with i386 output

      /usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o' is incompatible with i386 output

      collect2: error: ld returned 1 exit status

      make[4]: *** [Makefile:3471: libxerces-c.la] Error 1

      make[3]: *** [Makefile:4563: all-recursive] Error 1

      make[2]: *** [Makefile:2403: all] Error 2

      make[1]: *** [Makefile:409: all-recursive] Error 1

      make: *** [Makefile:304: all] Error 2

       

      my build procedure is :

       

      build xerces-c procedure:

       

      on redhat8 server (rhel8-mcas61)

       

      mkdir /opt/xerces-c/xerces-c-3.1.1

       

      cd /opt/xerces-c/xerces-c-3.1.1

       

      downloag xerces-c-3.1.1.tar.gz to ths dir from [http://archive.apache.org/dist/xerces/c/]

       

      tar -zxvf xerces-c-3.1.1.tar.gz

       

      for 64 bit:

       

      ./configure –prefix=/opt/xerces-c/xerces-c-3.1.1/install64 CC=gcc CXX=g++ CFLAGS=-O3 CXXFLAGS=-O3

       

       

      for 32 bit:

       

      ./configure –prefix=/opt/xerces-c/xerces-c-3.1.1/install32 CC=gcc CXX=g++ CFLAGS=-O3 CXXFLAGS=-m32

       

       

      make clean

       

      make

       

      make install

       

      attached file is 32bit build log.

       

      can you help chexk this issus?

       

      Thanks

       

      Attachments

        1. build32.log
          41 kB
          le luo

        Activity

          People

            Unassigned Unassigned
            lluo005 le luo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: