Subject: Re: jdk1.4.1 patchset 4 and NetBSD
To: Thomas Girard <nouvelles.fraiches@free.fr>
From: Sverre Froyen <sverre@viewmark.com>
List: current-users
Date: 10/23/2003 13:01:36
Hi,
I received this error as well. Just create the missing directory and
start the build again. Unfortunately, in my case, the build fails
later when it attempts to use the new java. Running the command:
/usr/local/src/java/control/build/bsd-i586/bin/java -version
I get:
Error: failed
/usr/local/src/java/control/build/bsd-i586/lib/i386/client/libjvm.so,
because
/usr/local/src/java/control/build/bsd-i586/lib/i386/client/libjvm.so:
Undefined PLT symbol "_Unwind_Resume" (symnum = 5141)
I'm using the c++ compiler in the in-tree version of gcc 3.3.2, which is
likely the reason for the error. I assume the patchset was made for
gcc 2.95.
Sverre
On torsdag 23. oktober 2003, 11:59, Thomas Girard wrote:
> Hello all,
>
> as reported here:
> http://www.netbsd.org/Changes/#j2sdk-141
>
> the fourth patchset includes support for NetBSD-current on i386. I
> must do something wrong because I can't compile it under my
> NetBSD/i386 1.6ZD.
>
> I've followed the instructions given in the BUILD file, including
> setenv DEV_ONLY YES , and typed 'ulimit -d unlimited' before
> starting. Please note that I'm compiling on an ext2 (tuned without
> any option) partition.
>
>
> * The sanity check reads:
> Build Machine Information:
> build machine =
>
> Build Directory Structure:
> CWD = /emul/linux/home/j2/control/make
> TOPDIR = ./../..
> CONTROL_TOPDIR = ./../../control
> GENERICS_TOPDIR = ./../../generics
> HOTSPOT_TOPDIR = ./../../hotspot
> J2SE_TOPDIR = ./../../j2se
> MOTIF_TOPDIR = ./../../motif
> COBUNDLE_TOPDIR = ./../../cobundle
>
> Hotspot Settings:
> HOTSPOT_BUILD_JOBS =
>
> Bootstrap Settings:
> BOOTDIR = /usr/pkg/java/sun-1.4
> BOOTSTRAP J2SDK VERSION: 1.4.2_01
> OUTPUTDIR = /emul/linux/home/j2/control/build/bsd-i586
>
> Build Tool Settings:
> UNIXCOMMAND_PATH = /bin/
> COMPILER_PATH = /usr/bin/
> DEVTOOLS_PATH = /usr/pkg/bin/
> USRBIN_PATH = /usr/bin/
> MOTIF_DIR = /usr/X11R6
> CC_VER = gcc (GCC) 3.3.1 Copyright (C) 2003 Free Software
> Foundation, Inc. This is free software; see the source for copying
> conditions. There is NO warranty; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE. PATH =
> /sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/b
>in:/usr/local/sbin:/usr/local/bin
>
> Build Directives:
> USE_ONLY_BOOTDIR_TOOLS =
> USE_HOTSPOT_INTERPRETER_MODE =
> PEDANTIC =
> DEV_ONLY = YES
> J2RE_ONLY =
> NO_DOCS =
> NO_IMAGES =
> TOOLS_ONLY = true
> INSANE =
>
> Build Platform Settings:
> PLATFORM = bsd
> ARCH = i586
> LIBARCH = i386
> ARCH_FAMILY = i586
> ARCH_DATA_MODEL = 32
> OS_VERSION = 1.6ZD
> FREE_SPACE = 5164336
>
> GNU Make Settings:
> MAKE = gmake
> MAKE VERSION =
> MAKECMDGOALS = sanity
> MAKEFLAGS =
> SHELL = /bin/sh
>
> Target Build Versions:
> JDK_VERSION = 1.4.1
> MILESTONE = p4
> BUILD_NUMBER = root_23_oct_2003_15_02
> BUNDLE_DATE = 23_oct_2003
>
> External File/Binary Locations:
> HOTSPOT_SERVER_PATH =
> /emul/linux/home/j2/control/build/bsd-i586/hotspot-i586/server
> HOTSPOT_CLIENT_PATH =
> /emul/linux/home/j2/control/build/bsd-i586/hotspot-i586/client
> OPT_JAVAWS =
> /java/re/javaws/1.2/promoted/pit_tested/bundles/javaws-1_2-bsd-i586-i
>.zip MOZILLA_PATH = /java/devtools
> MOZILLA_HEADERS_PATH = /java/devtools/share/plugin
> MOZILLA_LIBS_PATH = /java/devtools/bsd/plugin
> MOTIF_DIR = /usr/X11R6
> CACERTS_FILE = ./../src/share/lib/security/cacerts
>
> WARNING: Your build environment has the variable DEV_ONLY
> defined. This will result in a development-only
> build of the J2SE workspace, lacking the documentation
> build and installation bundles.
>
> WARNING: You do not have access to the Java Web Start binary.
> These binaries may be optional for this build. Please
> check your access to
>
> /java/re/javaws/1.2/promoted/pit_tested/bundles/javaws-1_2-bsd-i586-i
>.zip and/or check your value of ALT_JAVAWS_PATH.
> This will make your images target build incomplete.
>
> Sanity check passed.
>
>
>
>
> * Also note that I haven't installed mozilla nor nspr.
>
>
>
> * The compilation fails with:
>
> Rebuilding
> /emul/linux/home/j2/control/build/bsd-i586/lib/i386/native_threads/li
>bhpi.so because of
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/monitor_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/threads_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/condvar_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/interrupt_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/mutex_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/sys_api_td.o ... /usr/bin/gcc -fno-strict-aliasing -fPIC -W
> -Wall -Wno-unused -Wno-parentheses -pthread -Di586 -DARCH='"i586"'
> -DRELEASE='"1.4.1-p4"'
> -DFULL_VERSION='"1.4.1-p4-root_23_oct_2003_15_02"' -D_GNU_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -D_BSD_SOURCE -I.
> -I/emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thre
>ads/CClassHeaders -I../../../../src/solaris/javavm/export
> -I../../../../src/share/javavm/export
> -I../../../../src/share/javavm/include
> -I../../../../src/solaris/javavm/include
> -I../../../../src/solaris/hpi/native_threads/include
> -I../../../../src/solaris/hpi/include
> -I../../../../src/solaris/hpi/export
> -I../../../../src/share/hpi/include
> -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE
> -DUSE_PTHREADS -DMOOT_PRIORITIES -DHAVE_FILIOH
> -L/emul/linux/home/j2/control/build/bsd-i586/lib/i386 -Wl,-R
> /emul/linux/home/j2/control/build/bsd-i586/lib/i386 -Wl,-R
> /emul/linux/home/j2/control/build/bsd-i586/lib/i386/server -shared
> -mimpure-text -o /emul/linux/home/j2
> /control/build/bsd-i586/lib/i386/native_threads/libhpi.so `lorder
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/monitor_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/threads_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/condvar_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/interrupt_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/mutex_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/sys_api_td.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/threads_bsd.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/interrupt.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/linker_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/memory_md.o /emul/linux/
> home/j2/control/build/bsd-i586/tmp/java/hpi/native_threads/obj/system
>_md.o
> /emul/linux/home/j2/control/build/bsd-i586/tmp/java/hpi/native_thread
>s/obj/hpi.o | tsort -q` -pthread -pthread gcc:
> /emul/linux/home/j2/control/build/bsd-i586/lib/i386/server: No such
> file or directory gmake[5]: ***
> [/emul/linux/home/j2/control/build/bsd-i586/lib/i386/native_threads/l
>ibhpi.so] Error 1 gmake[5]: Leaving directory
> `/emul/linux/home/j2/j2se/make/java/hpi/native' gmake[4]: ***
> [optimized] Error 2
> gmake[4]: Leaving directory
> `/emul/linux/home/j2/j2se/make/java/hpi/native' gmake[3]: *** [all]
> Error 1
> gmake[3]: Leaving directory `/emul/linux/home/j2/j2se/make/java/hpi'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory `/emul/linux/home/j2/j2se/make/java'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/emul/linux/home/j2/j2se/make'
> gmake: *** [j2se-build] Error 2
>
>
> * So my questions are : why is this happening ? How can I fix this ?
> Has someone successfully compiled this jdk under NetBSD ?
>
> * If that can help, I have put a full compilation log available here
> : http://nouvelles.fraiches.free.fr/j2se-netbsd.txt
>
>
> Regards,
> Thomas