[crypto] New Release

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[crypto] New Release

Alex Remily
Just checking in on the status of the 1.1 release.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

garydgregory
The challenge is getting everything set up just right for building the
various OS profiles. This component is quite different in this regard,
getting help from the original contributors would be helpful.

After much fiddling to install the proper packages, this builds OK:

mvn package -DskipTests -P linux64
mvn package -DskipTests -P linux32

But these do not:
mvn package -DskipTests -P win64
mvn package -DskipTests -P win32

due to:

[INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
[INFO] Executing tasks

make:
     [exec] make native CROSS_PREFIX=x86_64-w64-mingw32- OS_NAME=Windows
OS_ARCH=x86_64
     [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
     [exec] x86_64-w64-mingw32-gcc
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
-Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
-I"src/main/native/org/apache/commons/crypto/"
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
-I"target/jni-classes/org/apache/commons/crypto/cipher"
-I"target/jni-classes/org/apache/commons/crypto/random" -c
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
-o
target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
     [exec] Makefile:54: recipe for target
'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
failed
     [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
     [exec] Makefile:82: recipe for target 'win64' failed
     [exec] In file included from
src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
     [exec]                  from
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
     [exec]
src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
fatal error: Windows.h: No such file or directory
     [exec]  #include <Windows.h>
     [exec]           ^~~~~~~~~~~
     [exec] compilation terminated.
     [exec] make[1]: ***
[target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
Error 1
     [exec] make: *** [win64] Error 2
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  10.107 s
[INFO] Finished at: 2020-06-13T13:58:50Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
commons-crypto: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec failonerror="true"
dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
/mnt/c/git/commons-crypto/target/antrun/build-make.xml

I have:

/mnt/c/git/commons-crypto# find /usr -name windows.h
/usr/i686-w64-mingw32/include/windows.h
/usr/share/mingw-w64/include/windows.h
/usr/x86_64-w64-mingw32/include/windows.h

Case matters here, so I wonder if the original others did not cross compile
from Linux and instead built a little here, a little there, and so on.

I can see "-Ilib/inc_win" in the build but I am not sure where that is
supposed to be...

Building with mac64 profile is no better:

mvn package -DskipTests -P mac64

[INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
[INFO] Executing tasks

make:
     [exec] make native OS_NAME=Mac OS_ARCH=x86_64
     [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
     [exec] gcc -arch x86_64 -Ilib/inc_mac
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
-mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
-I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
-I"src/main/native/org/apache/commons/crypto/"
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
-I"target/jni-classes/org/apache/commons/crypto/cipher"
-I"target/jni-classes/org/apache/commons/crypto/random" -c
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
-o
target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
     [exec] Makefile:54: recipe for target
'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
failed
     [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
     [exec] Makefile:88: recipe for target 'mac64' failed
     [exec] gcc: error: x86_64: No such file or directory
     [exec] gcc: error: unrecognized command line option ‘-arch’; did you
mean ‘-march=’?
     [exec] gcc: error: unrecognized command line option
‘-mmacosx-version-min=10.7’
     [exec] make[1]: ***
[target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
Error 1
     [exec] make: *** [mac64] Error 2
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  12.513 s
[INFO] Finished at: 2020-06-13T14:08:40Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
commons-crypto: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec failonerror="true"
dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
/mnt/c/git/commons-crypto/target/antrun/build-make.xml

Same kind of issue with the linux-arm profile:

[INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
[INFO] Executing tasks

make:
     [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
OS_ARCH=arm
     [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
     [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
-fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
-I"src/main/native/org/apache/commons/crypto/"
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
-I"target/jni-classes/org/apache/commons/crypto/cipher"
-I"target/jni-classes/org/apache/commons/crypto/random" -c
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
-o
target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
     [exec] Makefile:54: recipe for target
'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
failed
     [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
     [exec] Makefile:101: recipe for target 'linux-arm' failed
     [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
directory
     [exec] compilation terminated.
     [exec] make[1]: ***
[target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
Error 1
     [exec] make: *** [linux-arm] Error 2
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  10.906 s
[INFO] Finished at: 2020-06-13T14:13:37Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
commons-crypto: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec failonerror="true"
dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
/mnt/c/git/commons-crypto/target/antrun/build-make.xml

Same kind of issue with the linux-armhf profile:

[INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
[INFO] Executing tasks

make:
     [exec] make native CROSS_PREFIX=arm-linux-gnueabihf- OS_NAME=Linux
OS_ARCH=armhf
     [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
     [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
-fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
-I"src/main/native/org/apache/commons/crypto/"
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
-I"target/jni-classes/org/apache/commons/crypto/cipher"
-I"target/jni-classes/org/apache/commons/crypto/random" -c
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
-o
target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
     [exec] Makefile:54: recipe for target
'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
failed
     [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
     [exec] Makefile:105: recipe for target 'linux-armhf' failed
     [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
directory
     [exec] compilation terminated.
     [exec] make[1]: ***
[target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
Error 1
     [exec] make: *** [linux-armhf] Error 2
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  10.400 s
[INFO] Finished at: 2020-06-13T14:16:53Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
commons-crypto: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec failonerror="true"
dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
/mnt/c/git/commons-crypto/target/antrun/build-make.xml

For the  linux-aarch64 profile, I need to install the proper package:

[INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
[INFO] Executing tasks

make:
     [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
OS_ARCH=aarch64
     [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
     [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2 -fPIC
-fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
-I"src/main/native/org/apache/commons/crypto/"
-I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
-I"target/jni-classes/org/apache/commons/crypto/cipher"
-I"target/jni-classes/org/apache/commons/crypto/random" -c
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
-o
target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
     [exec] Makefile:54: recipe for target
'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
failed
     [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
     [exec] Makefile:109: recipe for target 'linux-aarch64' failed
     [exec] In file included from
src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
     [exec]                  from
src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
     [exec]                  from
src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
     [exec] /usr/include/openssl/aes.h:13:11: fatal error:
openssl/opensslconf.h: No such file or directory
     [exec]  # include <openssl/opensslconf.h>
     [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] compilation terminated.
     [exec] make[1]: ***
[target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
Error 1
     [exec] make: *** [linux-aarch64] Error 2
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  10.943 s
[INFO] Finished at: 2020-06-13T14:19:44Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
commons-crypto: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec failonerror="true"
dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
/mnt/c/git/commons-crypto/target/antrun/build-make.xml

Thoughts?

Gary

On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]> wrote:

> Just checking in on the status of the 1.1 release.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Matt Sicker
Are the Windows headers even available when using Ming32 or Cygwin?
That sounds more like a Visual Studio compiler thing.

On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]> wrote:

>
> The challenge is getting everything set up just right for building the
> various OS profiles. This component is quite different in this regard,
> getting help from the original contributors would be helpful.
>
> After much fiddling to install the proper packages, this builds OK:
>
> mvn package -DskipTests -P linux64
> mvn package -DskipTests -P linux32
>
> But these do not:
> mvn package -DskipTests -P win64
> mvn package -DskipTests -P win32
>
> due to:
>
> [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> [INFO] Executing tasks
>
> make:
>      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32- OS_NAME=Windows
> OS_ARCH=x86_64
>      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
>      [exec] x86_64-w64-mingw32-gcc
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> -I"src/main/native/org/apache/commons/crypto/"
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> -o
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
>      [exec] Makefile:54: recipe for target
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> failed
>      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
>      [exec] Makefile:82: recipe for target 'win64' failed
>      [exec] In file included from
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
>      [exec]                  from
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
>      [exec]
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> fatal error: Windows.h: No such file or directory
>      [exec]  #include <Windows.h>
>      [exec]           ^~~~~~~~~~~
>      [exec] compilation terminated.
>      [exec] make[1]: ***
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> Error 1
>      [exec] make: *** [win64] Error 2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  10.107 s
> [INFO] Finished at: 2020-06-13T13:58:50Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> commons-crypto: An Ant BuildException has occured: exec returned: 2
> [ERROR] around Ant part ...<exec failonerror="true"
> dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
>
> I have:
>
> /mnt/c/git/commons-crypto# find /usr -name windows.h
> /usr/i686-w64-mingw32/include/windows.h
> /usr/share/mingw-w64/include/windows.h
> /usr/x86_64-w64-mingw32/include/windows.h
>
> Case matters here, so I wonder if the original others did not cross compile
> from Linux and instead built a little here, a little there, and so on.
>
> I can see "-Ilib/inc_win" in the build but I am not sure where that is
> supposed to be...
>
> Building with mac64 profile is no better:
>
> mvn package -DskipTests -P mac64
>
> [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> [INFO] Executing tasks
>
> make:
>      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
>      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
>      [exec] gcc -arch x86_64 -Ilib/inc_mac
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> -I"src/main/native/org/apache/commons/crypto/"
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> -o
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
>      [exec] Makefile:54: recipe for target
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> failed
>      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
>      [exec] Makefile:88: recipe for target 'mac64' failed
>      [exec] gcc: error: x86_64: No such file or directory
>      [exec] gcc: error: unrecognized command line option ‘-arch’; did you
> mean ‘-march=’?
>      [exec] gcc: error: unrecognized command line option
> ‘-mmacosx-version-min=10.7’
>      [exec] make[1]: ***
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> Error 1
>      [exec] make: *** [mac64] Error 2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  12.513 s
> [INFO] Finished at: 2020-06-13T14:08:40Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> commons-crypto: An Ant BuildException has occured: exec returned: 2
> [ERROR] around Ant part ...<exec failonerror="true"
> dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
>
> Same kind of issue with the linux-arm profile:
>
> [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> [INFO] Executing tasks
>
> make:
>      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> OS_ARCH=arm
>      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
>      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> -I"src/main/native/org/apache/commons/crypto/"
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> -o
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
>      [exec] Makefile:54: recipe for target
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> failed
>      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
>      [exec] Makefile:101: recipe for target 'linux-arm' failed
>      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> directory
>      [exec] compilation terminated.
>      [exec] make[1]: ***
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> Error 1
>      [exec] make: *** [linux-arm] Error 2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  10.906 s
> [INFO] Finished at: 2020-06-13T14:13:37Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> commons-crypto: An Ant BuildException has occured: exec returned: 2
> [ERROR] around Ant part ...<exec failonerror="true"
> dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
>
> Same kind of issue with the linux-armhf profile:
>
> [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> [INFO] Executing tasks
>
> make:
>      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf- OS_NAME=Linux
> OS_ARCH=armhf
>      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
>      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> -I"src/main/native/org/apache/commons/crypto/"
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> -o
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
>      [exec] Makefile:54: recipe for target
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> failed
>      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
>      [exec] Makefile:105: recipe for target 'linux-armhf' failed
>      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> directory
>      [exec] compilation terminated.
>      [exec] make[1]: ***
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> Error 1
>      [exec] make: *** [linux-armhf] Error 2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  10.400 s
> [INFO] Finished at: 2020-06-13T14:16:53Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> commons-crypto: An Ant BuildException has occured: exec returned: 2
> [ERROR] around Ant part ...<exec failonerror="true"
> dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
>
> For the  linux-aarch64 profile, I need to install the proper package:
>
> [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> [INFO] Executing tasks
>
> make:
>      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> OS_ARCH=aarch64
>      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
>      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2 -fPIC
> -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> -I"src/main/native/org/apache/commons/crypto/"
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> -o
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
>      [exec] Makefile:54: recipe for target
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> failed
>      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
>      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
>      [exec] In file included from
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
>      [exec]                  from
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
>      [exec]                  from
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
>      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> openssl/opensslconf.h: No such file or directory
>      [exec]  # include <openssl/opensslconf.h>
>      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
>      [exec] compilation terminated.
>      [exec] make[1]: ***
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> Error 1
>      [exec] make: *** [linux-aarch64] Error 2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  10.943 s
> [INFO] Finished at: 2020-06-13T14:19:44Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> commons-crypto: An Ant BuildException has occured: exec returned: 2
> [ERROR] around Ant part ...<exec failonerror="true"
> dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
>
> Thoughts?
>
> Gary
>
> On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]> wrote:
>
> > Just checking in on the status of the 1.1 release.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >



--
Matt Sicker <[hidden email]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

garydgregory
Hi Matt:

> I have:
>
> /mnt/c/git/commons-crypto# find /usr -name windows.h
> /usr/i686-w64-mingw32/include/windows.h
> /usr/share/mingw-w64/include/windows.h
> /usr/x86_64-w64-mingw32/include/windows.h
>
> Case matters here, so I wonder if the original others did not cross
compile
> from Linux and instead built a little here, a little there, and so on.
>
> I can see "-Ilib/inc_win" in the build but I am not sure where that is
> supposed to be...

Gary

On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:

> Are the Windows headers even available when using Ming32 or Cygwin?
> That sounds more like a Visual Studio compiler thing.
>
> On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]> wrote:
> >
> > The challenge is getting everything set up just right for building the
> > various OS profiles. This component is quite different in this regard,
> > getting help from the original contributors would be helpful.
> >
> > After much fiddling to install the proper packages, this builds OK:
> >
> > mvn package -DskipTests -P linux64
> > mvn package -DskipTests -P linux32
> >
> > But these do not:
> > mvn package -DskipTests -P win64
> > mvn package -DskipTests -P win32
> >
> > due to:
> >
> > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > [INFO] Executing tasks
> >
> > make:
> >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32- OS_NAME=Windows
> > OS_ARCH=x86_64
> >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> >      [exec] x86_64-w64-mingw32-gcc
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > -I"src/main/native/org/apache/commons/crypto/"
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > -o
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> >      [exec] Makefile:54: recipe for target
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > failed
> >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> >      [exec] Makefile:82: recipe for target 'win64' failed
> >      [exec] In file included from
> >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> >      [exec]                  from
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> >      [exec]
> >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > fatal error: Windows.h: No such file or directory
> >      [exec]  #include <Windows.h>
> >      [exec]           ^~~~~~~~~~~
> >      [exec] compilation terminated.
> >      [exec] make[1]: ***
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > Error 1
> >      [exec] make: *** [win64] Error 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  10.107 s
> > [INFO] Finished at: 2020-06-13T13:58:50Z
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > [ERROR] around Ant part ...<exec failonerror="true"
> > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> >
> > I have:
> >
> > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > /usr/i686-w64-mingw32/include/windows.h
> > /usr/share/mingw-w64/include/windows.h
> > /usr/x86_64-w64-mingw32/include/windows.h
> >
> > Case matters here, so I wonder if the original others did not cross
> compile
> > from Linux and instead built a little here, a little there, and so on.
> >
> > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > supposed to be...
> >
> > Building with mac64 profile is no better:
> >
> > mvn package -DskipTests -P mac64
> >
> > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > [INFO] Executing tasks
> >
> > make:
> >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > -I"src/main/native/org/apache/commons/crypto/"
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > -o
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> >      [exec] Makefile:54: recipe for target
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > failed
> >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> >      [exec] Makefile:88: recipe for target 'mac64' failed
> >      [exec] gcc: error: x86_64: No such file or directory
> >      [exec] gcc: error: unrecognized command line option ‘-arch’; did you
> > mean ‘-march=’?
> >      [exec] gcc: error: unrecognized command line option
> > ‘-mmacosx-version-min=10.7’
> >      [exec] make[1]: ***
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > Error 1
> >      [exec] make: *** [mac64] Error 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  12.513 s
> > [INFO] Finished at: 2020-06-13T14:08:40Z
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > [ERROR] around Ant part ...<exec failonerror="true"
> > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> >
> > Same kind of issue with the linux-arm profile:
> >
> > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > [INFO] Executing tasks
> >
> > make:
> >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> > OS_ARCH=arm
> >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> > -I"src/main/native/org/apache/commons/crypto/"
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > -o
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> >      [exec] Makefile:54: recipe for target
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > failed
> >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > directory
> >      [exec] compilation terminated.
> >      [exec] make[1]: ***
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > Error 1
> >      [exec] make: *** [linux-arm] Error 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  10.906 s
> > [INFO] Finished at: 2020-06-13T14:13:37Z
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > [ERROR] around Ant part ...<exec failonerror="true"
> > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> >
> > Same kind of issue with the linux-armhf profile:
> >
> > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > [INFO] Executing tasks
> >
> > make:
> >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf- OS_NAME=Linux
> > OS_ARCH=armhf
> >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> >      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > -I"src/main/native/org/apache/commons/crypto/"
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > -o
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> >      [exec] Makefile:54: recipe for target
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > failed
> >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > directory
> >      [exec] compilation terminated.
> >      [exec] make[1]: ***
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > Error 1
> >      [exec] make: *** [linux-armhf] Error 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  10.400 s
> > [INFO] Finished at: 2020-06-13T14:16:53Z
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > [ERROR] around Ant part ...<exec failonerror="true"
> > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> >
> > For the  linux-aarch64 profile, I need to install the proper package:
> >
> > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > [INFO] Executing tasks
> >
> > make:
> >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> > OS_ARCH=aarch64
> >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2 -fPIC
> > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > -I"src/main/native/org/apache/commons/crypto/"
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > -o
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> >      [exec] Makefile:54: recipe for target
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > failed
> >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> >      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
> >      [exec] In file included from
> >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> >      [exec]                  from
> >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> >      [exec]                  from
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > openssl/opensslconf.h: No such file or directory
> >      [exec]  # include <openssl/opensslconf.h>
> >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> >      [exec] compilation terminated.
> >      [exec] make[1]: ***
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > Error 1
> >      [exec] make: *** [linux-aarch64] Error 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  10.943 s
> > [INFO] Finished at: 2020-06-13T14:19:44Z
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > [ERROR] around Ant part ...<exec failonerror="true"
> > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> >
> > Thoughts?
> >
> > Gary
> >
> > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]>
> wrote:
> >
> > > Just checking in on the status of the 1.1 release.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
>
>
> --
> Matt Sicker <[hidden email]>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Alex Remily
I can't speak to how the original developers did the build, but all
the Windows builds that I did were on a Windows machine.  I always
assumed that the original developers just manually packed the release
jar with artifacts from each supported environment.  I never did any
investigation into the process.  Is cobbling together a release in
that manner really a non-starter here?

Alex

On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]> wrote:

>
> Hi Matt:
>
> > I have:
> >
> > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > /usr/i686-w64-mingw32/include/windows.h
> > /usr/share/mingw-w64/include/windows.h
> > /usr/x86_64-w64-mingw32/include/windows.h
> >
> > Case matters here, so I wonder if the original others did not cross
> compile
> > from Linux and instead built a little here, a little there, and so on.
> >
> > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > supposed to be...
>
> Gary
>
> On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
>
> > Are the Windows headers even available when using Ming32 or Cygwin?
> > That sounds more like a Visual Studio compiler thing.
> >
> > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]> wrote:
> > >
> > > The challenge is getting everything set up just right for building the
> > > various OS profiles. This component is quite different in this regard,
> > > getting help from the original contributors would be helpful.
> > >
> > > After much fiddling to install the proper packages, this builds OK:
> > >
> > > mvn package -DskipTests -P linux64
> > > mvn package -DskipTests -P linux32
> > >
> > > But these do not:
> > > mvn package -DskipTests -P win64
> > > mvn package -DskipTests -P win32
> > >
> > > due to:
> > >
> > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > [INFO] Executing tasks
> > >
> > > make:
> > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32- OS_NAME=Windows
> > > OS_ARCH=x86_64
> > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > >      [exec] x86_64-w64-mingw32-gcc
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > -I"src/main/native/org/apache/commons/crypto/"
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > -o
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > >      [exec] Makefile:54: recipe for target
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > failed
> > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > >      [exec] Makefile:82: recipe for target 'win64' failed
> > >      [exec] In file included from
> > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > >      [exec]                  from
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > >      [exec]
> > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > fatal error: Windows.h: No such file or directory
> > >      [exec]  #include <Windows.h>
> > >      [exec]           ^~~~~~~~~~~
> > >      [exec] compilation terminated.
> > >      [exec] make[1]: ***
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > Error 1
> > >      [exec] make: *** [win64] Error 2
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time:  10.107 s
> > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > [ERROR] around Ant part ...<exec failonerror="true"
> > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > >
> > > I have:
> > >
> > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > /usr/i686-w64-mingw32/include/windows.h
> > > /usr/share/mingw-w64/include/windows.h
> > > /usr/x86_64-w64-mingw32/include/windows.h
> > >
> > > Case matters here, so I wonder if the original others did not cross
> > compile
> > > from Linux and instead built a little here, a little there, and so on.
> > >
> > > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > > supposed to be...
> > >
> > > Building with mac64 profile is no better:
> > >
> > > mvn package -DskipTests -P mac64
> > >
> > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > [INFO] Executing tasks
> > >
> > > make:
> > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > -I"src/main/native/org/apache/commons/crypto/"
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > -o
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > >      [exec] Makefile:54: recipe for target
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > failed
> > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > >      [exec] gcc: error: x86_64: No such file or directory
> > >      [exec] gcc: error: unrecognized command line option ‘-arch’; did you
> > > mean ‘-march=’?
> > >      [exec] gcc: error: unrecognized command line option
> > > ‘-mmacosx-version-min=10.7’
> > >      [exec] make[1]: ***
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > Error 1
> > >      [exec] make: *** [mac64] Error 2
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time:  12.513 s
> > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > [ERROR] around Ant part ...<exec failonerror="true"
> > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > >
> > > Same kind of issue with the linux-arm profile:
> > >
> > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > [INFO] Executing tasks
> > >
> > > make:
> > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> > > OS_ARCH=arm
> > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> > > -I"src/main/native/org/apache/commons/crypto/"
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > -o
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > >      [exec] Makefile:54: recipe for target
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > failed
> > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > directory
> > >      [exec] compilation terminated.
> > >      [exec] make[1]: ***
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > Error 1
> > >      [exec] make: *** [linux-arm] Error 2
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time:  10.906 s
> > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > [ERROR] around Ant part ...<exec failonerror="true"
> > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > >
> > > Same kind of issue with the linux-armhf profile:
> > >
> > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > [INFO] Executing tasks
> > >
> > > make:
> > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf- OS_NAME=Linux
> > > OS_ARCH=armhf
> > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > >      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > > -I"src/main/native/org/apache/commons/crypto/"
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > -o
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > >      [exec] Makefile:54: recipe for target
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > failed
> > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > directory
> > >      [exec] compilation terminated.
> > >      [exec] make[1]: ***
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > Error 1
> > >      [exec] make: *** [linux-armhf] Error 2
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time:  10.400 s
> > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > [ERROR] around Ant part ...<exec failonerror="true"
> > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > >
> > > For the  linux-aarch64 profile, I need to install the proper package:
> > >
> > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > [INFO] Executing tasks
> > >
> > > make:
> > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> > > OS_ARCH=aarch64
> > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2 -fPIC
> > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > -I"src/main/native/org/apache/commons/crypto/"
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > -o
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > >      [exec] Makefile:54: recipe for target
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > failed
> > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > >      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
> > >      [exec] In file included from
> > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > >      [exec]                  from
> > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > >      [exec]                  from
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > openssl/opensslconf.h: No such file or directory
> > >      [exec]  # include <openssl/opensslconf.h>
> > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > >      [exec] compilation terminated.
> > >      [exec] make[1]: ***
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > Error 1
> > >      [exec] make: *** [linux-aarch64] Error 2
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time:  10.943 s
> > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on project
> > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > [ERROR] around Ant part ...<exec failonerror="true"
> > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > >
> > > Thoughts?
> > >
> > > Gary
> > >
> > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]>
> > wrote:
> > >
> > > > Just checking in on the status of the 1.1 release.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> >
> >
> >
> > --
> > Matt Sicker <[hidden email]>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

garydgregory
Except that you can't build on plain Windows because the build uses make
and Microsoft version is called nmake. I might have to cobble up some
cygwin thing...

Gary

On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:

> I can't speak to how the original developers did the build, but all
> the Windows builds that I did were on a Windows machine.  I always
> assumed that the original developers just manually packed the release
> jar with artifacts from each supported environment.  I never did any
> investigation into the process.  Is cobbling together a release in
> that manner really a non-starter here?
>
> Alex
>
> On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]>
> wrote:
> >
> > Hi Matt:
> >
> > > I have:
> > >
> > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > /usr/i686-w64-mingw32/include/windows.h
> > > /usr/share/mingw-w64/include/windows.h
> > > /usr/x86_64-w64-mingw32/include/windows.h
> > >
> > > Case matters here, so I wonder if the original others did not cross
> > compile
> > > from Linux and instead built a little here, a little there, and so on.
> > >
> > > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > > supposed to be...
> >
> > Gary
> >
> > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> >
> > > Are the Windows headers even available when using Ming32 or Cygwin?
> > > That sounds more like a Visual Studio compiler thing.
> > >
> > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]>
> wrote:
> > > >
> > > > The challenge is getting everything set up just right for building
> the
> > > > various OS profiles. This component is quite different in this
> regard,
> > > > getting help from the original contributors would be helpful.
> > > >
> > > > After much fiddling to install the proper packages, this builds OK:
> > > >
> > > > mvn package -DskipTests -P linux64
> > > > mvn package -DskipTests -P linux32
> > > >
> > > > But these do not:
> > > > mvn package -DskipTests -P win64
> > > > mvn package -DskipTests -P win32
> > > >
> > > > due to:
> > > >
> > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > [INFO] Executing tasks
> > > >
> > > > make:
> > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> OS_NAME=Windows
> > > > OS_ARCH=x86_64
> > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > >      [exec] x86_64-w64-mingw32-gcc
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > -o
> > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > >      [exec] Makefile:54: recipe for target
> > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > failed
> > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > >      [exec] In file included from
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > >      [exec]                  from
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > >      [exec]
> > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > fatal error: Windows.h: No such file or directory
> > > >      [exec]  #include <Windows.h>
> > > >      [exec]           ^~~~~~~~~~~
> > > >      [exec] compilation terminated.
> > > >      [exec] make[1]: ***
> > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > Error 1
> > > >      [exec] make: *** [win64] Error 2
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time:  10.107 s
> > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> project
> > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > >
> > > > I have:
> > > >
> > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > /usr/i686-w64-mingw32/include/windows.h
> > > > /usr/share/mingw-w64/include/windows.h
> > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > >
> > > > Case matters here, so I wonder if the original others did not cross
> > > compile
> > > > from Linux and instead built a little here, a little there, and so
> on.
> > > >
> > > > I can see "-Ilib/inc_win" in the build but I am not sure where that
> is
> > > > supposed to be...
> > > >
> > > > Building with mac64 profile is no better:
> > > >
> > > > mvn package -DskipTests -P mac64
> > > >
> > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > [INFO] Executing tasks
> > > >
> > > > make:
> > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > -o
> > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > >      [exec] Makefile:54: recipe for target
> > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > failed
> > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > >      [exec] gcc: error: x86_64: No such file or directory
> > > >      [exec] gcc: error: unrecognized command line option ‘-arch’;
> did you
> > > > mean ‘-march=’?
> > > >      [exec] gcc: error: unrecognized command line option
> > > > ‘-mmacosx-version-min=10.7’
> > > >      [exec] make[1]: ***
> > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > Error 1
> > > >      [exec] make: *** [mac64] Error 2
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time:  12.513 s
> > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> project
> > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > >
> > > > Same kind of issue with the linux-arm profile:
> > > >
> > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > [INFO] Executing tasks
> > > >
> > > > make:
> > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> > > > OS_ARCH=arm
> > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > -o
> > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > >      [exec] Makefile:54: recipe for target
> > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > failed
> > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > directory
> > > >      [exec] compilation terminated.
> > > >      [exec] make[1]: ***
> > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > Error 1
> > > >      [exec] make: *** [linux-arm] Error 2
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time:  10.906 s
> > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> project
> > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > >
> > > > Same kind of issue with the linux-armhf profile:
> > > >
> > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > [INFO] Executing tasks
> > > >
> > > > make:
> > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> OS_NAME=Linux
> > > > OS_ARCH=armhf
> > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > >      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > -o
> > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > >      [exec] Makefile:54: recipe for target
> > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > failed
> > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > directory
> > > >      [exec] compilation terminated.
> > > >      [exec] make[1]: ***
> > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > Error 1
> > > >      [exec] make: *** [linux-armhf] Error 2
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time:  10.400 s
> > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> project
> > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > >
> > > > For the  linux-aarch64 profile, I need to install the proper package:
> > > >
> > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > [INFO] Executing tasks
> > > >
> > > > make:
> > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> > > > OS_ARCH=aarch64
> > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2
> -fPIC
> > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > -o
> > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > >      [exec] Makefile:54: recipe for target
> > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > failed
> > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > >      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
> > > >      [exec] In file included from
> > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > >      [exec]                  from
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > >      [exec]                  from
> > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > openssl/opensslconf.h: No such file or directory
> > > >      [exec]  # include <openssl/opensslconf.h>
> > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > >      [exec] compilation terminated.
> > > >      [exec] make[1]: ***
> > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > Error 1
> > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time:  10.943 s
> > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> project
> > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > >
> > > > Thoughts?
> > > >
> > > > Gary
> > > >
> > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]>
> > > wrote:
> > > >
> > > > > Just checking in on the status of the 1.1 release.
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > >
> > >
> > > --
> > > Matt Sicker <[hidden email]>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Marcelo Vanzin-4
Pretty sure I remember comments in the code about building with mingw
on Windows (not cygwin). That should have a version of make, too,
IIRC.

On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]> wrote:

>
> Except that you can't build on plain Windows because the build uses make
> and Microsoft version is called nmake. I might have to cobble up some
> cygwin thing...
>
> Gary
>
> On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
>
> > I can't speak to how the original developers did the build, but all
> > the Windows builds that I did were on a Windows machine.  I always
> > assumed that the original developers just manually packed the release
> > jar with artifacts from each supported environment.  I never did any
> > investigation into the process.  Is cobbling together a release in
> > that manner really a non-starter here?
> >
> > Alex
> >
> > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]>
> > wrote:
> > >
> > > Hi Matt:
> > >
> > > > I have:
> > > >
> > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > /usr/i686-w64-mingw32/include/windows.h
> > > > /usr/share/mingw-w64/include/windows.h
> > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > >
> > > > Case matters here, so I wonder if the original others did not cross
> > > compile
> > > > from Linux and instead built a little here, a little there, and so on.
> > > >
> > > > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > > > supposed to be...
> > >
> > > Gary
> > >
> > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > >
> > > > Are the Windows headers even available when using Ming32 or Cygwin?
> > > > That sounds more like a Visual Studio compiler thing.
> > > >
> > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]>
> > wrote:
> > > > >
> > > > > The challenge is getting everything set up just right for building
> > the
> > > > > various OS profiles. This component is quite different in this
> > regard,
> > > > > getting help from the original contributors would be helpful.
> > > > >
> > > > > After much fiddling to install the proper packages, this builds OK:
> > > > >
> > > > > mvn package -DskipTests -P linux64
> > > > > mvn package -DskipTests -P linux32
> > > > >
> > > > > But these do not:
> > > > > mvn package -DskipTests -P win64
> > > > > mvn package -DskipTests -P win32
> > > > >
> > > > > due to:
> > > > >
> > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > [INFO] Executing tasks
> > > > >
> > > > > make:
> > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > OS_NAME=Windows
> > > > > OS_ARCH=x86_64
> > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > -o
> > > > >
> > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > >      [exec] Makefile:54: recipe for target
> > > > >
> > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > failed
> > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > >      [exec] In file included from
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > >      [exec]                  from
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > >      [exec]
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > fatal error: Windows.h: No such file or directory
> > > > >      [exec]  #include <Windows.h>
> > > > >      [exec]           ^~~~~~~~~~~
> > > > >      [exec] compilation terminated.
> > > > >      [exec] make[1]: ***
> > > > >
> > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > Error 1
> > > > >      [exec] make: *** [win64] Error 2
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] BUILD FAILURE
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Total time:  10.107 s
> > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > project
> > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > >
> > > > > I have:
> > > > >
> > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > /usr/share/mingw-w64/include/windows.h
> > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > >
> > > > > Case matters here, so I wonder if the original others did not cross
> > > > compile
> > > > > from Linux and instead built a little here, a little there, and so
> > on.
> > > > >
> > > > > I can see "-Ilib/inc_win" in the build but I am not sure where that
> > is
> > > > > supposed to be...
> > > > >
> > > > > Building with mac64 profile is no better:
> > > > >
> > > > > mvn package -DskipTests -P mac64
> > > > >
> > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > [INFO] Executing tasks
> > > > >
> > > > > make:
> > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > -o
> > > > >
> > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > >      [exec] Makefile:54: recipe for target
> > > > >
> > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > failed
> > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > >      [exec] gcc: error: unrecognized command line option ‘-arch’;
> > did you
> > > > > mean ‘-march=’?
> > > > >      [exec] gcc: error: unrecognized command line option
> > > > > ‘-mmacosx-version-min=10.7’
> > > > >      [exec] make[1]: ***
> > > > >
> > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > Error 1
> > > > >      [exec] make: *** [mac64] Error 2
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] BUILD FAILURE
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Total time:  12.513 s
> > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > project
> > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > >
> > > > > Same kind of issue with the linux-arm profile:
> > > > >
> > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > [INFO] Executing tasks
> > > > >
> > > > > make:
> > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> > > > > OS_ARCH=arm
> > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > -o
> > > > >
> > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > >      [exec] Makefile:54: recipe for target
> > > > >
> > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > failed
> > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > > directory
> > > > >      [exec] compilation terminated.
> > > > >      [exec] make[1]: ***
> > > > >
> > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > Error 1
> > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] BUILD FAILURE
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Total time:  10.906 s
> > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > project
> > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > >
> > > > > Same kind of issue with the linux-armhf profile:
> > > > >
> > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > [INFO] Executing tasks
> > > > >
> > > > > make:
> > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > OS_NAME=Linux
> > > > > OS_ARCH=armhf
> > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > -o
> > > > >
> > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > >      [exec] Makefile:54: recipe for target
> > > > >
> > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > failed
> > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > > directory
> > > > >      [exec] compilation terminated.
> > > > >      [exec] make[1]: ***
> > > > >
> > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > Error 1
> > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] BUILD FAILURE
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Total time:  10.400 s
> > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > project
> > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > >
> > > > > For the  linux-aarch64 profile, I need to install the proper package:
> > > > >
> > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > [INFO] Executing tasks
> > > > >
> > > > > make:
> > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> > > > > OS_ARCH=aarch64
> > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2
> > -fPIC
> > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > -o
> > > > >
> > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > >      [exec] Makefile:54: recipe for target
> > > > >
> > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > failed
> > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
> > > > >      [exec] In file included from
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > >      [exec]                  from
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > >      [exec]                  from
> > > > >
> > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > openssl/opensslconf.h: No such file or directory
> > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > >      [exec] compilation terminated.
> > > > >      [exec] make[1]: ***
> > > > >
> > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > Error 1
> > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] BUILD FAILURE
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Total time:  10.943 s
> > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > project
> > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > >
> > > > > Thoughts?
> > > > >
> > > > > Gary
> > > > >
> > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]>
> > > > wrote:
> > > > >
> > > > > > Just checking in on the status of the 1.1 release.
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Matt Sicker <[hidden email]>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >



--
Marcelo Vanzin
[hidden email]
"Life's too short to drink cheap beer"

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Matt Sicker
Use of cmake could be useful for cross platform builds, though I’ve only
used some of the basic functionality so far and can’t comment on how big a
task it is to convert to use.

On Sat, Jun 13, 2020 at 17:26 Marcelo Vanzin <[hidden email]> wrote:

> Pretty sure I remember comments in the code about building with mingw
> on Windows (not cygwin). That should have a version of make, too,
> IIRC.
>
> On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> wrote:
> >
> > Except that you can't build on plain Windows because the build uses make
> > and Microsoft version is called nmake. I might have to cobble up some
> > cygwin thing...
> >
> > Gary
> >
> > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> >
> > > I can't speak to how the original developers did the build, but all
> > > the Windows builds that I did were on a Windows machine.  I always
> > > assumed that the original developers just manually packed the release
> > > jar with artifacts from each supported environment.  I never did any
> > > investigation into the process.  Is cobbling together a release in
> > > that manner really a non-starter here?
> > >
> > > Alex
> > >
> > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]>
> > > wrote:
> > > >
> > > > Hi Matt:
> > > >
> > > > > I have:
> > > > >
> > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > /usr/share/mingw-w64/include/windows.h
> > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > >
> > > > > Case matters here, so I wonder if the original others did not cross
> > > > compile
> > > > > from Linux and instead built a little here, a little there, and so
> on.
> > > > >
> > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> that is
> > > > > supposed to be...
> > > >
> > > > Gary
> > > >
> > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > >
> > > > > Are the Windows headers even available when using Ming32 or Cygwin?
> > > > > That sounds more like a Visual Studio compiler thing.
> > > > >
> > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]
> >
> > > wrote:
> > > > > >
> > > > > > The challenge is getting everything set up just right for
> building
> > > the
> > > > > > various OS profiles. This component is quite different in this
> > > regard,
> > > > > > getting help from the original contributors would be helpful.
> > > > > >
> > > > > > After much fiddling to install the proper packages, this builds
> OK:
> > > > > >
> > > > > > mvn package -DskipTests -P linux64
> > > > > > mvn package -DskipTests -P linux32
> > > > > >
> > > > > > But these do not:
> > > > > > mvn package -DskipTests -P win64
> > > > > > mvn package -DskipTests -P win32
> > > > > >
> > > > > > due to:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > OS_NAME=Windows
> > > > > > OS_ARCH=x86_64
> > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > >      [exec] In file included from
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > >      [exec]
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > fatal error: Windows.h: No such file or directory
> > > > > >      [exec]  #include <Windows.h>
> > > > > >      [exec]           ^~~~~~~~~~~
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [win64] Error 2
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.107 s
> > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > I have:
> > > > > >
> > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > >
> > > > > > Case matters here, so I wonder if the original others did not
> cross
> > > > > compile
> > > > > > from Linux and instead built a little here, a little there, and
> so
> > > on.
> > > > > >
> > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> that
> > > is
> > > > > > supposed to be...
> > > > > >
> > > > > > Building with mac64 profile is no better:
> > > > > >
> > > > > > mvn package -DskipTests -P mac64
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> -I/usr/local/include
> > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > >      [exec] gcc: error: unrecognized command line option ‘-arch’;
> > > did you
> > > > > > mean ‘-march=’?
> > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > ‘-mmacosx-version-min=10.7’
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  12.513 s
> > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Same kind of issue with the linux-arm profile:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> OS_NAME=Linux
> > > > > > OS_ARCH=arm
> > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> file or
> > > > > > directory
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.906 s
> > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Same kind of issue with the linux-armhf profile:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > OS_NAME=Linux
> > > > > > OS_ARCH=armhf
> > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> lib/inc_linux/jni_md.h
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> file or
> > > > > > directory
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.400 s
> > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > For the  linux-aarch64 profile, I need to install the proper
> package:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> OS_NAME=Linux
> > > > > > OS_ARCH=aarch64
> > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac
> -O2
> > > -fPIC
> > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> failed
> > > > > >      [exec] In file included from
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > openssl/opensslconf.h: No such file or directory
> > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.943 s
> > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Thoughts?
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> [hidden email]>
> > > > > wrote:
> > > > > >
> > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Matt Sicker <[hidden email]>
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
>
>
> --
> Marcelo Vanzin
> [hidden email]
> "Life's too short to drink cheap beer"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
> --
Matt Sicker <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Alex Remily
In reply to this post by Marcelo Vanzin-4
I used MinGW64.  It does indeed ship with make.  I can provide a link
to the distribution I used if there's interest.

On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:

>
> Pretty sure I remember comments in the code about building with mingw
> on Windows (not cygwin). That should have a version of make, too,
> IIRC.
>
> On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]> wrote:
> >
> > Except that you can't build on plain Windows because the build uses make
> > and Microsoft version is called nmake. I might have to cobble up some
> > cygwin thing...
> >
> > Gary
> >
> > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> >
> > > I can't speak to how the original developers did the build, but all
> > > the Windows builds that I did were on a Windows machine.  I always
> > > assumed that the original developers just manually packed the release
> > > jar with artifacts from each supported environment.  I never did any
> > > investigation into the process.  Is cobbling together a release in
> > > that manner really a non-starter here?
> > >
> > > Alex
> > >
> > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]>
> > > wrote:
> > > >
> > > > Hi Matt:
> > > >
> > > > > I have:
> > > > >
> > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > /usr/share/mingw-w64/include/windows.h
> > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > >
> > > > > Case matters here, so I wonder if the original others did not cross
> > > > compile
> > > > > from Linux and instead built a little here, a little there, and so on.
> > > > >
> > > > > I can see "-Ilib/inc_win" in the build but I am not sure where that is
> > > > > supposed to be...
> > > >
> > > > Gary
> > > >
> > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > >
> > > > > Are the Windows headers even available when using Ming32 or Cygwin?
> > > > > That sounds more like a Visual Studio compiler thing.
> > > > >
> > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <[hidden email]>
> > > wrote:
> > > > > >
> > > > > > The challenge is getting everything set up just right for building
> > > the
> > > > > > various OS profiles. This component is quite different in this
> > > regard,
> > > > > > getting help from the original contributors would be helpful.
> > > > > >
> > > > > > After much fiddling to install the proper packages, this builds OK:
> > > > > >
> > > > > > mvn package -DskipTests -P linux64
> > > > > > mvn package -DskipTests -P linux32
> > > > > >
> > > > > > But these do not:
> > > > > > mvn package -DskipTests -P win64
> > > > > > mvn package -DskipTests -P win32
> > > > > >
> > > > > > due to:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > OS_NAME=Windows
> > > > > > OS_ARCH=x86_64
> > > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > >      [exec] In file included from
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > >      [exec]
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > fatal error: Windows.h: No such file or directory
> > > > > >      [exec]  #include <Windows.h>
> > > > > >      [exec]           ^~~~~~~~~~~
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [win64] Error 2
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.107 s
> > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > I have:
> > > > > >
> > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > >
> > > > > > Case matters here, so I wonder if the original others did not cross
> > > > > compile
> > > > > > from Linux and instead built a little here, a little there, and so
> > > on.
> > > > > >
> > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where that
> > > is
> > > > > > supposed to be...
> > > > > >
> > > > > > Building with mac64 profile is no better:
> > > > > >
> > > > > > mvn package -DskipTests -P mac64
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include
> > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > >      [exec] gcc: error: unrecognized command line option ‘-arch’;
> > > did you
> > > > > > mean ‘-march=’?
> > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > ‘-mmacosx-version-min=10.7’
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  12.513 s
> > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Same kind of issue with the linux-arm profile:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux
> > > > > > OS_ARCH=arm
> > > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] arm-linux-gnueabi-gcc -include lib/inc_linux/jni_md.h
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > > > directory
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.906 s
> > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Same kind of issue with the linux-armhf profile:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > OS_NAME=Linux
> > > > > > OS_ARCH=armhf
> > > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] arm-linux-gnueabihf-gcc -include lib/inc_linux/jni_md.h
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf' failed
> > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such file or
> > > > > > directory
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.400 s
> > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > For the  linux-aarch64 profile, I need to install the proper package:
> > > > > >
> > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto ---
> > > > > > [INFO] Executing tasks
> > > > > >
> > > > > > make:
> > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux
> > > > > > OS_ARCH=aarch64
> > > > > >      [exec] make[1]: Entering directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -Ilib/inc_mac -O2
> > > -fPIC
> > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > -o
> > > > > >
> > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > >      [exec] Makefile:54: recipe for target
> > > > > >
> > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > failed
> > > > > >      [exec] make[1]: Leaving directory '/mnt/c/git/commons-crypto'
> > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64' failed
> > > > > >      [exec] In file included from
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > >      [exec]                  from
> > > > > >
> > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > openssl/opensslconf.h: No such file or directory
> > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > >      [exec] compilation terminated.
> > > > > >      [exec] make[1]: ***
> > > > > >
> > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > Error 1
> > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] BUILD FAILURE
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [INFO] Total time:  10.943 s
> > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > [INFO]
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > [ERROR] Failed to execute goal
> > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > project
> > > > > > commons-crypto: An Ant BuildException has occured: exec returned: 2
> > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > >
> > > > > > Thoughts?
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <[hidden email]>
> > > > > wrote:
> > > > > >
> > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Matt Sicker <[hidden email]>
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
>
>
> --
> Marcelo Vanzin
> [hidden email]
> "Life's too short to drink cheap beer"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Xeno Amess
I have a feeling about both mingw or cygwin build output will be slower
than microsoft-visual-studio build output...
Just a feeling, but no evidence.

Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:

> I used MinGW64.  It does indeed ship with make.  I can provide a link
> to the distribution I used if there's interest.
>
> On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> >
> > Pretty sure I remember comments in the code about building with mingw
> > on Windows (not cygwin). That should have a version of make, too,
> > IIRC.
> >
> > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> wrote:
> > >
> > > Except that you can't build on plain Windows because the build uses
> make
> > > and Microsoft version is called nmake. I might have to cobble up some
> > > cygwin thing...
> > >
> > > Gary
> > >
> > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > >
> > > > I can't speak to how the original developers did the build, but all
> > > > the Windows builds that I did were on a Windows machine.  I always
> > > > assumed that the original developers just manually packed the release
> > > > jar with artifacts from each supported environment.  I never did any
> > > > investigation into the process.  Is cobbling together a release in
> > > > that manner really a non-starter here?
> > > >
> > > > Alex
> > > >
> > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> >
> > > > wrote:
> > > > >
> > > > > Hi Matt:
> > > > >
> > > > > > I have:
> > > > > >
> > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > >
> > > > > > Case matters here, so I wonder if the original others did not
> cross
> > > > > compile
> > > > > > from Linux and instead built a little here, a little there, and
> so on.
> > > > > >
> > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> that is
> > > > > > supposed to be...
> > > > >
> > > > > Gary
> > > > >
> > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > >
> > > > > > Are the Windows headers even available when using Ming32 or
> Cygwin?
> > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > >
> > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> [hidden email]>
> > > > wrote:
> > > > > > >
> > > > > > > The challenge is getting everything set up just right for
> building
> > > > the
> > > > > > > various OS profiles. This component is quite different in this
> > > > regard,
> > > > > > > getting help from the original contributors would be helpful.
> > > > > > >
> > > > > > > After much fiddling to install the proper packages, this
> builds OK:
> > > > > > >
> > > > > > > mvn package -DskipTests -P linux64
> > > > > > > mvn package -DskipTests -P linux32
> > > > > > >
> > > > > > > But these do not:
> > > > > > > mvn package -DskipTests -P win64
> > > > > > > mvn package -DskipTests -P win32
> > > > > > >
> > > > > > > due to:
> > > > > > >
> > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > > [INFO] Executing tasks
> > > > > > >
> > > > > > > make:
> > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > OS_NAME=Windows
> > > > > > > OS_ARCH=x86_64
> > > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > -o
> > > > > > >
> > > > > >
> > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > >
> > > > > >
> > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > failed
> > > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > >      [exec] In file included from
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > >      [exec]                  from
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > >      [exec]
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > >      [exec]  #include <Windows.h>
> > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > >      [exec] compilation terminated.
> > > > > > >      [exec] make[1]: ***
> > > > > > >
> > > > > >
> > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > Error 1
> > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] BUILD FAILURE
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Total time:  10.107 s
> > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] Failed to execute goal
> > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > project
> > > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > >
> > > > > > > I have:
> > > > > > >
> > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > >
> > > > > > > Case matters here, so I wonder if the original others did not
> cross
> > > > > > compile
> > > > > > > from Linux and instead built a little here, a little there,
> and so
> > > > on.
> > > > > > >
> > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> that
> > > > is
> > > > > > > supposed to be...
> > > > > > >
> > > > > > > Building with mac64 profile is no better:
> > > > > > >
> > > > > > > mvn package -DskipTests -P mac64
> > > > > > >
> > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > > [INFO] Executing tasks
> > > > > > >
> > > > > > > make:
> > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> -I/usr/local/include
> > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > -o
> > > > > > >
> > > > > >
> > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > >
> > > > > >
> > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > failed
> > > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > >      [exec] gcc: error: unrecognized command line option
> ‘-arch’;
> > > > did you
> > > > > > > mean ‘-march=’?
> > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > >      [exec] make[1]: ***
> > > > > > >
> > > > > >
> > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > Error 1
> > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] BUILD FAILURE
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Total time:  12.513 s
> > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] Failed to execute goal
> > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > project
> > > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > >
> > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > >
> > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > > [INFO] Executing tasks
> > > > > > >
> > > > > > > make:
> > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> OS_NAME=Linux
> > > > > > > OS_ARCH=arm
> > > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> lib/inc_linux/jni_md.h
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> -I/usr/include
> > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > -o
> > > > > > >
> > > > > >
> > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > >
> > > > > >
> > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > failed
> > > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> file or
> > > > > > > directory
> > > > > > >      [exec] compilation terminated.
> > > > > > >      [exec] make[1]: ***
> > > > > > >
> > > > > >
> > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > Error 1
> > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] BUILD FAILURE
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Total time:  10.906 s
> > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] Failed to execute goal
> > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > project
> > > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > >
> > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > >
> > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > > [INFO] Executing tasks
> > > > > > >
> > > > > > > make:
> > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > OS_NAME=Linux
> > > > > > > OS_ARCH=armhf
> > > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> lib/inc_linux/jni_md.h
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> -I/usr/include
> > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > -o
> > > > > > >
> > > > > >
> > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > >
> > > > > >
> > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > failed
> > > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> failed
> > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> file or
> > > > > > > directory
> > > > > > >      [exec] compilation terminated.
> > > > > > >      [exec] make[1]: ***
> > > > > > >
> > > > > >
> > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > Error 1
> > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] BUILD FAILURE
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Total time:  10.400 s
> > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] Failed to execute goal
> > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > project
> > > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > >
> > > > > > > For the  linux-aarch64 profile, I need to install the proper
> package:
> > > > > > >
> > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> ---
> > > > > > > [INFO] Executing tasks
> > > > > > >
> > > > > > > make:
> > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> OS_NAME=Linux
> > > > > > > OS_ARCH=aarch64
> > > > > > >      [exec] make[1]: Entering directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> -Ilib/inc_mac -O2
> > > > -fPIC
> > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > -o
> > > > > > >
> > > > > >
> > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > >
> > > > > >
> > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > failed
> > > > > > >      [exec] make[1]: Leaving directory
> '/mnt/c/git/commons-crypto'
> > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> failed
> > > > > > >      [exec] In file included from
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > >      [exec]                  from
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > >      [exec]                  from
> > > > > > >
> > > > > >
> > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > >      [exec] compilation terminated.
> > > > > > >      [exec] make[1]: ***
> > > > > > >
> > > > > >
> > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > Error 1
> > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] BUILD FAILURE
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Total time:  10.943 s
> > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > [INFO]
> > > > > > >
> > > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] Failed to execute goal
> > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > project
> > > > > > > commons-crypto: An Ant BuildException has occured: exec
> returned: 2
> > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > >
> > > > > > > Thoughts?
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> [hidden email]>
> > > > > > wrote:
> > > > > > >
> > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Matt Sicker <[hidden email]>
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> >
> >
> >
> > --
> > Marcelo Vanzin
> > [hidden email]
> > "Life's too short to drink cheap beer"
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Geoffrey Blake
Is there anything needed to help move this release along?  From the
looks of the Makefile, Windows was using GCC.  I don't think the
compiler is going to have much of an impact since the JNI bindings are
simply calling through to the OpenSSL library that is already
precompiled for the environment.

On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]> wrote:

>
> I have a feeling about both mingw or cygwin build output will be slower
> than microsoft-visual-studio build output...
> Just a feeling, but no evidence.
>
> Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
>
> > I used MinGW64.  It does indeed ship with make.  I can provide a link
> > to the distribution I used if there's interest.
> >
> > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> > >
> > > Pretty sure I remember comments in the code about building with mingw
> > > on Windows (not cygwin). That should have a version of make, too,
> > > IIRC.
> > >
> > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> > wrote:
> > > >
> > > > Except that you can't build on plain Windows because the build uses
> > make
> > > > and Microsoft version is called nmake. I might have to cobble up some
> > > > cygwin thing...
> > > >
> > > > Gary
> > > >
> > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > > >
> > > > > I can't speak to how the original developers did the build, but all
> > > > > the Windows builds that I did were on a Windows machine.  I always
> > > > > assumed that the original developers just manually packed the release
> > > > > jar with artifacts from each supported environment.  I never did any
> > > > > investigation into the process.  Is cobbling together a release in
> > > > > that manner really a non-starter here?
> > > > >
> > > > > Alex
> > > > >
> > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> > >
> > > > > wrote:
> > > > > >
> > > > > > Hi Matt:
> > > > > >
> > > > > > > I have:
> > > > > > >
> > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > >
> > > > > > > Case matters here, so I wonder if the original others did not
> > cross
> > > > > > compile
> > > > > > > from Linux and instead built a little here, a little there, and
> > so on.
> > > > > > >
> > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > that is
> > > > > > > supposed to be...
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > > >
> > > > > > > Are the Windows headers even available when using Ming32 or
> > Cygwin?
> > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > >
> > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > [hidden email]>
> > > > > wrote:
> > > > > > > >
> > > > > > > > The challenge is getting everything set up just right for
> > building
> > > > > the
> > > > > > > > various OS profiles. This component is quite different in this
> > > > > regard,
> > > > > > > > getting help from the original contributors would be helpful.
> > > > > > > >
> > > > > > > > After much fiddling to install the proper packages, this
> > builds OK:
> > > > > > > >
> > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > >
> > > > > > > > But these do not:
> > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > mvn package -DskipTests -P win32
> > > > > > > >
> > > > > > > > due to:
> > > > > > > >
> > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > ---
> > > > > > > > [INFO] Executing tasks
> > > > > > > >
> > > > > > > > make:
> > > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > OS_NAME=Windows
> > > > > > > > OS_ARCH=x86_64
> > > > > > > >      [exec] make[1]: Entering directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > -o
> > > > > > > >
> > > > > > >
> > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > >
> > > > > > >
> > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > failed
> > > > > > > >      [exec] make[1]: Leaving directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > > >      [exec] In file included from
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > >      [exec]                  from
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > >      [exec]
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > >      [exec] compilation terminated.
> > > > > > > >      [exec] make[1]: ***
> > > > > > > >
> > > > > > >
> > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > Error 1
> > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > project
> > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > returned: 2
> > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > >
> > > > > > > > I have:
> > > > > > > >
> > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > >
> > > > > > > > Case matters here, so I wonder if the original others did not
> > cross
> > > > > > > compile
> > > > > > > > from Linux and instead built a little here, a little there,
> > and so
> > > > > on.
> > > > > > > >
> > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > that
> > > > > is
> > > > > > > > supposed to be...
> > > > > > > >
> > > > > > > > Building with mac64 profile is no better:
> > > > > > > >
> > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > >
> > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > ---
> > > > > > > > [INFO] Executing tasks
> > > > > > > >
> > > > > > > > make:
> > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > >      [exec] make[1]: Entering directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > -I/usr/local/include
> > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > -o
> > > > > > > >
> > > > > > >
> > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > >
> > > > > > >
> > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > failed
> > > > > > > >      [exec] make[1]: Leaving directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > > >      [exec] gcc: error: unrecognized command line option
> > ‘-arch’;
> > > > > did you
> > > > > > > > mean ‘-march=’?
> > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > >      [exec] make[1]: ***
> > > > > > > >
> > > > > > >
> > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > Error 1
> > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > project
> > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > returned: 2
> > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > >
> > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > >
> > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > ---
> > > > > > > > [INFO] Executing tasks
> > > > > > > >
> > > > > > > > make:
> > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> > OS_NAME=Linux
> > > > > > > > OS_ARCH=arm
> > > > > > > >      [exec] make[1]: Entering directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > lib/inc_linux/jni_md.h
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> > -I/usr/include
> > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > -o
> > > > > > > >
> > > > > > >
> > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > >
> > > > > > >
> > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > failed
> > > > > > > >      [exec] make[1]: Leaving directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > file or
> > > > > > > > directory
> > > > > > > >      [exec] compilation terminated.
> > > > > > > >      [exec] make[1]: ***
> > > > > > > >
> > > > > > >
> > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > Error 1
> > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > project
> > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > returned: 2
> > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > >
> > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > >
> > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > ---
> > > > > > > > [INFO] Executing tasks
> > > > > > > >
> > > > > > > > make:
> > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > OS_NAME=Linux
> > > > > > > > OS_ARCH=armhf
> > > > > > > >      [exec] make[1]: Entering directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > lib/inc_linux/jni_md.h
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > -I/usr/include
> > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > -o
> > > > > > > >
> > > > > > >
> > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > >
> > > > > > >
> > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > failed
> > > > > > > >      [exec] make[1]: Leaving directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> > failed
> > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > file or
> > > > > > > > directory
> > > > > > > >      [exec] compilation terminated.
> > > > > > > >      [exec] make[1]: ***
> > > > > > > >
> > > > > > >
> > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > Error 1
> > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > project
> > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > returned: 2
> > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > >
> > > > > > > > For the  linux-aarch64 profile, I need to install the proper
> > package:
> > > > > > > >
> > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > ---
> > > > > > > > [INFO] Executing tasks
> > > > > > > >
> > > > > > > > make:
> > > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> > OS_NAME=Linux
> > > > > > > > OS_ARCH=aarch64
> > > > > > > >      [exec] make[1]: Entering directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > -Ilib/inc_mac -O2
> > > > > -fPIC
> > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > -o
> > > > > > > >
> > > > > > >
> > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > >
> > > > > > >
> > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > failed
> > > > > > > >      [exec] make[1]: Leaving directory
> > '/mnt/c/git/commons-crypto'
> > > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> > failed
> > > > > > > >      [exec] In file included from
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > >      [exec]                  from
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > >      [exec]                  from
> > > > > > > >
> > > > > > >
> > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > >      [exec] compilation terminated.
> > > > > > > >      [exec] make[1]: ***
> > > > > > > >
> > > > > > >
> > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > Error 1
> > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > ------------------------------------------------------------------------
> > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > project
> > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > returned: 2
> > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > >
> > > > > > > > Thoughts?
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > [hidden email]>
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > > >
> > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Matt Sicker <[hidden email]>
> > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > >
> > >
> > > --
> > > Marcelo Vanzin
> > > [hidden email]
> > > "Life's too short to drink cheap beer"
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Alex Remily
Not sure if it's relevant or not, but to get the build to compile on
Windows with MinGW, I commented out line 137 of
https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:

//#define inline __inline;

I never did learn why it was there in the first place, but the broken
build was originally reported as

https://issues.apache.org/jira/browse/CRYPTO-137.

Now I'm wondering if it may have had something to do with
cross-compiling for the build.

On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
<[hidden email]> wrote:

>
> Is there anything needed to help move this release along?  From the
> looks of the Makefile, Windows was using GCC.  I don't think the
> compiler is going to have much of an impact since the JNI bindings are
> simply calling through to the OpenSSL library that is already
> precompiled for the environment.
>
> On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]> wrote:
> >
> > I have a feeling about both mingw or cygwin build output will be slower
> > than microsoft-visual-studio build output...
> > Just a feeling, but no evidence.
> >
> > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> >
> > > I used MinGW64.  It does indeed ship with make.  I can provide a link
> > > to the distribution I used if there's interest.
> > >
> > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> > > >
> > > > Pretty sure I remember comments in the code about building with mingw
> > > > on Windows (not cygwin). That should have a version of make, too,
> > > > IIRC.
> > > >
> > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> > > wrote:
> > > > >
> > > > > Except that you can't build on plain Windows because the build uses
> > > make
> > > > > and Microsoft version is called nmake. I might have to cobble up some
> > > > > cygwin thing...
> > > > >
> > > > > Gary
> > > > >
> > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > > > >
> > > > > > I can't speak to how the original developers did the build, but all
> > > > > > the Windows builds that I did were on a Windows machine.  I always
> > > > > > assumed that the original developers just manually packed the release
> > > > > > jar with artifacts from each supported environment.  I never did any
> > > > > > investigation into the process.  Is cobbling together a release in
> > > > > > that manner really a non-starter here?
> > > > > >
> > > > > > Alex
> > > > > >
> > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > Hi Matt:
> > > > > > >
> > > > > > > > I have:
> > > > > > > >
> > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > >
> > > > > > > > Case matters here, so I wonder if the original others did not
> > > cross
> > > > > > > compile
> > > > > > > > from Linux and instead built a little here, a little there, and
> > > so on.
> > > > > > > >
> > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > that is
> > > > > > > > supposed to be...
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > > > >
> > > > > > > > Are the Windows headers even available when using Ming32 or
> > > Cygwin?
> > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > >
> > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > [hidden email]>
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > The challenge is getting everything set up just right for
> > > building
> > > > > > the
> > > > > > > > > various OS profiles. This component is quite different in this
> > > > > > regard,
> > > > > > > > > getting help from the original contributors would be helpful.
> > > > > > > > >
> > > > > > > > > After much fiddling to install the proper packages, this
> > > builds OK:
> > > > > > > > >
> > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > >
> > > > > > > > > But these do not:
> > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > >
> > > > > > > > > due to:
> > > > > > > > >
> > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > ---
> > > > > > > > > [INFO] Executing tasks
> > > > > > > > >
> > > > > > > > > make:
> > > > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > OS_NAME=Windows
> > > > > > > > > OS_ARCH=x86_64
> > > > > > > > >      [exec] make[1]: Entering directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > -o
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > failed
> > > > > > > > >      [exec] make[1]: Leaving directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > > > >      [exec] In file included from
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > >      [exec]                  from
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > >      [exec]
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > >      [exec] compilation terminated.
> > > > > > > > >      [exec] make[1]: ***
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > Error 1
> > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > project
> > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > returned: 2
> > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > >
> > > > > > > > > I have:
> > > > > > > > >
> > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > >
> > > > > > > > > Case matters here, so I wonder if the original others did not
> > > cross
> > > > > > > > compile
> > > > > > > > > from Linux and instead built a little here, a little there,
> > > and so
> > > > > > on.
> > > > > > > > >
> > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > that
> > > > > > is
> > > > > > > > > supposed to be...
> > > > > > > > >
> > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > >
> > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > >
> > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > ---
> > > > > > > > > [INFO] Executing tasks
> > > > > > > > >
> > > > > > > > > make:
> > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > >      [exec] make[1]: Entering directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > -I/usr/local/include
> > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > -o
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > failed
> > > > > > > > >      [exec] make[1]: Leaving directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > ‘-arch’;
> > > > > > did you
> > > > > > > > > mean ‘-march=’?
> > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > >      [exec] make[1]: ***
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > Error 1
> > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > project
> > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > returned: 2
> > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > >
> > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > >
> > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > ---
> > > > > > > > > [INFO] Executing tasks
> > > > > > > > >
> > > > > > > > > make:
> > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> > > OS_NAME=Linux
> > > > > > > > > OS_ARCH=arm
> > > > > > > > >      [exec] make[1]: Entering directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > lib/inc_linux/jni_md.h
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> > > -I/usr/include
> > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > -o
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > failed
> > > > > > > > >      [exec] make[1]: Leaving directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > file or
> > > > > > > > > directory
> > > > > > > > >      [exec] compilation terminated.
> > > > > > > > >      [exec] make[1]: ***
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > Error 1
> > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > project
> > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > returned: 2
> > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > >
> > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > >
> > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > ---
> > > > > > > > > [INFO] Executing tasks
> > > > > > > > >
> > > > > > > > > make:
> > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > OS_NAME=Linux
> > > > > > > > > OS_ARCH=armhf
> > > > > > > > >      [exec] make[1]: Entering directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > lib/inc_linux/jni_md.h
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > -I/usr/include
> > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > -o
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > failed
> > > > > > > > >      [exec] make[1]: Leaving directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> > > failed
> > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > file or
> > > > > > > > > directory
> > > > > > > > >      [exec] compilation terminated.
> > > > > > > > >      [exec] make[1]: ***
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > Error 1
> > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > project
> > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > returned: 2
> > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > >
> > > > > > > > > For the  linux-aarch64 profile, I need to install the proper
> > > package:
> > > > > > > > >
> > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > ---
> > > > > > > > > [INFO] Executing tasks
> > > > > > > > >
> > > > > > > > > make:
> > > > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> > > OS_NAME=Linux
> > > > > > > > > OS_ARCH=aarch64
> > > > > > > > >      [exec] make[1]: Entering directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > -Ilib/inc_mac -O2
> > > > > > -fPIC
> > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > -o
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > failed
> > > > > > > > >      [exec] make[1]: Leaving directory
> > > '/mnt/c/git/commons-crypto'
> > > > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> > > failed
> > > > > > > > >      [exec] In file included from
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > >      [exec]                  from
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > >      [exec]                  from
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > >      [exec] compilation terminated.
> > > > > > > > >      [exec] make[1]: ***
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > Error 1
> > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > [INFO]
> > > > > > > > >
> > > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > project
> > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > returned: 2
> > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > >
> > > > > > > > > Thoughts?
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > [hidden email]>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > >
> > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Marcelo Vanzin
> > > > [hidden email]
> > > > "Life's too short to drink cheap beer"
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Geoffrey Blake
I think you're right Alex.  I just happened to look at the Makefile
and saw this above the win64 target:

# for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64 package

We could potentially build everything but MacOS on 1 Ubuntu 16.04LTS
box.  Or even a 14.04 box if necessary.  Anybody have the time to try?

On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]> wrote:

>
> Not sure if it's relevant or not, but to get the build to compile on
> Windows with MinGW, I commented out line 137 of
> https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:
>
> //#define inline __inline;
>
> I never did learn why it was there in the first place, but the broken
> build was originally reported as
>
> https://issues.apache.org/jira/browse/CRYPTO-137.
>
> Now I'm wondering if it may have had something to do with
> cross-compiling for the build.
>
> On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> <[hidden email]> wrote:
> >
> > Is there anything needed to help move this release along?  From the
> > looks of the Makefile, Windows was using GCC.  I don't think the
> > compiler is going to have much of an impact since the JNI bindings are
> > simply calling through to the OpenSSL library that is already
> > precompiled for the environment.
> >
> > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]> wrote:
> > >
> > > I have a feeling about both mingw or cygwin build output will be slower
> > > than microsoft-visual-studio build output...
> > > Just a feeling, but no evidence.
> > >
> > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > >
> > > > I used MinGW64.  It does indeed ship with make.  I can provide a link
> > > > to the distribution I used if there's interest.
> > > >
> > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> > > > >
> > > > > Pretty sure I remember comments in the code about building with mingw
> > > > > on Windows (not cygwin). That should have a version of make, too,
> > > > > IIRC.
> > > > >
> > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> > > > wrote:
> > > > > >
> > > > > > Except that you can't build on plain Windows because the build uses
> > > > make
> > > > > > and Microsoft version is called nmake. I might have to cobble up some
> > > > > > cygwin thing...
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > > > > >
> > > > > > > I can't speak to how the original developers did the build, but all
> > > > > > > the Windows builds that I did were on a Windows machine.  I always
> > > > > > > assumed that the original developers just manually packed the release
> > > > > > > jar with artifacts from each supported environment.  I never did any
> > > > > > > investigation into the process.  Is cobbling together a release in
> > > > > > > that manner really a non-starter here?
> > > > > > >
> > > > > > > Alex
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> > > > >
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Hi Matt:
> > > > > > > >
> > > > > > > > > I have:
> > > > > > > > >
> > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > >
> > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > cross
> > > > > > > > compile
> > > > > > > > > from Linux and instead built a little here, a little there, and
> > > > so on.
> > > > > > > > >
> > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > that is
> > > > > > > > > supposed to be...
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > > > > >
> > > > > > > > > Are the Windows headers even available when using Ming32 or
> > > > Cygwin?
> > > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > > >
> > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > [hidden email]>
> > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > The challenge is getting everything set up just right for
> > > > building
> > > > > > > the
> > > > > > > > > > various OS profiles. This component is quite different in this
> > > > > > > regard,
> > > > > > > > > > getting help from the original contributors would be helpful.
> > > > > > > > > >
> > > > > > > > > > After much fiddling to install the proper packages, this
> > > > builds OK:
> > > > > > > > > >
> > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > >
> > > > > > > > > > But these do not:
> > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > >
> > > > > > > > > > due to:
> > > > > > > > > >
> > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > ---
> > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > >
> > > > > > > > > > make:
> > > > > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > OS_NAME=Windows
> > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > >      [exec] make[1]: Entering directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > -o
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > failed
> > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > > > > >      [exec] In file included from
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > >      [exec]                  from
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > >      [exec]
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > Error 1
> > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > project
> > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > returned: 2
> > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > >
> > > > > > > > > > I have:
> > > > > > > > > >
> > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > >
> > > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > cross
> > > > > > > > > compile
> > > > > > > > > > from Linux and instead built a little here, a little there,
> > > > and so
> > > > > > > on.
> > > > > > > > > >
> > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > that
> > > > > > > is
> > > > > > > > > > supposed to be...
> > > > > > > > > >
> > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > >
> > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > >
> > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > ---
> > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > >
> > > > > > > > > > make:
> > > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > > >      [exec] make[1]: Entering directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > -I/usr/local/include
> > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > -o
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > failed
> > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > ‘-arch’;
> > > > > > > did you
> > > > > > > > > > mean ‘-march=’?
> > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > Error 1
> > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > project
> > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > returned: 2
> > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > >
> > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > >
> > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > ---
> > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > >
> > > > > > > > > > make:
> > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> > > > OS_NAME=Linux
> > > > > > > > > > OS_ARCH=arm
> > > > > > > > > >      [exec] make[1]: Entering directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > lib/inc_linux/jni_md.h
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> > > > -I/usr/include
> > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > -o
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > failed
> > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > file or
> > > > > > > > > > directory
> > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > Error 1
> > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > project
> > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > returned: 2
> > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > >
> > > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > > >
> > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > ---
> > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > >
> > > > > > > > > > make:
> > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > OS_NAME=Linux
> > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > >      [exec] make[1]: Entering directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > lib/inc_linux/jni_md.h
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > > -I/usr/include
> > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > -o
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > failed
> > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> > > > failed
> > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > file or
> > > > > > > > > > directory
> > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > Error 1
> > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > project
> > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > returned: 2
> > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > >
> > > > > > > > > > For the  linux-aarch64 profile, I need to install the proper
> > > > package:
> > > > > > > > > >
> > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > ---
> > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > >
> > > > > > > > > > make:
> > > > > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> > > > OS_NAME=Linux
> > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > >      [exec] make[1]: Entering directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > -Ilib/inc_mac -O2
> > > > > > > -fPIC
> > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > -o
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > failed
> > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> > > > failed
> > > > > > > > > >      [exec] In file included from
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > >      [exec]                  from
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > >      [exec]                  from
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > Error 1
> > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > [INFO]
> > > > > > > > > >
> > > > > > >
> > > > ------------------------------------------------------------------------
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > project
> > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > returned: 2
> > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > >
> > > > > > > > > > Thoughts?
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > [hidden email]>
> > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > >
> > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Marcelo Vanzin
> > > > > [hidden email]
> > > > > "Life's too short to drink cheap beer"
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Alex Remily
I'll see if I have any time this weekend, but this part is largely
unfamiliar to me, so not sure how far I'll get even if I have the time
to look at it.

On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
<[hidden email]> wrote:

>
> I think you're right Alex.  I just happened to look at the Makefile
> and saw this above the win64 target:
>
> # for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64 package
>
> We could potentially build everything but MacOS on 1 Ubuntu 16.04LTS
> box.  Or even a 14.04 box if necessary.  Anybody have the time to try?
>
> On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]> wrote:
> >
> > Not sure if it's relevant or not, but to get the build to compile on
> > Windows with MinGW, I commented out line 137 of
> > https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:
> >
> > //#define inline __inline;
> >
> > I never did learn why it was there in the first place, but the broken
> > build was originally reported as
> >
> > https://issues.apache.org/jira/browse/CRYPTO-137.
> >
> > Now I'm wondering if it may have had something to do with
> > cross-compiling for the build.
> >
> > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > <[hidden email]> wrote:
> > >
> > > Is there anything needed to help move this release along?  From the
> > > looks of the Makefile, Windows was using GCC.  I don't think the
> > > compiler is going to have much of an impact since the JNI bindings are
> > > simply calling through to the OpenSSL library that is already
> > > precompiled for the environment.
> > >
> > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]> wrote:
> > > >
> > > > I have a feeling about both mingw or cygwin build output will be slower
> > > > than microsoft-visual-studio build output...
> > > > Just a feeling, but no evidence.
> > > >
> > > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > > >
> > > > > I used MinGW64.  It does indeed ship with make.  I can provide a link
> > > > > to the distribution I used if there's interest.
> > > > >
> > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> > > > > >
> > > > > > Pretty sure I remember comments in the code about building with mingw
> > > > > > on Windows (not cygwin). That should have a version of make, too,
> > > > > > IIRC.
> > > > > >
> > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> > > > > wrote:
> > > > > > >
> > > > > > > Except that you can't build on plain Windows because the build uses
> > > > > make
> > > > > > > and Microsoft version is called nmake. I might have to cobble up some
> > > > > > > cygwin thing...
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > > > > > >
> > > > > > > > I can't speak to how the original developers did the build, but all
> > > > > > > > the Windows builds that I did were on a Windows machine.  I always
> > > > > > > > assumed that the original developers just manually packed the release
> > > > > > > > jar with artifacts from each supported environment.  I never did any
> > > > > > > > investigation into the process.  Is cobbling together a release in
> > > > > > > > that manner really a non-starter here?
> > > > > > > >
> > > > > > > > Alex
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> > > > > >
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi Matt:
> > > > > > > > >
> > > > > > > > > > I have:
> > > > > > > > > >
> > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > >
> > > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > > cross
> > > > > > > > > compile
> > > > > > > > > > from Linux and instead built a little here, a little there, and
> > > > > so on.
> > > > > > > > > >
> > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > > that is
> > > > > > > > > > supposed to be...
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > > > > > >
> > > > > > > > > > Are the Windows headers even available when using Ming32 or
> > > > > Cygwin?
> > > > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > > > >
> > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > [hidden email]>
> > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > The challenge is getting everything set up just right for
> > > > > building
> > > > > > > > the
> > > > > > > > > > > various OS profiles. This component is quite different in this
> > > > > > > > regard,
> > > > > > > > > > > getting help from the original contributors would be helpful.
> > > > > > > > > > >
> > > > > > > > > > > After much fiddling to install the proper packages, this
> > > > > builds OK:
> > > > > > > > > > >
> > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > >
> > > > > > > > > > > But these do not:
> > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > >
> > > > > > > > > > > due to:
> > > > > > > > > > >
> > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > ---
> > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > >
> > > > > > > > > > > make:
> > > > > > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > OS_NAME=Windows
> > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > -o
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > failed
> > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > >      [exec]                  from
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > >      [exec]
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > Error 1
> > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > project
> > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > returned: 2
> > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > >
> > > > > > > > > > > I have:
> > > > > > > > > > >
> > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > >
> > > > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > > cross
> > > > > > > > > > compile
> > > > > > > > > > > from Linux and instead built a little here, a little there,
> > > > > and so
> > > > > > > > on.
> > > > > > > > > > >
> > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > > that
> > > > > > > > is
> > > > > > > > > > > supposed to be...
> > > > > > > > > > >
> > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > >
> > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > >
> > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > ---
> > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > >
> > > > > > > > > > > make:
> > > > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > -I/usr/local/include
> > > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > -o
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > failed
> > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > ‘-arch’;
> > > > > > > > did you
> > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > Error 1
> > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > project
> > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > returned: 2
> > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > >
> > > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > > >
> > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > ---
> > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > >
> > > > > > > > > > > make:
> > > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> > > > > OS_NAME=Linux
> > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> > > > > -I/usr/include
> > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > -o
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > failed
> > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > > file or
> > > > > > > > > > > directory
> > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > Error 1
> > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > project
> > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > returned: 2
> > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > >
> > > > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > > > >
> > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > ---
> > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > >
> > > > > > > > > > > make:
> > > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > OS_NAME=Linux
> > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > > > -I/usr/include
> > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > -o
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > failed
> > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> > > > > failed
> > > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > > file or
> > > > > > > > > > > directory
> > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > Error 1
> > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > project
> > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > returned: 2
> > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > >
> > > > > > > > > > > For the  linux-aarch64 profile, I need to install the proper
> > > > > package:
> > > > > > > > > > >
> > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > ---
> > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > >
> > > > > > > > > > > make:
> > > > > > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> > > > > OS_NAME=Linux
> > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > -Ilib/inc_mac -O2
> > > > > > > > -fPIC
> > > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > -o
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > failed
> > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> > > > > failed
> > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > >      [exec]                  from
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > >      [exec]                  from
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > Error 1
> > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > [INFO]
> > > > > > > > > > >
> > > > > > > >
> > > > > ------------------------------------------------------------------------
> > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > project
> > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > returned: 2
> > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > >
> > > > > > > > > > > Thoughts?
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > [hidden email]>
> > > > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > >
> > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Marcelo Vanzin
> > > > > > [hidden email]
> > > > > > "Life's too short to drink cheap beer"
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Geoffrey Blake
I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
and vagrant, but it looks like the windows build is broken.  There are
typos trying to include "Windows.h" which should be "windows.h" to
compile with mingw and redefined macros that I think are mixing
between Linux and windows headers.  I won't be able to get to trying
to fix and submit any PRs on these this week or next.  But anyone who
wants to try cross-compiling, here are the packages I installed to get
up and running minimally on Ubuntu:

sudo apt-get install build-essential g++-mingw-w64
gcc-aarch64-linux-gnu libc6-dev-i386
sudo apt-get install libssl-dev git
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get install openjdk-8-jdk

Don't install the Ubuntu supplied maven, its too old.  Just grab the
3.6 tarball from apache.

-Geoff

On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]> wrote:

>
> I'll see if I have any time this weekend, but this part is largely
> unfamiliar to me, so not sure how far I'll get even if I have the time
> to look at it.
>
> On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> <[hidden email]> wrote:
> >
> > I think you're right Alex.  I just happened to look at the Makefile
> > and saw this above the win64 target:
> >
> > # for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64 package
> >
> > We could potentially build everything but MacOS on 1 Ubuntu 16.04LTS
> > box.  Or even a 14.04 box if necessary.  Anybody have the time to try?
> >
> > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]> wrote:
> > >
> > > Not sure if it's relevant or not, but to get the build to compile on
> > > Windows with MinGW, I commented out line 137 of
> > > https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:
> > >
> > > //#define inline __inline;
> > >
> > > I never did learn why it was there in the first place, but the broken
> > > build was originally reported as
> > >
> > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > >
> > > Now I'm wondering if it may have had something to do with
> > > cross-compiling for the build.
> > >
> > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > <[hidden email]> wrote:
> > > >
> > > > Is there anything needed to help move this release along?  From the
> > > > looks of the Makefile, Windows was using GCC.  I don't think the
> > > > compiler is going to have much of an impact since the JNI bindings are
> > > > simply calling through to the OpenSSL library that is already
> > > > precompiled for the environment.
> > > >
> > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]> wrote:
> > > > >
> > > > > I have a feeling about both mingw or cygwin build output will be slower
> > > > > than microsoft-visual-studio build output...
> > > > > Just a feeling, but no evidence.
> > > > >
> > > > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > > > >
> > > > > > I used MinGW64.  It does indeed ship with make.  I can provide a link
> > > > > > to the distribution I used if there's interest.
> > > > > >
> > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <[hidden email]> wrote:
> > > > > > >
> > > > > > > Pretty sure I remember comments in the code about building with mingw
> > > > > > > on Windows (not cygwin). That should have a version of make, too,
> > > > > > > IIRC.
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <[hidden email]>
> > > > > > wrote:
> > > > > > > >
> > > > > > > > Except that you can't build on plain Windows because the build uses
> > > > > > make
> > > > > > > > and Microsoft version is called nmake. I might have to cobble up some
> > > > > > > > cygwin thing...
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <[hidden email]> wrote:
> > > > > > > >
> > > > > > > > > I can't speak to how the original developers did the build, but all
> > > > > > > > > the Windows builds that I did were on a Windows machine.  I always
> > > > > > > > > assumed that the original developers just manually packed the release
> > > > > > > > > jar with artifacts from each supported environment.  I never did any
> > > > > > > > > investigation into the process.  Is cobbling together a release in
> > > > > > > > > that manner really a non-starter here?
> > > > > > > > >
> > > > > > > > > Alex
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <[hidden email]
> > > > > > >
> > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Matt:
> > > > > > > > > >
> > > > > > > > > > > I have:
> > > > > > > > > > >
> > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > >
> > > > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > > > cross
> > > > > > > > > > compile
> > > > > > > > > > > from Linux and instead built a little here, a little there, and
> > > > > > so on.
> > > > > > > > > > >
> > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > > > that is
> > > > > > > > > > > supposed to be...
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <[hidden email]> wrote:
> > > > > > > > > >
> > > > > > > > > > > Are the Windows headers even available when using Ming32 or
> > > > > > Cygwin?
> > > > > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > > > > >
> > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > [hidden email]>
> > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > The challenge is getting everything set up just right for
> > > > > > building
> > > > > > > > > the
> > > > > > > > > > > > various OS profiles. This component is quite different in this
> > > > > > > > > regard,
> > > > > > > > > > > > getting help from the original contributors would be helpful.
> > > > > > > > > > > >
> > > > > > > > > > > > After much fiddling to install the proper packages, this
> > > > > > builds OK:
> > > > > > > > > > > >
> > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > >
> > > > > > > > > > > > But these do not:
> > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > >
> > > > > > > > > > > > due to:
> > > > > > > > > > > >
> > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > > ---
> > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > >
> > > > > > > > > > > > make:
> > > > > > > > > > > >      [exec] make native CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -I"/include"
> > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include -I/usr/include
> > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > -o
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > failed
> > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] Makefile:82: recipe for target 'win64' failed
> > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > >      [exec]
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > Error 1
> > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > project
> > > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > > returned: 2
> > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > >
> > > > > > > > > > > > I have:
> > > > > > > > > > > >
> > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > >
> > > > > > > > > > > > Case matters here, so I wonder if the original others did not
> > > > > > cross
> > > > > > > > > > > compile
> > > > > > > > > > > > from Linux and instead built a little here, a little there,
> > > > > > and so
> > > > > > > > > on.
> > > > > > > > > > > >
> > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not sure where
> > > > > > that
> > > > > > > > > is
> > > > > > > > > > > > supposed to be...
> > > > > > > > > > > >
> > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > >
> > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > >
> > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > > ---
> > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > >
> > > > > > > > > > > > make:
> > > > > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > -I/usr/local/include
> > > > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include -I/usr/include
> > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > -o
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > failed
> > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64' failed
> > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file or directory
> > > > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > ‘-arch’;
> > > > > > > > > did you
> > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > >      [exec] gcc: error: unrecognized command line option
> > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > Error 1
> > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > project
> > > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > > returned: 2
> > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > >
> > > > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > > > >
> > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > > ---
> > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > >
> > > > > > > > > > > > make:
> > > > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > OS_NAME=Linux
> > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp -Ilib/include
> > > > > > -I/usr/include
> > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > -o
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > failed
> > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] Makefile:101: recipe for target 'linux-arm' failed
> > > > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > > > file or
> > > > > > > > > > > > directory
> > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > Error 1
> > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > project
> > > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > > returned: 2
> > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > >
> > > > > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > > > > >
> > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > > ---
> > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > >
> > > > > > > > > > > > make:
> > > > > > > > > > > >      [exec] make native CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include" -O2 -fPIC
> > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > > > > -I/usr/include
> > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > -o
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > failed
> > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] Makefile:105: recipe for target 'linux-armhf'
> > > > > > failed
> > > > > > > > > > > >      [exec] cc1: fatal error: lib/inc_linux/jni_md.h: No such
> > > > > > file or
> > > > > > > > > > > > directory
> > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > Error 1
> > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > project
> > > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > > returned: 2
> > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > >
> > > > > > > > > > > > For the  linux-aarch64 profile, I need to install the proper
> > > > > > package:
> > > > > > > > > > > >
> > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @ commons-crypto
> > > > > > ---
> > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > >
> > > > > > > > > > > > make:
> > > > > > > > > > > >      [exec] make native CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > OS_NAME=Linux
> > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > -Ilib/inc_mac -O2
> > > > > > > > > -fPIC
> > > > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include -I/usr/include
> > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > -o
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > failed
> > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > >      [exec] Makefile:109: recipe for target 'linux-aarch64'
> > > > > > failed
> > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11: fatal error:
> > > > > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > Error 1
> > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > [INFO]
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > ------------------------------------------------------------------------
> > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > project
> > > > > > > > > > > > commons-crypto: An Ant BuildException has occured: exec
> > > > > > returned: 2
> > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > dir="/mnt/c/git/commons-crypto" executable="make">... @ 5:78 in
> > > > > > > > > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > >
> > > > > > > > > > > > Thoughts?
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > [hidden email]>
> > > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > > Just checking in on the status of the 1.1 release.
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Marcelo Vanzin
> > > > > > > [hidden email]
> > > > > > > "Life's too short to drink cheap beer"
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

garydgregory
On Thu, Jul 2, 2020 at 12:39 PM Geoffrey Blake <[hidden email]>
wrote:

> I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
> and vagrant, but it looks like the windows build is broken.  There are
> typos trying to include "Windows.h" which should be "windows.h" to
>

Are you sure that this include is not referring the to Microsoft header,
for example, on my machine:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\Windows.h

?

Gary

> compile with mingw and redefined macros that I think are mixing
> between Linux and windows headers.  I won't be able to get to trying
> to fix and submit any PRs on these this week or next.  But anyone who
> wants to try cross-compiling, here are the packages I installed to get
> up and running minimally on Ubuntu:
>
> sudo apt-get install build-essential g++-mingw-w64
> gcc-aarch64-linux-gnu libc6-dev-i386
> sudo apt-get install libssl-dev git
> sudo add-apt-repository ppa:openjdk-r/ppa
> sudo apt-get install openjdk-8-jdk
>
> Don't install the Ubuntu supplied maven, its too old.  Just grab the
> 3.6 tarball from apache.
>
> -Geoff
>
> On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]> wrote:
> >
> > I'll see if I have any time this weekend, but this part is largely
> > unfamiliar to me, so not sure how far I'll get even if I have the time
> > to look at it.
> >
> > On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> > <[hidden email]> wrote:
> > >
> > > I think you're right Alex.  I just happened to look at the Makefile
> > > and saw this above the win64 target:
> > >
> > > # for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64
> package
> > >
> > > We could potentially build everything but MacOS on 1 Ubuntu 16.04LTS
> > > box.  Or even a 14.04 box if necessary.  Anybody have the time to try?
> > >
> > > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]>
> wrote:
> > > >
> > > > Not sure if it's relevant or not, but to get the build to compile on
> > > > Windows with MinGW, I commented out line 137 of
> > > >
> https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
> :
> > > >
> > > > //#define inline __inline;
> > > >
> > > > I never did learn why it was there in the first place, but the broken
> > > > build was originally reported as
> > > >
> > > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > > >
> > > > Now I'm wondering if it may have had something to do with
> > > > cross-compiling for the build.
> > > >
> > > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > > <[hidden email]> wrote:
> > > > >
> > > > > Is there anything needed to help move this release along?  From the
> > > > > looks of the Makefile, Windows was using GCC.  I don't think the
> > > > > compiler is going to have much of an impact since the JNI bindings
> are
> > > > > simply calling through to the OpenSSL library that is already
> > > > > precompiled for the environment.
> > > > >
> > > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]>
> wrote:
> > > > > >
> > > > > > I have a feeling about both mingw or cygwin build output will be
> slower
> > > > > > than microsoft-visual-studio build output...
> > > > > > Just a feeling, but no evidence.
> > > > > >
> > > > > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > > > > >
> > > > > > > I used MinGW64.  It does indeed ship with make.  I can provide
> a link
> > > > > > > to the distribution I used if there's interest.
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <
> [hidden email]> wrote:
> > > > > > > >
> > > > > > > > Pretty sure I remember comments in the code about building
> with mingw
> > > > > > > > on Windows (not cygwin). That should have a version of make,
> too,
> > > > > > > > IIRC.
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <
> [hidden email]>
> > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Except that you can't build on plain Windows because the
> build uses
> > > > > > > make
> > > > > > > > > and Microsoft version is called nmake. I might have to
> cobble up some
> > > > > > > > > cygwin thing...
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <
> [hidden email]> wrote:
> > > > > > > > >
> > > > > > > > > > I can't speak to how the original developers did the
> build, but all
> > > > > > > > > > the Windows builds that I did were on a Windows
> machine.  I always
> > > > > > > > > > assumed that the original developers just manually
> packed the release
> > > > > > > > > > jar with artifacts from each supported environment.  I
> never did any
> > > > > > > > > > investigation into the process.  Is cobbling together a
> release in
> > > > > > > > > > that manner really a non-starter here?
> > > > > > > > > >
> > > > > > > > > > Alex
> > > > > > > > > >
> > > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <
> [hidden email]
> > > > > > > >
> > > > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Matt:
> > > > > > > > > > >
> > > > > > > > > > > > I have:
> > > > > > > > > > > >
> > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > >
> > > > > > > > > > > > Case matters here, so I wonder if the original
> others did not
> > > > > > > cross
> > > > > > > > > > > compile
> > > > > > > > > > > > from Linux and instead built a little here, a little
> there, and
> > > > > > > so on.
> > > > > > > > > > > >
> > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not
> sure where
> > > > > > > that is
> > > > > > > > > > > > supposed to be...
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <
> [hidden email]> wrote:
> > > > > > > > > > >
> > > > > > > > > > > > Are the Windows headers even available when using
> Ming32 or
> > > > > > > Cygwin?
> > > > > > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > > [hidden email]>
> > > > > > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > The challenge is getting everything set up just
> right for
> > > > > > > building
> > > > > > > > > > the
> > > > > > > > > > > > > various OS profiles. This component is quite
> different in this
> > > > > > > > > > regard,
> > > > > > > > > > > > > getting help from the original contributors would
> be helpful.
> > > > > > > > > > > > >
> > > > > > > > > > > > > After much fiddling to install the proper
> packages, this
> > > > > > > builds OK:
> > > > > > > > > > > > >
> > > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > > >
> > > > > > > > > > > > > But these do not:
> > > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > > >
> > > > > > > > > > > > > due to:
> > > > > > > > > > > > >
> > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> commons-crypto
> > > > > > > ---
> > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > >
> > > > > > > > > > > > > make:
> > > > > > > > > > > > >      [exec] make native
> CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> -I"/include"
> > > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include
> -I/usr/include
> > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > -o
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > failed
> > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] Makefile:82: recipe for target 'win64'
> failed
> > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > >      [exec]
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > Error 1
> > > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > >
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > project
> > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> exec
> > > > > > > returned: 2
> > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> executable="make">... @ 5:78 in
> > > > > > > > > > > > >
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have:
> > > > > > > > > > > > >
> > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> windows.h
> > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > >
> > > > > > > > > > > > > Case matters here, so I wonder if the original
> others did not
> > > > > > > cross
> > > > > > > > > > > > compile
> > > > > > > > > > > > > from Linux and instead built a little here, a
> little there,
> > > > > > > and so
> > > > > > > > > > on.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> not sure where
> > > > > > > that
> > > > > > > > > > is
> > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > >
> > > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > > >
> > > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > > >
> > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> commons-crypto
> > > > > > > ---
> > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > >
> > > > > > > > > > > > > make:
> > > > > > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> -O2 -fPIC
> > > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > > -I/usr/local/include
> > > > > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include
> -I/usr/include
> > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > -o
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > failed
> > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64'
> failed
> > > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file or
> directory
> > > > > > > > > > > > >      [exec] gcc: error: unrecognized command line
> option
> > > > > > > ‘-arch’;
> > > > > > > > > > did you
> > > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > > >      [exec] gcc: error: unrecognized command line
> option
> > > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > Error 1
> > > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > >
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > project
> > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> exec
> > > > > > > returned: 2
> > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> executable="make">... @ 5:78 in
> > > > > > > > > > > > >
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > >
> > > > > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > > > > >
> > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> commons-crypto
> > > > > > > ---
> > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > >
> > > > > > > > > > > > > make:
> > > > > > > > > > > > >      [exec] make native
> CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> -O2 -fPIC
> > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp
> -Ilib/include
> > > > > > > -I/usr/include
> > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > -o
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > failed
> > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] Makefile:101: recipe for target
> 'linux-arm' failed
> > > > > > > > > > > > >      [exec] cc1: fatal error:
> lib/inc_linux/jni_md.h: No such
> > > > > > > file or
> > > > > > > > > > > > > directory
> > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > Error 1
> > > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > >
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > project
> > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> exec
> > > > > > > returned: 2
> > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> executable="make">... @ 5:78 in
> > > > > > > > > > > > >
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > >
> > > > > > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > > > > > >
> > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> commons-crypto
> > > > > > > ---
> > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > >
> > > > > > > > > > > > > make:
> > > > > > > > > > > > >      [exec] make native
> CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> -O2 -fPIC
> > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > > > > > -I/usr/include
> > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > -o
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > failed
> > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] Makefile:105: recipe for target
> 'linux-armhf'
> > > > > > > failed
> > > > > > > > > > > > >      [exec] cc1: fatal error:
> lib/inc_linux/jni_md.h: No such
> > > > > > > file or
> > > > > > > > > > > > > directory
> > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > Error 1
> > > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > >
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > project
> > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> exec
> > > > > > > returned: 2
> > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> executable="make">... @ 5:78 in
> > > > > > > > > > > > >
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > >
> > > > > > > > > > > > > For the  linux-aarch64 profile, I need to install
> the proper
> > > > > > > package:
> > > > > > > > > > > > >
> > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> commons-crypto
> > > > > > > ---
> > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > >
> > > > > > > > > > > > > make:
> > > > > > > > > > > > >      [exec] make native
> CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > > -Ilib/inc_mac -O2
> > > > > > > > > > -fPIC
> > > > > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include
> -I/usr/include
> > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > >
> -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > -o
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > failed
> > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > >      [exec] Makefile:109: recipe for target
> 'linux-aarch64'
> > > > > > > failed
> > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11:
> fatal error:
> > > > > > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > Error 1
> > > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > >
> org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > project
> > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> exec
> > > > > > > returned: 2
> > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> executable="make">... @ 5:78 in
> > > > > > > > > > > > >
> /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thoughts?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > > [hidden email]>
> > > > > > > > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Just checking in on the status of the 1.1
> release.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > >
> ---------------------------------------------------------------------
> > > > > > > > > > > > > > To unsubscribe, e-mail:
> [hidden email]
> > > > > > > > > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > >
> ---------------------------------------------------------------------
> > > > > > > > > > > > To unsubscribe, e-mail:
> [hidden email]
> > > > > > > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> [hidden email]
> > > > > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Marcelo Vanzin
> > > > > > > > [hidden email]
> > > > > > > > "Life's too short to drink cheap beer"
> > > > > > > >
> > > > > > > >
> ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > >
> > > > > > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Geoffrey Blake
Hi Gary,

windows.h/Windows.h/WINDOWS.H are all names for the same file, on
Windows I've found out, the FS is case-insensitive.  This is not true
on a Linux box though.  I submitted a new PR to fix this and get
Windows builds working again on a Linux box, as well as testing that
windows artifacts will still build via Travis.  Hopefully this can
unstick the release as you can now cross-compile everything save the
OSX shared-lib on one box by pointing Maven to the proper targets.

-Geoff

On Sat, Jul 18, 2020 at 11:25 AM Gary Gregory <[hidden email]> wrote:

>
> On Thu, Jul 2, 2020 at 12:39 PM Geoffrey Blake <[hidden email]>
> wrote:
>
> > I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
> > and vagrant, but it looks like the windows build is broken.  There are
> > typos trying to include "Windows.h" which should be "windows.h" to
> >
>
> Are you sure that this include is not referring the to Microsoft header,
> for example, on my machine:
>
> C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\Windows.h
>
> ?
>
> Gary
>
> > compile with mingw and redefined macros that I think are mixing
> > between Linux and windows headers.  I won't be able to get to trying
> > to fix and submit any PRs on these this week or next.  But anyone who
> > wants to try cross-compiling, here are the packages I installed to get
> > up and running minimally on Ubuntu:
> >
> > sudo apt-get install build-essential g++-mingw-w64
> > gcc-aarch64-linux-gnu libc6-dev-i386
> > sudo apt-get install libssl-dev git
> > sudo add-apt-repository ppa:openjdk-r/ppa
> > sudo apt-get install openjdk-8-jdk
> >
> > Don't install the Ubuntu supplied maven, its too old.  Just grab the
> > 3.6 tarball from apache.
> >
> > -Geoff
> >
> > On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]> wrote:
> > >
> > > I'll see if I have any time this weekend, but this part is largely
> > > unfamiliar to me, so not sure how far I'll get even if I have the time
> > > to look at it.
> > >
> > > On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> > > <[hidden email]> wrote:
> > > >
> > > > I think you're right Alex.  I just happened to look at the Makefile
> > > > and saw this above the win64 target:
> > > >
> > > > # for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64
> > package
> > > >
> > > > We could potentially build everything but MacOS on 1 Ubuntu 16.04LTS
> > > > box.  Or even a 14.04 box if necessary.  Anybody have the time to try?
> > > >
> > > > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]>
> > wrote:
> > > > >
> > > > > Not sure if it's relevant or not, but to get the build to compile on
> > > > > Windows with MinGW, I commented out line 137 of
> > > > >
> > https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
> > :
> > > > >
> > > > > //#define inline __inline;
> > > > >
> > > > > I never did learn why it was there in the first place, but the broken
> > > > > build was originally reported as
> > > > >
> > > > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > > > >
> > > > > Now I'm wondering if it may have had something to do with
> > > > > cross-compiling for the build.
> > > > >
> > > > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > > > <[hidden email]> wrote:
> > > > > >
> > > > > > Is there anything needed to help move this release along?  From the
> > > > > > looks of the Makefile, Windows was using GCC.  I don't think the
> > > > > > compiler is going to have much of an impact since the JNI bindings
> > are
> > > > > > simply calling through to the OpenSSL library that is already
> > > > > > precompiled for the environment.
> > > > > >
> > > > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <[hidden email]>
> > wrote:
> > > > > > >
> > > > > > > I have a feeling about both mingw or cygwin build output will be
> > slower
> > > > > > > than microsoft-visual-studio build output...
> > > > > > > Just a feeling, but no evidence.
> > > > > > >
> > > > > > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > > > > > >
> > > > > > > > I used MinGW64.  It does indeed ship with make.  I can provide
> > a link
> > > > > > > > to the distribution I used if there's interest.
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <
> > [hidden email]> wrote:
> > > > > > > > >
> > > > > > > > > Pretty sure I remember comments in the code about building
> > with mingw
> > > > > > > > > on Windows (not cygwin). That should have a version of make,
> > too,
> > > > > > > > > IIRC.
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <
> > [hidden email]>
> > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Except that you can't build on plain Windows because the
> > build uses
> > > > > > > > make
> > > > > > > > > > and Microsoft version is called nmake. I might have to
> > cobble up some
> > > > > > > > > > cygwin thing...
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <
> > [hidden email]> wrote:
> > > > > > > > > >
> > > > > > > > > > > I can't speak to how the original developers did the
> > build, but all
> > > > > > > > > > > the Windows builds that I did were on a Windows
> > machine.  I always
> > > > > > > > > > > assumed that the original developers just manually
> > packed the release
> > > > > > > > > > > jar with artifacts from each supported environment.  I
> > never did any
> > > > > > > > > > > investigation into the process.  Is cobbling together a
> > release in
> > > > > > > > > > > that manner really a non-starter here?
> > > > > > > > > > >
> > > > > > > > > > > Alex
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <
> > [hidden email]
> > > > > > > > >
> > > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Matt:
> > > > > > > > > > > >
> > > > > > > > > > > > > I have:
> > > > > > > > > > > > >
> > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name windows.h
> > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > >
> > > > > > > > > > > > > Case matters here, so I wonder if the original
> > others did not
> > > > > > > > cross
> > > > > > > > > > > > compile
> > > > > > > > > > > > > from Linux and instead built a little here, a little
> > there, and
> > > > > > > > so on.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am not
> > sure where
> > > > > > > > that is
> > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <
> > [hidden email]> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > > Are the Windows headers even available when using
> > Ming32 or
> > > > > > > > Cygwin?
> > > > > > > > > > > > > That sounds more like a Visual Studio compiler thing.
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > > > [hidden email]>
> > > > > > > > > > > wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > The challenge is getting everything set up just
> > right for
> > > > > > > > building
> > > > > > > > > > > the
> > > > > > > > > > > > > > various OS profiles. This component is quite
> > different in this
> > > > > > > > > > > regard,
> > > > > > > > > > > > > > getting help from the original contributors would
> > be helpful.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > After much fiddling to install the proper
> > packages, this
> > > > > > > > builds OK:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > But these do not:
> > > > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > due to:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > commons-crypto
> > > > > > > > ---
> > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > make:
> > > > > > > > > > > > > >      [exec] make native
> > CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > -I"/include"
> > > > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include
> > -I/usr/include
> > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > -o
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > failed
> > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] Makefile:82: recipe for target 'win64'
> > failed
> > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > >      [exec]
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > > > fatal error: Windows.h: No such file or directory
> > > > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > >
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > project
> > > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> > exec
> > > > > > > > returned: 2
> > > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > executable="make">... @ 5:78 in
> > > > > > > > > > > > > >
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > windows.h
> > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Case matters here, so I wonder if the original
> > others did not
> > > > > > > > cross
> > > > > > > > > > > > > compile
> > > > > > > > > > > > > > from Linux and instead built a little here, a
> > little there,
> > > > > > > > and so
> > > > > > > > > > > on.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> > not sure where
> > > > > > > > that
> > > > > > > > > > > is
> > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > commons-crypto
> > > > > > > > ---
> > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > make:
> > > > > > > > > > > > > >      [exec] make native OS_NAME=Mac OS_ARCH=x86_64
> > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > -O2 -fPIC
> > > > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > > > -I/usr/local/include
> > > > > > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include
> > -I/usr/include
> > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > -o
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > failed
> > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] Makefile:88: recipe for target 'mac64'
> > failed
> > > > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file or
> > directory
> > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command line
> > option
> > > > > > > > ‘-arch’;
> > > > > > > > > > > did you
> > > > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command line
> > option
> > > > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > >
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > project
> > > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> > exec
> > > > > > > > returned: 2
> > > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > executable="make">... @ 5:78 in
> > > > > > > > > > > > > >
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > commons-crypto
> > > > > > > > ---
> > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > make:
> > > > > > > > > > > > > >      [exec] make native
> > CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > -O2 -fPIC
> > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp
> > -Ilib/include
> > > > > > > > -I/usr/include
> > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > -o
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > failed
> > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] Makefile:101: recipe for target
> > 'linux-arm' failed
> > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > lib/inc_linux/jni_md.h: No such
> > > > > > > > file or
> > > > > > > > > > > > > > directory
> > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > >
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > project
> > > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> > exec
> > > > > > > > returned: 2
> > > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > executable="make">... @ 5:78 in
> > > > > > > > > > > > > >
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Same kind of issue with the linux-armhf profile:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > commons-crypto
> > > > > > > > ---
> > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > make:
> > > > > > > > > > > > > >      [exec] make native
> > CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > -O2 -fPIC
> > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard -Ilib/include
> > > > > > > > -I/usr/include
> > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > -o
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > failed
> > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] Makefile:105: recipe for target
> > 'linux-armhf'
> > > > > > > > failed
> > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > lib/inc_linux/jni_md.h: No such
> > > > > > > > file or
> > > > > > > > > > > > > > directory
> > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > >
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > project
> > > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> > exec
> > > > > > > > returned: 2
> > > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > executable="make">... @ 5:78 in
> > > > > > > > > > > > > >
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > For the  linux-aarch64 profile, I need to install
> > the proper
> > > > > > > > package:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > commons-crypto
> > > > > > > > ---
> > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > make:
> > > > > > > > > > > > > >      [exec] make native
> > CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc -Ilib/inc_linux
> > > > > > > > > > > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > > > -Ilib/inc_mac -O2
> > > > > > > > > > > -fPIC
> > > > > > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include
> > -I/usr/include
> > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > >
> > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > -o
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > failed
> > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > >      [exec] Makefile:109: recipe for target
> > 'linux-aarch64'
> > > > > > > > failed
> > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11:
> > fatal error:
> > > > > > > > > > > > > > openssl/opensslconf.h: No such file or directory
> > > > > > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > >
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > project
> > > > > > > > > > > > > > commons-crypto: An Ant BuildException has occured:
> > exec
> > > > > > > > returned: 2
> > > > > > > > > > > > > > [ERROR] around Ant part ...<exec failonerror="true"
> > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > executable="make">... @ 5:78 in
> > > > > > > > > > > > > >
> > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thoughts?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > > > [hidden email]>
> > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Just checking in on the status of the 1.1
> > release.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > [hidden email]
> > > > > > > > > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > > > To unsubscribe, e-mail:
> > [hidden email]
> > > > > > > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > [hidden email]
> > > > > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Marcelo Vanzin
> > > > > > > > > [hidden email]
> > > > > > > > > "Life's too short to drink cheap beer"
> > > > > > > > >
> > > > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

garydgregory
Thanks Geoffrey,

Are you available at some point to do a webex to straighten out my local
set up? Just email me directly so we can coordinate.

Gary

On Fri, Jul 24, 2020 at 4:34 PM Geoffrey Blake <[hidden email]>
wrote:

> Hi Gary,
>
> windows.h/Windows.h/WINDOWS.H are all names for the same file, on
> Windows I've found out, the FS is case-insensitive.  This is not true
> on a Linux box though.  I submitted a new PR to fix this and get
> Windows builds working again on a Linux box, as well as testing that
> windows artifacts will still build via Travis.  Hopefully this can
> unstick the release as you can now cross-compile everything save the
> OSX shared-lib on one box by pointing Maven to the proper targets.
>
> -Geoff
>
> On Sat, Jul 18, 2020 at 11:25 AM Gary Gregory <[hidden email]>
> wrote:
> >
> > On Thu, Jul 2, 2020 at 12:39 PM Geoffrey Blake <
> [hidden email]>
> > wrote:
> >
> > > I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
> > > and vagrant, but it looks like the windows build is broken.  There are
> > > typos trying to include "Windows.h" which should be "windows.h" to
> > >
> >
> > Are you sure that this include is not referring the to Microsoft header,
> > for example, on my machine:
> >
> > C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\Windows.h
> >
> > ?
> >
> > Gary
> >
> > > compile with mingw and redefined macros that I think are mixing
> > > between Linux and windows headers.  I won't be able to get to trying
> > > to fix and submit any PRs on these this week or next.  But anyone who
> > > wants to try cross-compiling, here are the packages I installed to get
> > > up and running minimally on Ubuntu:
> > >
> > > sudo apt-get install build-essential g++-mingw-w64
> > > gcc-aarch64-linux-gnu libc6-dev-i386
> > > sudo apt-get install libssl-dev git
> > > sudo add-apt-repository ppa:openjdk-r/ppa
> > > sudo apt-get install openjdk-8-jdk
> > >
> > > Don't install the Ubuntu supplied maven, its too old.  Just grab the
> > > 3.6 tarball from apache.
> > >
> > > -Geoff
> > >
> > > On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]>
> wrote:
> > > >
> > > > I'll see if I have any time this weekend, but this part is largely
> > > > unfamiliar to me, so not sure how far I'll get even if I have the
> time
> > > > to look at it.
> > > >
> > > > On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> > > > <[hidden email]> wrote:
> > > > >
> > > > > I think you're right Alex.  I just happened to look at the Makefile
> > > > > and saw this above the win64 target:
> > > > >
> > > > > # for cross-compilation on Ubuntu, install the g++-mingw-w64-x86-64
> > > package
> > > > >
> > > > > We could potentially build everything but MacOS on 1 Ubuntu
> 16.04LTS
> > > > > box.  Or even a 14.04 box if necessary.  Anybody have the time to
> try?
> > > > >
> > > > > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <[hidden email]
> >
> > > wrote:
> > > > > >
> > > > > > Not sure if it's relevant or not, but to get the build to
> compile on
> > > > > > Windows with MinGW, I commented out line 137 of
> > > > > >
> > >
> https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
> > > :
> > > > > >
> > > > > > //#define inline __inline;
> > > > > >
> > > > > > I never did learn why it was there in the first place, but the
> broken
> > > > > > build was originally reported as
> > > > > >
> > > > > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > > > > >
> > > > > > Now I'm wondering if it may have had something to do with
> > > > > > cross-compiling for the build.
> > > > > >
> > > > > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > > > > <[hidden email]> wrote:
> > > > > > >
> > > > > > > Is there anything needed to help move this release along?
> From the
> > > > > > > looks of the Makefile, Windows was using GCC.  I don't think
> the
> > > > > > > compiler is going to have much of an impact since the JNI
> bindings
> > > are
> > > > > > > simply calling through to the OpenSSL library that is already
> > > > > > > precompiled for the environment.
> > > > > > >
> > > > > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <
> [hidden email]>
> > > wrote:
> > > > > > > >
> > > > > > > > I have a feeling about both mingw or cygwin build output
> will be
> > > slower
> > > > > > > > than microsoft-visual-studio build output...
> > > > > > > > Just a feeling, but no evidence.
> > > > > > > >
> > > > > > > > Alex Remily <[hidden email]> 于2020年6月14日周日 上午7:02写道:
> > > > > > > >
> > > > > > > > > I used MinGW64.  It does indeed ship with make.  I can
> provide
> > > a link
> > > > > > > > > to the distribution I used if there's interest.
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <
> > > [hidden email]> wrote:
> > > > > > > > > >
> > > > > > > > > > Pretty sure I remember comments in the code about
> building
> > > with mingw
> > > > > > > > > > on Windows (not cygwin). That should have a version of
> make,
> > > too,
> > > > > > > > > > IIRC.
> > > > > > > > > >
> > > > > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <
> > > [hidden email]>
> > > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > Except that you can't build on plain Windows because
> the
> > > build uses
> > > > > > > > > make
> > > > > > > > > > > and Microsoft version is called nmake. I might have to
> > > cobble up some
> > > > > > > > > > > cygwin thing...
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <
> > > [hidden email]> wrote:
> > > > > > > > > > >
> > > > > > > > > > > > I can't speak to how the original developers did the
> > > build, but all
> > > > > > > > > > > > the Windows builds that I did were on a Windows
> > > machine.  I always
> > > > > > > > > > > > assumed that the original developers just manually
> > > packed the release
> > > > > > > > > > > > jar with artifacts from each supported environment.
> I
> > > never did any
> > > > > > > > > > > > investigation into the process.  Is cobbling
> together a
> > > release in
> > > > > > > > > > > > that manner really a non-starter here?
> > > > > > > > > > > >
> > > > > > > > > > > > Alex
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <
> > > [hidden email]
> > > > > > > > > >
> > > > > > > > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Matt:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> windows.h
> > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Case matters here, so I wonder if the original
> > > others did not
> > > > > > > > > cross
> > > > > > > > > > > > > compile
> > > > > > > > > > > > > > from Linux and instead built a little here, a
> little
> > > there, and
> > > > > > > > > so on.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> not
> > > sure where
> > > > > > > > > that is
> > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <
> > > [hidden email]> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Are the Windows headers even available when using
> > > Ming32 or
> > > > > > > > > Cygwin?
> > > > > > > > > > > > > > That sounds more like a Visual Studio compiler
> thing.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > > > > [hidden email]>
> > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > The challenge is getting everything set up just
> > > right for
> > > > > > > > > building
> > > > > > > > > > > > the
> > > > > > > > > > > > > > > various OS profiles. This component is quite
> > > different in this
> > > > > > > > > > > > regard,
> > > > > > > > > > > > > > > getting help from the original contributors
> would
> > > be helpful.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > After much fiddling to install the proper
> > > packages, this
> > > > > > > > > builds OK:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > But these do not:
> > > > > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > due to:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > > commons-crypto
> > > > > > > > > ---
> > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > >      [exec] make native
> > > CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > -I"/include"
> > > > > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include
> > > -I/usr/include
> > > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] Makefile:82: recipe for target
> 'win64'
> > > failed
> > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > >      [exec]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > > > > fatal error: Windows.h: No such file or
> directory
> > > > > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > >
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > project
> > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> occured:
> > > exec
> > > > > > > > > returned: 2
> > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> failonerror="true"
> > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > >
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > > windows.h
> > > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Case matters here, so I wonder if the original
> > > others did not
> > > > > > > > > cross
> > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > from Linux and instead built a little here, a
> > > little there,
> > > > > > > > > and so
> > > > > > > > > > > > on.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> > > not sure where
> > > > > > > > > that
> > > > > > > > > > > > is
> > > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > > commons-crypto
> > > > > > > > > ---
> > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > >      [exec] make native OS_NAME=Mac
> OS_ARCH=x86_64
> > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > -O2 -fPIC
> > > > > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > > > > -I/usr/local/include
> > > > > > > > > > > > > > > -I/usr/local/opt/openssl/include -Ilib/include
> > > -I/usr/include
> > > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] Makefile:88: recipe for target
> 'mac64'
> > > failed
> > > > > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file or
> > > directory
> > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> line
> > > option
> > > > > > > > > ‘-arch’;
> > > > > > > > > > > > did you
> > > > > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> line
> > > option
> > > > > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > >
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > project
> > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> occured:
> > > exec
> > > > > > > > > returned: 2
> > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> failonerror="true"
> > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > >
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Same kind of issue with the linux-arm profile:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > > commons-crypto
> > > > > > > > > ---
> > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > >      [exec] make native
> > > CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > -O2 -fPIC
> > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp
> > > -Ilib/include
> > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] Makefile:101: recipe for target
> > > 'linux-arm' failed
> > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > file or
> > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > >
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > project
> > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> occured:
> > > exec
> > > > > > > > > returned: 2
> > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> failonerror="true"
> > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > >
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Same kind of issue with the linux-armhf
> profile:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > > commons-crypto
> > > > > > > > > ---
> > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > >      [exec] make native
> > > CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > -O2 -fPIC
> > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard
> -Ilib/include
> > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] Makefile:105: recipe for target
> > > 'linux-armhf'
> > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > file or
> > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > >
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > project
> > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> occured:
> > > exec
> > > > > > > > > returned: 2
> > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> failonerror="true"
> > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > >
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > For the  linux-aarch64 profile, I need to
> install
> > > the proper
> > > > > > > > > package:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run (make) @
> > > commons-crypto
> > > > > > > > > ---
> > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > >      [exec] make native
> > > CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc
> -Ilib/inc_linux
> > > > > > > > > > > > > > >
> -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > > > > -Ilib/inc_mac -O2
> > > > > > > > > > > > -fPIC
> > > > > > > > > > > > > > > -fvisibility=hidden -Wall -Werror -Ilib/include
> > > -I/usr/include
> > > > > > > > > > > > > > > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > >
> > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > >      [exec] Makefile:109: recipe for target
> > > 'linux-aarch64'
> > > > > > > > > failed
> > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11:
> > > fatal error:
> > > > > > > > > > > > > > > openssl/opensslconf.h: No such file or
> directory
> > > > > > > > > > > > > > >      [exec]  # include <openssl/opensslconf.h>
> > > > > > > > > > > > > > >      [exec]            ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > >
> > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > project
> > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> occured:
> > > exec
> > > > > > > > > returned: 2
> > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> failonerror="true"
> > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > >
> > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Thoughts?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > > > > [hidden email]>
> > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Just checking in on the status of the 1.1
> > > release.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > [hidden email]
> > > > > > > > > > > > > > > > For additional commands, e-mail:
> > > [hidden email]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > [hidden email]
> > > > > > > > > > > > > > For additional commands, e-mail:
> > > [hidden email]
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > > > To unsubscribe, e-mail:
> > > [hidden email]
> > > > > > > > > > > > For additional commands, e-mail:
> > > [hidden email]
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Marcelo Vanzin
> > > > > > > > > > [hidden email]
> > > > > > > > > > "Life's too short to drink cheap beer"
> > > > > > > > > >
> > > > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> [hidden email]
> > > > > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Alex Remily
I'd recommend using MinGW.  I installed it through brew on my Mac and cross
compiled the windows build with little difficulty.  I expect a similar
experience on Linux.  The MinGW install contains all the necessary windows
headers.

On Fri, Jul 24, 2020, 7:16 PM Gary Gregory <[hidden email]> wrote:

> Thanks Geoffrey,
>
> Are you available at some point to do a webex to straighten out my local
> set up? Just email me directly so we can coordinate.
>
> Gary
>
> On Fri, Jul 24, 2020 at 4:34 PM Geoffrey Blake <[hidden email]
> >
> wrote:
>
> > Hi Gary,
> >
> > windows.h/Windows.h/WINDOWS.H are all names for the same file, on
> > Windows I've found out, the FS is case-insensitive.  This is not true
> > on a Linux box though.  I submitted a new PR to fix this and get
> > Windows builds working again on a Linux box, as well as testing that
> > windows artifacts will still build via Travis.  Hopefully this can
> > unstick the release as you can now cross-compile everything save the
> > OSX shared-lib on one box by pointing Maven to the proper targets.
> >
> > -Geoff
> >
> > On Sat, Jul 18, 2020 at 11:25 AM Gary Gregory <[hidden email]>
> > wrote:
> > >
> > > On Thu, Jul 2, 2020 at 12:39 PM Geoffrey Blake <
> > [hidden email]>
> > > wrote:
> > >
> > > > I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
> > > > and vagrant, but it looks like the windows build is broken.  There
> are
> > > > typos trying to include "Windows.h" which should be "windows.h" to
> > > >
> > >
> > > Are you sure that this include is not referring the to Microsoft
> header,
> > > for example, on my machine:
> > >
> > > C:\Program Files (x86)\Windows
> Kits\10\Include\10.0.17763.0\um\Windows.h
> > >
> > > ?
> > >
> > > Gary
> > >
> > > > compile with mingw and redefined macros that I think are mixing
> > > > between Linux and windows headers.  I won't be able to get to trying
> > > > to fix and submit any PRs on these this week or next.  But anyone who
> > > > wants to try cross-compiling, here are the packages I installed to
> get
> > > > up and running minimally on Ubuntu:
> > > >
> > > > sudo apt-get install build-essential g++-mingw-w64
> > > > gcc-aarch64-linux-gnu libc6-dev-i386
> > > > sudo apt-get install libssl-dev git
> > > > sudo add-apt-repository ppa:openjdk-r/ppa
> > > > sudo apt-get install openjdk-8-jdk
> > > >
> > > > Don't install the Ubuntu supplied maven, its too old.  Just grab the
> > > > 3.6 tarball from apache.
> > > >
> > > > -Geoff
> > > >
> > > > On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]>
> > wrote:
> > > > >
> > > > > I'll see if I have any time this weekend, but this part is largely
> > > > > unfamiliar to me, so not sure how far I'll get even if I have the
> > time
> > > > > to look at it.
> > > > >
> > > > > On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> > > > > <[hidden email]> wrote:
> > > > > >
> > > > > > I think you're right Alex.  I just happened to look at the
> Makefile
> > > > > > and saw this above the win64 target:
> > > > > >
> > > > > > # for cross-compilation on Ubuntu, install the
> g++-mingw-w64-x86-64
> > > > package
> > > > > >
> > > > > > We could potentially build everything but MacOS on 1 Ubuntu
> > 16.04LTS
> > > > > > box.  Or even a 14.04 box if necessary.  Anybody have the time to
> > try?
> > > > > >
> > > > > > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <
> [hidden email]
> > >
> > > > wrote:
> > > > > > >
> > > > > > > Not sure if it's relevant or not, but to get the build to
> > compile on
> > > > > > > Windows with MinGW, I commented out line 137 of
> > > > > > >
> > > >
> >
> https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
> > > > :
> > > > > > >
> > > > > > > //#define inline __inline;
> > > > > > >
> > > > > > > I never did learn why it was there in the first place, but the
> > broken
> > > > > > > build was originally reported as
> > > > > > >
> > > > > > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > > > > > >
> > > > > > > Now I'm wondering if it may have had something to do with
> > > > > > > cross-compiling for the build.
> > > > > > >
> > > > > > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > > > > > <[hidden email]> wrote:
> > > > > > > >
> > > > > > > > Is there anything needed to help move this release along?
> > From the
> > > > > > > > looks of the Makefile, Windows was using GCC.  I don't think
> > the
> > > > > > > > compiler is going to have much of an impact since the JNI
> > bindings
> > > > are
> > > > > > > > simply calling through to the OpenSSL library that is already
> > > > > > > > precompiled for the environment.
> > > > > > > >
> > > > > > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <
> > [hidden email]>
> > > > wrote:
> > > > > > > > >
> > > > > > > > > I have a feeling about both mingw or cygwin build output
> > will be
> > > > slower
> > > > > > > > > than microsoft-visual-studio build output...
> > > > > > > > > Just a feeling, but no evidence.
> > > > > > > > >
> > > > > > > > > Alex Remily <[hidden email]> 于2020年6月14日周日
> 上午7:02写道:
> > > > > > > > >
> > > > > > > > > > I used MinGW64.  It does indeed ship with make.  I can
> > provide
> > > > a link
> > > > > > > > > > to the distribution I used if there's interest.
> > > > > > > > > >
> > > > > > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <
> > > > [hidden email]> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Pretty sure I remember comments in the code about
> > building
> > > > with mingw
> > > > > > > > > > > on Windows (not cygwin). That should have a version of
> > make,
> > > > too,
> > > > > > > > > > > IIRC.
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <
> > > > [hidden email]>
> > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Except that you can't build on plain Windows because
> > the
> > > > build uses
> > > > > > > > > > make
> > > > > > > > > > > > and Microsoft version is called nmake. I might have
> to
> > > > cobble up some
> > > > > > > > > > > > cygwin thing...
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <
> > > > [hidden email]> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > > I can't speak to how the original developers did
> the
> > > > build, but all
> > > > > > > > > > > > > the Windows builds that I did were on a Windows
> > > > machine.  I always
> > > > > > > > > > > > > assumed that the original developers just manually
> > > > packed the release
> > > > > > > > > > > > > jar with artifacts from each supported environment.
> > I
> > > > never did any
> > > > > > > > > > > > > investigation into the process.  Is cobbling
> > together a
> > > > release in
> > > > > > > > > > > > > that manner really a non-starter here?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Alex
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <
> > > > [hidden email]
> > > > > > > > > > >
> > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Hi Matt:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > windows.h
> > > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Case matters here, so I wonder if the original
> > > > others did not
> > > > > > > > > > cross
> > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > from Linux and instead built a little here, a
> > little
> > > > there, and
> > > > > > > > > > so on.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> > not
> > > > sure where
> > > > > > > > > > that is
> > > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <
> > > > [hidden email]> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Are the Windows headers even available when
> using
> > > > Ming32 or
> > > > > > > > > > Cygwin?
> > > > > > > > > > > > > > > That sounds more like a Visual Studio compiler
> > thing.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > > > > > [hidden email]>
> > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > The challenge is getting everything set up
> just
> > > > right for
> > > > > > > > > > building
> > > > > > > > > > > > > the
> > > > > > > > > > > > > > > > various OS profiles. This component is quite
> > > > different in this
> > > > > > > > > > > > > regard,
> > > > > > > > > > > > > > > > getting help from the original contributors
> > would
> > > > be helpful.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > After much fiddling to install the proper
> > > > packages, this
> > > > > > > > > > builds OK:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > But these do not:
> > > > > > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > due to:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> (make) @
> > > > commons-crypto
> > > > > > > > > > ---
> > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > >      [exec] make native
> > > > CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > -I"/include"
> > > > > > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include
> > > > -I/usr/include
> > > > > > > > > > > > > > > >
> -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > >
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] Makefile:82: recipe for target
> > 'win64'
> > > > failed
> > > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > > >      [exec]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > > > > > fatal error: Windows.h: No such file or
> > directory
> > > > > > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > >
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > occured:
> > > > exec
> > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > failonerror="true"
> > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > >
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > > > windows.h
> > > > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Case matters here, so I wonder if the
> original
> > > > others did not
> > > > > > > > > > cross
> > > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > > from Linux and instead built a little here, a
> > > > little there,
> > > > > > > > > > and so
> > > > > > > > > > > > > on.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I
> am
> > > > not sure where
> > > > > > > > > > that
> > > > > > > > > > > > > is
> > > > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> (make) @
> > > > commons-crypto
> > > > > > > > > > ---
> > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > >      [exec] make native OS_NAME=Mac
> > OS_ARCH=x86_64
> > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > -O2 -fPIC
> > > > > > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > > > > > -I/usr/local/include
> > > > > > > > > > > > > > > > -I/usr/local/opt/openssl/include
> -Ilib/include
> > > > -I/usr/include
> > > > > > > > > > > > > > > >
> -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > >
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] Makefile:88: recipe for target
> > 'mac64'
> > > > failed
> > > > > > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file
> or
> > > > directory
> > > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> > line
> > > > option
> > > > > > > > > > ‘-arch’;
> > > > > > > > > > > > > did you
> > > > > > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> > line
> > > > option
> > > > > > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > >
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > occured:
> > > > exec
> > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > failonerror="true"
> > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > >
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Same kind of issue with the linux-arm
> profile:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> (make) @
> > > > commons-crypto
> > > > > > > > > > ---
> > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > >      [exec] make native
> > > > CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > -O2 -fPIC
> > > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp
> > > > -Ilib/include
> > > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > >
> -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > >
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] Makefile:101: recipe for target
> > > > 'linux-arm' failed
> > > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > > file or
> > > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > >
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > occured:
> > > > exec
> > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > failonerror="true"
> > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > >
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Same kind of issue with the linux-armhf
> > profile:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> (make) @
> > > > commons-crypto
> > > > > > > > > > ---
> > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > >      [exec] make native
> > > > CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > -O2 -fPIC
> > > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard
> > -Ilib/include
> > > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > >
> -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > >
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] Makefile:105: recipe for target
> > > > 'linux-armhf'
> > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > > file or
> > > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > >
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > occured:
> > > > exec
> > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > failonerror="true"
> > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > >
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > For the  linux-aarch64 profile, I need to
> > install
> > > > the proper
> > > > > > > > > > package:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> (make) @
> > > > commons-crypto
> > > > > > > > > > ---
> > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > >      [exec] make native
> > > > CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc
> > -Ilib/inc_linux
> > > > > > > > > > > > > > > >
> > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > > > > > -Ilib/inc_mac -O2
> > > > > > > > > > > > > -fPIC
> > > > > > > > > > > > > > > > -fvisibility=hidden -Wall -Werror
> -Ilib/include
> > > > -I/usr/include
> > > > > > > > > > > > > > > >
> -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > >
> > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > >
> > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > >      [exec] Makefile:109: recipe for target
> > > > 'linux-aarch64'
> > > > > > > > > > failed
> > > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11:
> > > > fatal error:
> > > > > > > > > > > > > > > > openssl/opensslconf.h: No such file or
> > directory
> > > > > > > > > > > > > > > >      [exec]  # include
> <openssl/opensslconf.h>
> > > > > > > > > > > > > > > >      [exec]
> ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> >
> [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > >
> > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > occured:
> > > > exec
> > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > failonerror="true"
> > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > >
> > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Thoughts?
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > > > > > [hidden email]>
> > > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Just checking in on the status of the 1.1
> > > > release.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > > > > > > For additional commands, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > > > > For additional commands, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > > For additional commands, e-mail:
> > > > [hidden email]
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Marcelo Vanzin
> > > > > > > > > > > [hidden email]
> > > > > > > > > > > "Life's too short to drink cheap beer"
> > > > > > > > > > >
> > > > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > [hidden email]
> > > > > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> [hidden email]
> > > > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: [crypto] New Release

Marcelo Vanzin-4
Is it possible to cross-compile from Linux to MacOS?

Even if it isn't, might be a good idea to write a docker image to do
the other cross-builds; then from a Mac you can build the MacOS binary
and call docker to build all the others.

On Fri, Jul 24, 2020 at 5:04 PM Alex Remily <[hidden email]> wrote:

>
> I'd recommend using MinGW.  I installed it through brew on my Mac and cross
> compiled the windows build with little difficulty.  I expect a similar
> experience on Linux.  The MinGW install contains all the necessary windows
> headers.
>
> On Fri, Jul 24, 2020, 7:16 PM Gary Gregory <[hidden email]> wrote:
>
> > Thanks Geoffrey,
> >
> > Are you available at some point to do a webex to straighten out my local
> > set up? Just email me directly so we can coordinate.
> >
> > Gary
> >
> > On Fri, Jul 24, 2020 at 4:34 PM Geoffrey Blake <[hidden email]
> > >
> > wrote:
> >
> > > Hi Gary,
> > >
> > > windows.h/Windows.h/WINDOWS.H are all names for the same file, on
> > > Windows I've found out, the FS is case-insensitive.  This is not true
> > > on a Linux box though.  I submitted a new PR to fix this and get
> > > Windows builds working again on a Linux box, as well as testing that
> > > windows artifacts will still build via Travis.  Hopefully this can
> > > unstick the release as you can now cross-compile everything save the
> > > OSX shared-lib on one box by pointing Maven to the proper targets.
> > >
> > > -Geoff
> > >
> > > On Sat, Jul 18, 2020 at 11:25 AM Gary Gregory <[hidden email]>
> > > wrote:
> > > >
> > > > On Thu, Jul 2, 2020 at 12:39 PM Geoffrey Blake <
> > > [hidden email]>
> > > > wrote:
> > > >
> > > > > I took a bit of time to set up an x86 Ubuntu 14.04 VM via virtualbox
> > > > > and vagrant, but it looks like the windows build is broken.  There
> > are
> > > > > typos trying to include "Windows.h" which should be "windows.h" to
> > > > >
> > > >
> > > > Are you sure that this include is not referring the to Microsoft
> > header,
> > > > for example, on my machine:
> > > >
> > > > C:\Program Files (x86)\Windows
> > Kits\10\Include\10.0.17763.0\um\Windows.h
> > > >
> > > > ?
> > > >
> > > > Gary
> > > >
> > > > > compile with mingw and redefined macros that I think are mixing
> > > > > between Linux and windows headers.  I won't be able to get to trying
> > > > > to fix and submit any PRs on these this week or next.  But anyone who
> > > > > wants to try cross-compiling, here are the packages I installed to
> > get
> > > > > up and running minimally on Ubuntu:
> > > > >
> > > > > sudo apt-get install build-essential g++-mingw-w64
> > > > > gcc-aarch64-linux-gnu libc6-dev-i386
> > > > > sudo apt-get install libssl-dev git
> > > > > sudo add-apt-repository ppa:openjdk-r/ppa
> > > > > sudo apt-get install openjdk-8-jdk
> > > > >
> > > > > Don't install the Ubuntu supplied maven, its too old.  Just grab the
> > > > > 3.6 tarball from apache.
> > > > >
> > > > > -Geoff
> > > > >
> > > > > On Tue, Jun 30, 2020 at 8:24 PM Alex Remily <[hidden email]>
> > > wrote:
> > > > > >
> > > > > > I'll see if I have any time this weekend, but this part is largely
> > > > > > unfamiliar to me, so not sure how far I'll get even if I have the
> > > time
> > > > > > to look at it.
> > > > > >
> > > > > > On Tue, Jun 30, 2020 at 4:59 PM Geoffrey Blake
> > > > > > <[hidden email]> wrote:
> > > > > > >
> > > > > > > I think you're right Alex.  I just happened to look at the
> > Makefile
> > > > > > > and saw this above the win64 target:
> > > > > > >
> > > > > > > # for cross-compilation on Ubuntu, install the
> > g++-mingw-w64-x86-64
> > > > > package
> > > > > > >
> > > > > > > We could potentially build everything but MacOS on 1 Ubuntu
> > > 16.04LTS
> > > > > > > box.  Or even a 14.04 box if necessary.  Anybody have the time to
> > > try?
> > > > > > >
> > > > > > > On Thu, Jun 25, 2020 at 4:12 PM Alex Remily <
> > [hidden email]
> > > >
> > > > > wrote:
> > > > > > > >
> > > > > > > > Not sure if it's relevant or not, but to get the build to
> > > compile on
> > > > > > > > Windows with MinGW, I commented out line 137 of
> > > > > > > >
> > > > >
> > >
> > https://github.com/apache/commons-crypto/blob/master/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
> > > > > :
> > > > > > > >
> > > > > > > > //#define inline __inline;
> > > > > > > >
> > > > > > > > I never did learn why it was there in the first place, but the
> > > broken
> > > > > > > > build was originally reported as
> > > > > > > >
> > > > > > > > https://issues.apache.org/jira/browse/CRYPTO-137.
> > > > > > > >
> > > > > > > > Now I'm wondering if it may have had something to do with
> > > > > > > > cross-compiling for the build.
> > > > > > > >
> > > > > > > > On Thu, Jun 25, 2020 at 1:13 PM Geoffrey Blake
> > > > > > > > <[hidden email]> wrote:
> > > > > > > > >
> > > > > > > > > Is there anything needed to help move this release along?
> > > From the
> > > > > > > > > looks of the Makefile, Windows was using GCC.  I don't think
> > > the
> > > > > > > > > compiler is going to have much of an impact since the JNI
> > > bindings
> > > > > are
> > > > > > > > > simply calling through to the OpenSSL library that is already
> > > > > > > > > precompiled for the environment.
> > > > > > > > >
> > > > > > > > > On Sat, Jun 13, 2020 at 6:14 PM Xeno Amess <
> > > [hidden email]>
> > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > I have a feeling about both mingw or cygwin build output
> > > will be
> > > > > slower
> > > > > > > > > > than microsoft-visual-studio build output...
> > > > > > > > > > Just a feeling, but no evidence.
> > > > > > > > > >
> > > > > > > > > > Alex Remily <[hidden email]> 于2020年6月14日周日
> > 上午7:02写道:
> > > > > > > > > >
> > > > > > > > > > > I used MinGW64.  It does indeed ship with make.  I can
> > > provide
> > > > > a link
> > > > > > > > > > > to the distribution I used if there's interest.
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Jun 13, 2020 at 6:26 PM Marcelo Vanzin <
> > > > > [hidden email]> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Pretty sure I remember comments in the code about
> > > building
> > > > > with mingw
> > > > > > > > > > > > on Windows (not cygwin). That should have a version of
> > > make,
> > > > > too,
> > > > > > > > > > > > IIRC.
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Jun 13, 2020 at 3:11 PM Gary Gregory <
> > > > > [hidden email]>
> > > > > > > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Except that you can't build on plain Windows because
> > > the
> > > > > build uses
> > > > > > > > > > > make
> > > > > > > > > > > > > and Microsoft version is called nmake. I might have
> > to
> > > > > cobble up some
> > > > > > > > > > > > > cygwin thing...
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Jun 13, 2020, 18:02 Alex Remily <
> > > > > [hidden email]> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > I can't speak to how the original developers did
> > the
> > > > > build, but all
> > > > > > > > > > > > > > the Windows builds that I did were on a Windows
> > > > > machine.  I always
> > > > > > > > > > > > > > assumed that the original developers just manually
> > > > > packed the release
> > > > > > > > > > > > > > jar with artifacts from each supported environment.
> > > I
> > > > > never did any
> > > > > > > > > > > > > > investigation into the process.  Is cobbling
> > > together a
> > > > > release in
> > > > > > > > > > > > > > that manner really a non-starter here?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Alex
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Sat, Jun 13, 2020 at 5:44 PM Gary Gregory <
> > > > > [hidden email]
> > > > > > > > > > > >
> > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Hi Matt:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > > windows.h
> > > > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Case matters here, so I wonder if the original
> > > > > others did not
> > > > > > > > > > > cross
> > > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > > from Linux and instead built a little here, a
> > > little
> > > > > there, and
> > > > > > > > > > > so on.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I am
> > > not
> > > > > sure where
> > > > > > > > > > > that is
> > > > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On Sat, Jun 13, 2020, 15:41 Matt Sicker <
> > > > > [hidden email]> wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Are the Windows headers even available when
> > using
> > > > > Ming32 or
> > > > > > > > > > > Cygwin?
> > > > > > > > > > > > > > > > That sounds more like a Visual Studio compiler
> > > thing.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > On Sat, 13 Jun 2020 at 09:29, Gary Gregory <
> > > > > > > > > > > [hidden email]>
> > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > The challenge is getting everything set up
> > just
> > > > > right for
> > > > > > > > > > > building
> > > > > > > > > > > > > > the
> > > > > > > > > > > > > > > > > various OS profiles. This component is quite
> > > > > different in this
> > > > > > > > > > > > > > regard,
> > > > > > > > > > > > > > > > > getting help from the original contributors
> > > would
> > > > > be helpful.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > After much fiddling to install the proper
> > > > > packages, this
> > > > > > > > > > > builds OK:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > mvn package -DskipTests -P linux64
> > > > > > > > > > > > > > > > > mvn package -DskipTests -P linux32
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > But these do not:
> > > > > > > > > > > > > > > > > mvn package -DskipTests -P win64
> > > > > > > > > > > > > > > > > mvn package -DskipTests -P win32
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > due to:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> > (make) @
> > > > > commons-crypto
> > > > > > > > > > > ---
> > > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > > >      [exec] make native
> > > > > CROSS_PREFIX=x86_64-w64-mingw32-
> > > > > > > > > > > > > > OS_NAME=Windows
> > > > > > > > > > > > > > > > > OS_ARCH=x86_64
> > > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] x86_64-w64-mingw32-gcc
> > > > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > -I"/include"
> > > > > > > > > > > > > > > > > -Ilib/inc_win -O2 -fno-inline -Ilib/include
> > > > > -I/usr/include
> > > > > > > > > > > > > > > > >
> > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > > >
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] Makefile:82: recipe for target
> > > 'win64'
> > > > > failed
> > > > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22:0,
> > > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > > > >      [exec]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:151:10:
> > > > > > > > > > > > > > > > > fatal error: Windows.h: No such file or
> > > directory
> > > > > > > > > > > > > > > > >      [exec]  #include <Windows.h>
> > > > > > > > > > > > > > > > >      [exec]           ^~~~~~~~~~~
> > > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Windows-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > > >      [exec] make: *** [win64] Error 2
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] Total time:  10.107 s
> > > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T13:58:50Z
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > > >
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > > occured:
> > > > > exec
> > > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > > failonerror="true"
> > > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > > >
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > I have:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > /mnt/c/git/commons-crypto# find /usr -name
> > > > > windows.h
> > > > > > > > > > > > > > > > > /usr/i686-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > > > /usr/share/mingw-w64/include/windows.h
> > > > > > > > > > > > > > > > > /usr/x86_64-w64-mingw32/include/windows.h
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Case matters here, so I wonder if the
> > original
> > > > > others did not
> > > > > > > > > > > cross
> > > > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > > > from Linux and instead built a little here, a
> > > > > little there,
> > > > > > > > > > > and so
> > > > > > > > > > > > > > on.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > I can see "-Ilib/inc_win" in the build but I
> > am
> > > > > not sure where
> > > > > > > > > > > that
> > > > > > > > > > > > > > is
> > > > > > > > > > > > > > > > > supposed to be...
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Building with mac64 profile is no better:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > mvn package -DskipTests -P mac64
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> > (make) @
> > > > > commons-crypto
> > > > > > > > > > > ---
> > > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > > >      [exec] make native OS_NAME=Mac
> > > OS_ARCH=x86_64
> > > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] gcc -arch x86_64 -Ilib/inc_mac
> > > > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > -O2 -fPIC
> > > > > > > > > > > > > > > > > -mmacosx-version-min=10.7 -fvisibility=hidden
> > > > > > > > > > > -I/usr/local/include
> > > > > > > > > > > > > > > > > -I/usr/local/opt/openssl/include
> > -Ilib/include
> > > > > -I/usr/include
> > > > > > > > > > > > > > > > >
> > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > > >
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] Makefile:88: recipe for target
> > > 'mac64'
> > > > > failed
> > > > > > > > > > > > > > > > >      [exec] gcc: error: x86_64: No such file
> > or
> > > > > directory
> > > > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> > > line
> > > > > option
> > > > > > > > > > > ‘-arch’;
> > > > > > > > > > > > > > did you
> > > > > > > > > > > > > > > > > mean ‘-march=’?
> > > > > > > > > > > > > > > > >      [exec] gcc: error: unrecognized command
> > > line
> > > > > option
> > > > > > > > > > > > > > > > > ‘-mmacosx-version-min=10.7’
> > > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Mac-x86_64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > > >      [exec] make: *** [mac64] Error 2
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] Total time:  12.513 s
> > > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:08:40Z
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > > >
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > > occured:
> > > > > exec
> > > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > > failonerror="true"
> > > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > > >
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Same kind of issue with the linux-arm
> > profile:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> > (make) @
> > > > > commons-crypto
> > > > > > > > > > > ---
> > > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > > >      [exec] make native
> > > > > CROSS_PREFIX=arm-linux-gnueabi-
> > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > > OS_ARCH=arm
> > > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] arm-linux-gnueabi-gcc -include
> > > > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > -O2 -fPIC
> > > > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=softfp
> > > > > -Ilib/include
> > > > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > > >
> > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > > >
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] Makefile:101: recipe for target
> > > > > 'linux-arm' failed
> > > > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > > > file or
> > > > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-arm/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > > >      [exec] make: *** [linux-arm] Error 2
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] Total time:  10.906 s
> > > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:13:37Z
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > > >
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > > occured:
> > > > > exec
> > > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > > failonerror="true"
> > > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > > >
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Same kind of issue with the linux-armhf
> > > profile:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> > (make) @
> > > > > commons-crypto
> > > > > > > > > > > ---
> > > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > > >      [exec] make native
> > > > > CROSS_PREFIX=arm-linux-gnueabihf-
> > > > > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > > OS_ARCH=armhf
> > > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] arm-linux-gnueabihf-gcc -include
> > > > > > > > > > > lib/inc_linux/jni_md.h
> > > > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > -O2 -fPIC
> > > > > > > > > > > > > > > > > -fvisibility=hidden -mfloat-abi=hard
> > > -Ilib/include
> > > > > > > > > > > -I/usr/include
> > > > > > > > > > > > > > > > >
> > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > > >
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] Makefile:105: recipe for target
> > > > > 'linux-armhf'
> > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] cc1: fatal error:
> > > > > lib/inc_linux/jni_md.h: No such
> > > > > > > > > > > file or
> > > > > > > > > > > > > > > > > directory
> > > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-armhf/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > > >      [exec] make: *** [linux-armhf] Error 2
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] Total time:  10.400 s
> > > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:16:53Z
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > > >
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > > occured:
> > > > > exec
> > > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > > failonerror="true"
> > > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > > >
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > For the  linux-aarch64 profile, I need to
> > > install
> > > > > the proper
> > > > > > > > > > > package:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > [INFO] --- maven-antrun-plugin:1.8:run
> > (make) @
> > > > > commons-crypto
> > > > > > > > > > > ---
> > > > > > > > > > > > > > > > > [INFO] Executing tasks
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > make:
> > > > > > > > > > > > > > > > >      [exec] make native
> > > > > CROSS_PREFIX=aarch64-linux-gnu-
> > > > > > > > > > > OS_NAME=Linux
> > > > > > > > > > > > > > > > > OS_ARCH=aarch64
> > > > > > > > > > > > > > > > >      [exec] make[1]: Entering directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] aarch64-linux-gnu-gcc
> > > -Ilib/inc_linux
> > > > > > > > > > > > > > > > >
> > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include"
> > > > > > > > > > > -Ilib/inc_mac -O2
> > > > > > > > > > > > > > -fPIC
> > > > > > > > > > > > > > > > > -fvisibility=hidden -Wall -Werror
> > -Ilib/include
> > > > > -I/usr/include
> > > > > > > > > > > > > > > > >
> > -I"src/main/native/org/apache/commons/crypto/"
> > > > > > > > > > > > > > > > >
> > > > > -I"/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/cipher"
> > > > > > > > > > > > > > > > >
> > > > > -I"target/jni-classes/org/apache/commons/crypto/random" -c
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
> > > > > > > > > > > > > > > > > -o
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o
> > > > > > > > > > > > > > > > >      [exec] Makefile:54: recipe for target
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > 'target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o'
> > > > > > > > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] make[1]: Leaving directory
> > > > > > > > > > > '/mnt/c/git/commons-crypto'
> > > > > > > > > > > > > > > > >      [exec] Makefile:109: recipe for target
> > > > > 'linux-aarch64'
> > > > > > > > > > > failed
> > > > > > > > > > > > > > > > >      [exec] In file included from
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:233:0,
> > > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22,
> > > > > > > > > > > > > > > > >      [exec]                  from
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:19:
> > > > > > > > > > > > > > > > >      [exec] /usr/include/openssl/aes.h:13:11:
> > > > > fatal error:
> > > > > > > > > > > > > > > > > openssl/opensslconf.h: No such file or
> > > directory
> > > > > > > > > > > > > > > > >      [exec]  # include
> > <openssl/opensslconf.h>
> > > > > > > > > > > > > > > > >      [exec]
> > ^~~~~~~~~~~~~~~~~~~~~~~
> > > > > > > > > > > > > > > > >      [exec] compilation terminated.
> > > > > > > > > > > > > > > > >      [exec] make[1]: ***
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > >
> > [target/commons-crypto-1.1.0-SNAPSHOT-Linux-aarch64/OpenSslCryptoRandomNative.o]
> > > > > > > > > > > > > > > > > Error 1
> > > > > > > > > > > > > > > > >      [exec] make: *** [linux-aarch64] Error 2
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [INFO] Total time:  10.943 s
> > > > > > > > > > > > > > > > > [INFO] Finished at: 2020-06-13T14:19:44Z
> > > > > > > > > > > > > > > > > [INFO]
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > > > > > > > > > > > >
> > > > > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (make) on
> > > > > > > > > > > > > > project
> > > > > > > > > > > > > > > > > commons-crypto: An Ant BuildException has
> > > occured:
> > > > > exec
> > > > > > > > > > > returned: 2
> > > > > > > > > > > > > > > > > [ERROR] around Ant part ...<exec
> > > failonerror="true"
> > > > > > > > > > > > > > > > > dir="/mnt/c/git/commons-crypto"
> > > > > executable="make">... @ 5:78 in
> > > > > > > > > > > > > > > > >
> > > > > /mnt/c/git/commons-crypto/target/antrun/build-make.xml
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Thoughts?
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > On Fri, Jun 12, 2020 at 8:41 PM Alex Remily <
> > > > > > > > > > > [hidden email]>
> > > > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > Just checking in on the status of the 1.1
> > > > > release.
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > > > > > > For additional commands, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > > Matt Sicker <[hidden email]>
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > > > > For additional commands, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > > For additional commands, e-mail:
> > > > > [hidden email]
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Marcelo Vanzin
> > > > > > > > > > > > [hidden email]
> > > > > > > > > > > > "Life's too short to drink cheap beer"
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > > > To unsubscribe, e-mail:
> > > [hidden email]
> > > > > > > > > > > > For additional commands, e-mail:
> > > [hidden email]
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > [hidden email]
> > > > > > > > > > > For additional commands, e-mail:
> > > [hidden email]
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > > >
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >



--
Marcelo Vanzin
[hidden email]
"Life's too short to drink cheap beer"


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

12