Win32 build with OpenJDK 6, a console app - no output

16 views
Skip to first unread message

PatlaDJ

unread,
Jul 4, 2018, 4:29:24 PM7/4/18
to Avian
Hello Joel and friends,

I am Nikolay from Best PHP obfuscator project.
Let me remind you, I am building my app using Avian. Avian is great.
I do make successful builds of the GUI (SWT) version of my app for win32 and for linux_x86 Avian-openjdk6 embedded.

Recently I tried to do the easier thing - to build a console only version of my app. I did succeed to make a linux_x86 build. The console (text mode only) do work. Unfortunately I cannot build properly the win32 console version.
I did make normal (and in addition - a debug build) for it. The build process itself completes successfully, but the app when executed - display no output in the console.

I did review the .mk files numerous times (researching for days). They all look okay to me. There are the  -mwindows and -mconsole flags ...

... yet the program is displaying nothing at all when failing, and leaves me with no options to understand where exactly it fails.

Do you have time to help me debugging it?

Joel Dice

unread,
Jul 5, 2018, 9:54:02 AM7/5/18
to Avian
Hi Nikolay,

Can you supply a minimal test case that reproduces the issue? If so,
I'll be happy to investigate it.

Also, if you run `make input=Hello run` in the Avian project
directory, do you see the "hello, world!" output?
> --
> You received this message because you are subscribed to the Google Groups
> "Avian" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to avian+un...@googlegroups.com.
> To post to this group, send email to av...@googlegroups.com.
> Visit this group at https://groups.google.com/group/avian.
> For more options, visit https://groups.google.com/d/optout.

PatlaDJ

unread,
Jul 6, 2018, 2:08:45 AM7/6/18
to Avian


Hi Joel,
It does not build.

# make input=Hello run
compiling build/windows-i386/type-generator-build.o
compiling build/windows-i386/windows-build.o
compiling build/windows-i386/finder-build.o
linking build/windows-i386/generator
compiling classpath classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
generating build/windows-i386/type-enums.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-enums.cpp|
generating build/windows-i386/type-declarations.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-declarations.cpp|
generating build/windows-i386/type-constructors.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-constructors.cpp|
generating build/windows-i386/type-initializations.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-initializations.cpp|
generating build/windows-i386/type-java-initializations.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-java-initializations.cpp|
generating build/windows-i386/type-name-initializations.cpp
av[1]=|build/windows-i386/classpath|, av[2]=|src/types.def|, av[3]=|build/windows-i386/type-name-initializations.cpp|
compiling build/windows-i386/windows.o
compiling build/windows-i386/finder.o
compiling build/windows-i386/machine.o
src/machine.cpp: In function 'vm::Object* vm::parseClass(vm::Thread*, vm::Object*, const uint8_t*, unsigned int, vm::Machine::Ty
pe)':
src/machine.cpp:3517:18: warning: comparison between signed and unsigned integer expressions
src/machine.cpp:3542:19: warning: comparison between signed and unsigned integer expressions
compiling build/windows-i386/util.o
compiling build/windows-i386/heap.o
compiling build/windows-i386/compile.o
compiling build/windows-i386/classpath-avian.o
compiling build/windows-i386/builtin.o
src/builtin.cpp: In function 'int64_t Avian_o_cs_resolvevc(vm::Thread*, vm::Object*, uintptr_t*)':
src/builtin.cpp:75:10: warning: unused variable 'loader'
compiling build/windows-i386/jnienv.o
compiling build/windows-i386/process.o
compiling build/windows-i386/compiler.o
compiling build/windows-i386/x86.o
compiling build/windows-i386/x86-asm.o
compiling build/windows-i386/compile-x86-asm.o
compiling build/windows-i386/java-io.o
compiling build/windows-i386/java-lang.o
compiling build/windows-i386/java-net.o
compiling build/windows-i386/java-nio.o
compiling build/windows-i386/java-util-zip.o
compiling build/windows-i386/java-util.o
creating build/windows-i386/libavian.a
compiling build/windows-i386/main.o
compiling build/windows-i386/boot.o
creating build/windows-i386/classpath.jar
creating build/windows-i386/classpath-jar.o
linking build/windows-i386/avian.exe
linking build/windows-i386/jvm.dll
compiling build/windows-i386/main-dynamic.o
linking build/windows-i386/avian-dynamic.exe
compiling test classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
compiling extra test classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
make: *** [run] Error 127

Joel Dice

unread,
Jul 9, 2018, 10:42:28 AM7/9/18
to Avian
It's working okay for me. I installed Cygwin on a Windows 10 machine,
including the `make`, `mingw64-i686-gcc-g++`,
`mingw64-x86_64-gcc-g++`, and `git` packages, then did the following:

git clone https://github.com/readytalk/avian
git clone https://github.com/readytalk/win32
git clone https://github.com/readytalk/win64
export JAVA_HOME=/cygwin/c/Program Files/Java/jdk-1.8.0_91/
make input=Hello run
make input=Hello arch=i386 run
Reply all
Reply to author
Forward
0 new messages