Open ochafik opened 9 years ago
From @shevek on December 19, 2014 0:49
shevek@shadow:~/java/udev4j$ ./gradlew --daemon :parted:jar
:parted:jnaerator
Auto-configuring parser...
Parsing native headers...
/usr/include/time.h:31:0: error: File not found: stddef.h in . /usr/include /usr/local/include /usr/include/c++/4.6.3 /usr/include/c++/4.6.3/tr1
/usr/include/c++/4.6.3/tr1/cstdbool:12:0: error: File not found: bits/c++config.h in . /usr/include /usr/local/include /usr/include/c++/4.6.3 /usr/include/c++/4.6.3/tr1
/usr/include/bits/wchar.h:30:7: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:30:7: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:30:7: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:30:7: warning: Unexpected nonwhite token
Normalizing parsed code...
Generating libraries...
Generating PedCHSGeometry.java
Generating PedDevice.java
Generating PedGeometry.java
Generating PedTimer.java
Generating PedPartition.java
Generating PedDisk.java
Generating PedDiskOps.java
Generating PedDiskType.java
Generating PedDiskArchOps.java
Generating PedAlignment.java
Generating PedDeviceArchOps.java
Generating PedConstraint.java
Generating PedException.java
Generating PartedLibrary.java
#
# SUCCESS: JNAeration completed !
# Output mode is 'Directory(Bindings sources in simple file hierarchy)
#
# => '/home/shevek/java/udev4j/parted/build/generated-sources/jnaerator'
#
:parted:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/shevek/java/udev4j/parted/build/generated-sources/jnaerator/org/anarres/device/parted/generated/PedTimer.java:18: error: <identifier> expected
public start;
^
/home/shevek/java/udev4j/parted/build/generated-sources/jnaerator/org/anarres/device/parted/generated/PedTimer.java:20: error: <identifier> expected
public now;
^
/home/shevek/java/udev4j/parted/build/generated-sources/jnaerator/org/anarres/device/parted/generated/PedTimer.java:22: error: <identifier> expected
public predicted_end;
^
/home/shevek/java/udev4j/parted/build/generated-sources/jnaerator/org/anarres/device/parted/generated/PedTimer.java:56: error: <identifier> expected
public PedTimer(float frac, start, now, predicted_end, Pointer state_name, PedTimerHandler handler, Pointer context) {
From @shevek on December 19, 2014 0:56
Test case: https://github.com/shevek/udev4j branch multilib run ./gradlew :parted:jar
From @shevek on December 19, 2014 0:48
I'm getting missing types for variables of type time_t causing invalid generated code. I get this parsing parted.h using version 0.12-SNAPSHOT.
Copied from original issue: ochafik/nativelibs4java#542