Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-427

Build ATS with clang

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.6
    • 2.1.4
    • Build
    • None
    • OS: Any; Clang --version:
      clang version 1.1 (branches/release_27)
      Target: x86_64-pc-linux-gnu
      Thread model: posix

    Description

      I've started compiling, and cleaning up traffic-server from trunk with clang, with this config:

      i.galic@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] % cat config.notnice
      #! /bin/sh
      #

      1. Created by configure

      CC="clang"; export CC
      CXX="clang"; export CXX
      CFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CFLAGS
      CXXFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CXXFLAGS
      LDFLAGS="Wl,as-needed -Wl,-warn-common"; export LDFLAGS
      "./configure" \
      "--enable-layout=opt" \
      "--with-user=proxy" \
      "--with-group=proxy" \
      "CC=clang" \
      "CFLAGS=-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2" \
      "LDFLAGS=Wl,-as-needed" \
      "CXX=clang" \
      "$@"
      i.galic@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] %

      Until I hit errors that seemed to include templates.
      I'm uploading the current patch for you to sanity-check and review. If it makes sense, I suppose it does a bit of a clean-up.

      Attachments

        1. ats.clang.patch
          4 kB
          Igor Galić
        2. ats.clang.compile.patch
          27 kB
          Igor Galić
        3. ats.clang.patch
          32 kB
          Igor Galić
        4. ats_clang_stuck.strace
          1.00 MB
          Igor Galić
        5. ats-trunk.clang-trunk.patch
          28 kB
          Igor Galić

        Activity

          People

            jplevyak John Plevyak
            i.galic Igor Galić
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: