Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000727Taste[All Projects] Orchestratorpublic2017-12-13 13:492018-06-13 15:34
Reportermiguel_munoz 
Assigned Tottsiodras 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusacknowledgedResolutionopen 
Platformx86OSLinuxOS Version
Summary0000727:

Compile option -std=c99 set by the orchestrator

Description

The Orchestrator enforces the usage of the C99 standard in user code, adding the flag -std=c99 to the compile command. This may prevent using third-party libraries that rely on newer versions of the standard or on compiler-specific features, as their include files may contain features not supported with that compiler option.

The choice of language version should be left to the user, and not imposed by the tool. The necessary compiler options can be added using the mechanism of TASTE directives.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003372)
maxime (administrator)
2018-06-13 14:30

Have you tried to remove -std=c99 and does everything build as expected on your side?
If the regression passes without that flag I have no objection to remove it from the build scripts.

(0003374)
miguel_munoz (developer)
2018-06-13 15:34

I didn't try to remove the option.

This is not causing any issues for our build (apart from the escaping of '='). We need a modern version of c++ for some libraries, but this doesn't conflict with this flag: gcc takes both options -std=c99 and -std=c++11 at the same time, and uses the one passed last (c++11).

Nevertheless, this is just lucky: gcc retains the last option passed (c++11), and TASTE builds the compilation command in the right order (gcc ... ... ).

If this changes in the future, it might cause problems. I'd recommend not enforcing the -std=c99 option, but in any case it's not an issue for our usage of the tool.

See also: https://stackoverflow.com/questions/40563269/passing-multiple-std-switches-to-g?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa [^]


- Issue History
Date Modified Username Field Change
2017-12-13 13:49 miguel_munoz New Issue
2017-12-13 13:49 miguel_munoz Status

new => assigned

2017-12-13 13:49 miguel_munoz Assigned To

=> ttsiodras

2018-01-19 08:50 maxime Status

assigned => acknowledged

2018-06-13 14:30 maxime Note Added: 0003372
2018-06-13 15:34 miguel_munoz Note Added: 0003374


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker