XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • build
    • None

    Description

      Failed to build gpdb on Fedora-36:

      + /usr/lib/rpm/generate-rpm-note.sh gpdb 5.28.5-1.fc36 x86_64
      + cd gpdb-5.28.5
      + bash /home/workspace/bigtop-fedora36/build/gpdb/rpm/SOURCES/do-component-configure /usr/lib/gpdb
      + ./configure --prefix=/usr/lib/gpdb --disable-orca CFLAGS=-fcommon
      checking build system type... x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking which template to use... linux
      checking whether to build with 64-bit integer date/time support... yes
      checking for default port number... 5432
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... configure: error: in `/home/workspace/bigtop-fedora36/build/gpdb/rpm/BUILD/gpdb-5.28.5':
      configure: error: cannot run C compiled programs.
      If you meant to cross compile, use `--host'.
      See `config.log' for more details
      error: Bad exit status from /var/tmp/rpm-tmp.8tBwdc (%build)
      
      RPM build errors:
          Bad exit status from /var/tmp/rpm-tmp.8tBwdc (%build)
      
      > Task :gpdb-rpm FAILED
      

      The config.log:

      configure:4301: gcc -o conftest -fcommon  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/home/workspace/bigtop/build/gpdb/rpm//BUILD/gpdb-5.28.5/.package_note-gpdb-5.28.5-1.fc36.x86_64.ld conftest.c  >&5
      /usr/bin/ld: /tmp/cc7lGNfq.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
      collect2: error: ld returned 1 exit status
      configure:4305: $? = 1
      configure:4312: ./conftest
      ./configure: line 4314: ./conftest: No such file or directory
      configure:4316: $? = 127
      
      

      Attachments

        Activity

          People

            yoda-mon Leona Yoda
            yqGu Yuqi Gu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m