Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6810

hadoop-mapreduce-client-nativetask compilation broken on GCC-6.2.1

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 3.0.0-alpha2
    • None
    • None

    Description

      I recently upgraded from Fedora 22 to Fedora 25 (I'm assuming this means the latest and greatest compilers, cmake etc.) My trunk build failed with this error:

      [WARNING] /home/raviprak/Code/hadoop/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/Log.h:35:67: error: unable to find string literal operatoroperator""_fmt_’ with ‘const char [37]’, ‘long unsigned int’ arguments
      [WARNING]      fprintf(LOG_DEVICE, "%02d/%02d/%02d %02d:%02d:%02d INFO "_fmt_"\n", \
      

      https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/3/html/User_Guide/sect-Changes_in_Version_3.0-GCC.html

      This applies to any string literal followed without white space by some macro. To fix this, add some white space between the string literal and the macro name.

      Attachments

        1. MAPREDUCE-6810.01.patch
          1.0 kB
          Ravi Prakash

        Activity

          People

            raviprak Ravi Prakash
            raviprak Ravi Prakash
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: