[Openmp-commits] [PATCH] D59736: Fix interoperability test compilation on FreeBSD

Dimitry Andric via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sat Mar 23 07:44:35 PDT 2019


dim created this revision.
dim added reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim.
Herald added a subscriber: jdoerfert.
Herald added a project: OpenMP.

While building the 8.0 releases on FreeBSD, I encountered the following
error in the regression tests, where ompt/misc/interoperability.cpp
failed to compile, with:

  projects/openmp/runtime/test/ompt/misc/interoperability.cpp:7:10: fatal error: 'alloca.h' file not found
  #include <alloca.h>
           ^~~~~~~~~~

Like on NetBSD, alloca(3) is defined in <stdlib.h> instead.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D59736

Files:
  runtime/test/ompt/misc/interoperability.cpp


Index: runtime/test/ompt/misc/interoperability.cpp
===================================================================
--- runtime/test/ompt/misc/interoperability.cpp
+++ runtime/test/ompt/misc/interoperability.cpp
@@ -3,7 +3,7 @@
 
 #include <iostream>
 #include <thread>
-#if !defined(__NetBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
 #include <alloca.h>
 #else
 #include <cstdlib>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59736.191996.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190323/53948f36/attachment.bin>


More information about the Openmp-commits mailing list