You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/12/16 14:59:26 UTC

[GitHub] [bookkeeper] 3286360470 commented on issue #2499: circe-checksum(mvn clean package -DskipTests) in ARM64 platform error: cpuid.h: No such file or directory

3286360470 commented on issue #2499:
URL: https://github.com/apache/bookkeeper/issues/2499#issuecomment-995895916


   > ```java
   > Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.5.2:nar-validate (default-nar-validate) on project circe-checksum: NAR: One of two things may be wrong here:
   > [ERROR]
   > [ERROR] 1. tag is missing inside the tag of your NAR configuration
   > [ERROR]
   > [ERROR] 2. no linker is defined in the aol.properties file for 'aarch64.MacOSX.linker'
   > ```
   > 
   > i fixed this in my M1 MacOS
   > 
   > step 1: I added this section to my aol.properties file
   > 
   > aol.properties:
   > 
   > ```java
   > #
   > # MacOSX ("Mac OS X" => MacOSX) Apple Silicon M1 (64 bits)
   > #
   > aarch64.MacOSX.linker=g++
   > 
   > aarch64.MacOSX.g++.cpp.compiler=g++
   > aarch64.MacOSX.g++.cpp.defines=Darwin GNU_GCC 
   > aarch64.MacOSX.g++.cpp.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion
   > aarch64.MacOSX.g++.cpp.includes=**/*.cc **/*.cpp **/*.cxx
   > aarch64.MacOSX.g++.cpp.excludes=
   > 
   > aarch64.MacOSX.g++.c.compiler=gcc
   > aarch64.MacOSX.g++.c.defines=Darwin GNU_GCC 
   > aarch64.MacOSX.g++.c.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion
   > aarch64.MacOSX.g++.c.includes=**/*.c
   > aarch64.MacOSX.g++.c.excludes=
   > 
   > aarch64.MacOSX.g++.fortran.compiler=gfortran
   > aarch64.MacOSX.g++.fortran.defines=Darwin GNU_GCC 
   > aarch64.MacOSX.g++.fortran.options=-Wall -fno-automatic -fno-second-underscore
   > aarch64.MacOSX.g++.fortran.includes=**/*.f **/*.for
   > aarch64.MacOSX.g++.fortran.excludes=
   > 
   > aarch64.MacOSX.g++.java.include=include
   > aarch64.MacOSX.g++.java.runtimeDirectory=IGNORED
   > 
   > aarch64.MacOSX.g++.lib.prefix=lib
   > aarch64.MacOSX.g++.shared.prefix=lib
   > aarch64.MacOSX.g++.static.extension=a
   > aarch64.MacOSX.g++.shared.extension=dylib
   > aarch64.MacOSX.g++.plugin.extension=bundle
   > aarch64.MacOSX.g++.jni.extension=jnilib
   > aarch64.MacOSX.g++.executable.extension=
   > ```
   > 
   > step 2: To use a custom aol properties file, you have to set a property like this in your pom.xml: <nar.aolProperties>${project.basedir}/bookkeeper/circe-checksum/aol.properties</nar.aolProperties>
   > 
   > and then I build success:
   > 
   > ```java
   > [INFO] Apache BookKeeper :: Parent ........................ SUCCESS [  0.703 s]
   > [INFO] Apache BookKeeper :: Build Tools ................... SUCCESS [  0.323 s]
   > [INFO] Apache BookKeeper :: Circe Checksum Library ........ SUCCESS [  4.413 s]
   > [INFO] Apache BookKeeper :: Stats API ..................... SUCCESS [  1.172 s]
   > [INFO] Apache BookKeeper :: CPU Affinity Library .......... SUCCESS [  0.975 s]
   > [INFO] Apache BookKeeper :: Common ........................ SUCCESS [  1.426 s]
   > [INFO] Apache BookKeeper :: Common :: Allocator ........... SUCCESS [  0.362 s]
   > [INFO] Apache BookKeeper :: Stats :: Parent ............... SUCCESS [  0.021 s]
   > [INFO] Apache BookKeeper :: Stats :: Utils ................ SUCCESS [  0.230 s]
   > [INFO] Apache BookKeeper :: Protocols ..................... SUCCESS [  1.875 s]
   > [INFO] Apache BookKeeper :: Tools :: Parent ............... SUCCESS [  0.022 s]
   > [INFO] Apache BookKeeper :: Tools :: Framework ............ SUCCESS [  0.502 s]
   > [INFO] Apache BookKeeper :: Http :: Http Server ........... SUCCESS [  0.207 s]
   > [INFO] Apache BookKeeper :: Stats Providers :: Prometheus . SUCCESS [  0.482 s]
   > [INFO] Apache BookKeeper :: Bookkeeper Http :: Vertx Http Server SUCCESS [  0.461 s]
   > ......
   > ```
   
   thanks for your solution, it's worked for me. I build bk on M1, there're to many questions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org