Project

General

Profile

Actions

Task #2404

closed

Incorrect compiler defaults on FreeBSD platform

Added by Alex Afanasyev over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
01/22/2015
Due date:
% Done:

100%

Estimated time:

Description

Our waf is not using correct compiler defaults on FreeBSD 10.1. It first checks for g++, which is actually symlinked to clang. When in our scripts we check versions, waf still thinks it uses gcc compiler and we incorrectly fail the compilation with the error that the compiler is too old.

The current workaround is to explicitly tell waf to detect clang compiler:

./waf configure --check-cxx-compiler=clang++

There are two ways how things can get improved:

  • We should set correct defaults for FreeBSD platform (e.g., compiler check order should be: clang++, g++)

  • We can make compiler version check an advisory. In other words, instead of failing the compilation, we can just warn that we expect the compilation to fail.


Related issues 1 (0 open1 closed)

Related to NFD - Task #2168: Jenkins: FreeBSD 10.1 slaveClosedAshlesh Gawande

Actions
Actions

Also available in: Atom PDF