zengguan edited a comment on issue #2499:
URL: https://github.com/apache/bookkeeper/issues/2499#issuecomment-978974895


   i fixed this in my M1 MacOS
   
   step 1: I added this section to my aol.properties file
   
   `
   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:
     <properties>
       
<nar.aolProperties>${project.basedir}/bookkeeper/circe-checksum/aol.properties</nar.aolProperties>
     </properties>
   
   and then I build success:
   
   `
   
   [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]
   ......
   
   `


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to