Opened 16 months ago

Last modified 9 months ago

#27468 assigned enhancement

CI: add builds with the latest clang and gcc

Reported by: teor Owned by:
Priority: High Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-ci, 035-deferred-20190115, 041-proposed, teor-unreached-2019-03-08
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

We could add the latest gcc and clang to our Travis matrix.

Travis is running older gcc and clang versions:

  • Linux: Ubuntu's older clang and gcc
  • macOS: Apple's custom clang, no gcc

Appveyor is already running gcc 8.2, and it seems to be updated every 6-12 months.

Child Tickets

Change History (7)

comment:1 Changed 15 months ago by teor

Parent ID: #27389

comment:2 Changed 15 months ago by teor

The exact compiler versions are:

Appveyor:

/mingw64/bin/x86_64-w64-mingw32-gcc
x86_64-w64-mingw32-gcc.exe (Rev1, Built by MSYS2 project) 8.2.0

https://ci.appveyor.com/project/torproject/tor/build/1.0.812/job/b6u0ch7yee8k9wbq?fullLog=true#L117

/mingw32/bin/i686-w64-mingw32-gcc
i686-w64-mingw32-gcc.exe (Rev2, Built by MSYS2 project) 7.3.0

https://ci.appveyor.com/project/torproject/tor/build/1.0.812/job/p6n8jma1xb6adci1?fullLog=true#L116

Travis:

Linux:

gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
...
clang version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-5.0.0/bin

https://travis-ci.org/torproject/tor/jobs/426696914#L27

macOS:

LLVM version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode-9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

https://travis-ci.org/torproject/tor/jobs/426696919#L40

Unfortunately, this isn't very useful, because Apple's open-source clangs stop at 800:
https://opensource.apple.com/source/clang/

But that's ok, because we should run unusual compilers on Linux, because it's faster.

comment:3 Changed 15 months ago by teor

Firefox will soon build with mingw-clang, so we should add it to Tor's CI.

comment:4 Changed 15 months ago by nickm

Parent ID: #27389

comment:5 Changed 15 months ago by nickm

Priority: MediumHigh

comment:6 Changed 11 months ago by nickm

Keywords: 035-deferred-20190115 041-proposed added
Milestone: Tor: 0.3.5.x-finalTor: unspecified

These tickets are all deferred from 0.3.5, since they are about updating CI and/or chutney settings.

comment:7 Changed 9 months ago by teor

Keywords: teor-unreached-2019-03-08 added
Owner: teor deleted

I'd like to do these tickets, but not in the next few months.

Note: See TracTickets for help on using tickets.