nativelibs4java / BridJ

BridJ: blazing fast Java / C / C++ interop
https://code.google.com/archive/p/bridj/
Other
297 stars 77 forks source link

Source build breaks on pthread4java #32

Open ochafik opened 9 years ago

ochafik commented 9 years ago

From @ilganeli on September 24, 2013 21:53

I am attempting to rebuild to get a bug fix for a pointer issue and have failed when building PThread4Java.

[INFO] Reactor Summary: [INFO] [INFO] NativeLibs4Java Common Configuration .............. SUCCESS [3.514s] [INFO] Interop Integration Root .......................... SUCCESS [0.034s] [INFO] Maven Velocity Code Generator ..................... SUCCESS [9.307s] [INFO] BridJ (NativeLibs4Java C/C++ Interop Layer) ....... SUCCESS [26.846s] [INFO] Anarres JCPP (with JNAerator modifications) ....... SUCCESS [4.900s] [INFO] JNAerator Parent Project .......................... SUCCESS [0.033s] [INFO] OChafik's General Utilities ....................... SUCCESS [6.322s] [INFO] OChafik's Swing Utilities ......................... SUCCESS [7.949s] [INFO] JNAerator Runtime ................................. SUCCESS [6.174s] [INFO] JNAerator Rococoa Runtime ......................... SUCCESS [3.108s] [INFO] JNAerator Parser .................................. SUCCESS [19.223s] [INFO] JNAerator CLI and Studio Tools .................... SUCCESS [12.317s] [INFO] JNAerator Maven Plugin ............................ SUCCESS [4.326s] [INFO] JavaCL Parent Project ............................. SUCCESS [0.043s] [INFO] LibCL ............................................. SUCCESS [0.371s] [INFO] OpenCL4Java / BridJ ............................... SUCCESS [3.728s] [INFO] NativeLibs4Java Common Utilities .................. SUCCESS [3.275s] [INFO] JavaCL Core / BridJ ............................... SUCCESS [8.865s] [INFO] JavaCL Generator / BridJ .......................... SUCCESS [3.287s] [INFO] Maven JavaCL Plugin ............................... SUCCESS [3.194s] [INFO] JavaCL / BridJ .................................... SUCCESS [6.889s] [INFO] JavaCL Demos / BridJ .............................. SUCCESS [4.904s] [INFO] JavaCL Interactive Image Demo / BridJ ............. SUCCESS [4.190s] [INFO] JavaCL BLAS / BridJ ............................... SUCCESS [11.051s] [INFO] JavaCL OpenGL Demos / BridJ ....................... SUCCESS [7.863s] [INFO] JavaCL Tutorial ................................... SUCCESS [4:08.969s] [INFO] JavaCL Simple Tutorial Archetype .................. SUCCESS [0.312s] [INFO] JavaCL Tutorials Root / BridJ ..................... SUCCESS [0.034s] [INFO] PThread4Java ...................................... FAILURE [0.114s] [INFO] Idle Time Utility Library (BridJ-based & cross-platform) SKIPPED [INFO] JarShrinker ....................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:53.279s [INFO] Finished at: Tue Sep 24 17:41:53 EDT 2013 [INFO] Final Memory: 35M/115M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.nativelibs4java:maven-jnaerator-plugin:0.12-SNAPSHOT:generate (default) on project pthread4java: The parameters 'generateScala' for goal com.nativelibs4java:maven-jnaerator-plugin:0.12-SNAPSHOT:generate are missing or invalid -

[Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :pthread4java

Copied from original issue: ochafik/nativelibs4java#448

ochafik commented 9 years ago

Hi @ilganeli ,

Thanks for your report! Are you sure you don't have any local modifications and that you synced? (couldn't find any mention to generateScala in current pom files). As a workaround you may want to try building with mvn clean install -Pcoordinated-release.

Cheers

ochafik commented 9 years ago

From @pehunka on November 11, 2013 14:53

Hi @ochafik ,

I have exactly the same problem.. Build goes down after pthread4java build phase .. I just clone repo and try to build without tests - no changes ..

Also your workaround don't build properly. Few BridJ tests fails ->

Results :

Failed tests:
  DemanglingTest.testLongLongBackReference:94->demangle:449->checkSymbol:487 Bad
 type for 1th param : (symbol = null test_add9_long(CLong, CLong, CLong, CLong,
CLong, CLong, CLong, CLong, CLong), expecting long and demangled CLong (org.brid
j.demangling.Demangler$JavaTypeRef)
   Expected exception: org.bridj.LastError
  STLTest.testList:111 null

Tests in error:
  MemoryTest.testCopy:85->copyChar:-2 UnsatisfiedLink org.bridj.MemoryTest.copyC
...
  NamespacesTest.testSimplyNamespaced:188 ╗ UnsatisfiedLink org.bridj.Namespaces
...
  NamespacesTest.testTopLevelClass:194 ╗ UnsatisfiedLink org.bridj.NamespacesTes
...
  NamespacesTest.testFullyNamespaced:200 ╗ UnsatisfiedLink org.bridj.NamespacesT
...
  UnknownStructTest.test:67->newMyUnknownStruct:-2 UnsatisfiedLink org.bridj.Unk
...

So I skip test to go through build:

mvn clean install -Pcoordinated-release -DskipTests
ochafik commented 9 years ago

Hi @MiX-CZ ,

Sorry for the delay, could you please let me know on which platform you experienced these errors?

Cheers

ochafik commented 9 years ago

From @ilganeli on January 16, 2014 20:32

Hi Oliver, this was on Windows 7 64 bit. Haven't touched the stuff in a while though./

-Ilya Ganelin

On Thu, Jan 16, 2014 at 3:28 PM, Olivier Chafik notifications@github.comwrote:

Hi @MiX-CZ https://github.com/MiX-CZ ,

Sorry for the delay, could you please let me know on which platform you experienced these errors?

Cheers

— Reply to this email directly or view it on GitHubhttps://github.com/ochafik/nativelibs4java/issues/448#issuecomment-32537651 .