From 1d8a82e19b1434d915b581fa80dd5d4da47ea2df Mon Sep 17 00:00:00 2001 From: James Newling Date: Wed, 26 Jun 2024 17:04:04 -0700 Subject: [PATCH 1/2] Remove print statement (pollutes logging of a compiler which uses bootgen) --- cdo-driver/cdo_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cdo-driver/cdo_driver.c b/cdo-driver/cdo_driver.c index 08b1c7b..6e8e6e6 100755 --- a/cdo-driver/cdo_driver.c +++ b/cdo-driver/cdo_driver.c @@ -145,7 +145,6 @@ void startCDOFileStream(const char* cdoFileName) printf("File could not be opened, fopen Error: %s\n", strerror(errno)); exit(EXIT_FAILURE); } - printf("Generating: %s\n", cdoFileName); } void endCurrentCDOFileStream() From e4e4486d25ca6f4f1e7766be9baad87205992927 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sun, 26 Apr 2026 22:01:22 -0400 Subject: [PATCH 2/2] Build: portability fixes for non-Linux/non-MSVC builds - cdo-alloc.c, cdo-npi.c: drop include. malloc/free are already available through on POSIX, and is glibc-specific (absent on macOS / BSD). - main.cpp: drop the OpenSSL `applink.c` include that was guarded by _WIN32. applink.c is for MSVC link compatibility and is not present in modern OpenSSL distributions; the include breaks Windows builds against OpenSSL 3.x without providing any value on MinGW or recent MSVC + vcpkg builds. Surface: clean cross-platform compile of the bootgen sources that mlir-aie consumes via its submodule pin. --- cdo-alloc.c | 2 +- cdo-npi.c | 2 +- main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdo-alloc.c b/cdo-alloc.c index e3a8cb3..aae69b3 100755 --- a/cdo-alloc.c +++ b/cdo-alloc.c @@ -18,7 +18,7 @@ #include #include #include -#include + #include #include "cdo-alloc.h" diff --git a/cdo-npi.c b/cdo-npi.c index d357724..7226ff6 100755 --- a/cdo-npi.c +++ b/cdo-npi.c @@ -18,7 +18,7 @@ #include #include #include -#include + #include #include #include diff --git a/main.cpp b/main.cpp index 2346d5b..708656c 100755 --- a/main.cpp +++ b/main.cpp @@ -36,7 +36,7 @@ #include "encryption-zynqmp.h" #ifdef _WIN32 -#include "openssl/ms/applink.c" + #endif static const char* time_stamp = __TIME__; static const char* date_stamp = __DATE__;