COMPILING NOW: Re: unable to compile 1.4 on 4.7-STABLE...

COMPILING NOW: Re: unable to compile 1.4 on 4.7-STABLE...

Post by Michael E Merc » Thu, 21 Nov 2002 21:51:50



Hello peoples,

I logged in as root and ran the build commands.
I noticed as root,
1) no syntax error reported.
2) linux-sun-1.4.1 works
3) currently compiling, will report on success or failure...

Also note, the BUILD file with the patches states gcc32 is required for 4.7-STABLE, which
is why I was asking about it earlier.

The patch for XFree86-libraries, in order to get it to work inside the ports make structure,
I had to remove the "xc/" from the --- and +++ lines in the file patch-imLcPrs.c.
I then placed it in the files directory of XFree86-4-libraries and it was picked up.

Thanks to all for such speedy replies.
Michael Mercer



> > Hello peoples,

> > I am running 4.7-STABLE as of  11/13/2002

> > > uname -a
> > FreeBSD dual.mmercer.com 4.7-STABLE FreeBSD 4.7-STABLE #1: Wed Nov 13 01:11:43
> > EST 2002

> > I get the error below... notice the syntax error just after the ENV list...
> > Also both sun and linux jdk's bomb out with the same error, also below.

> Strange. Did not expirienced any syntax errors before :-( Will take a look
> on it.

> > Any ideas?

> First, you need to check is jdk actually works at your system. Just try
> to execute 'java -version'. If it's not working I'd suggest to try to play
> with linux_base ports. I am using linux-sun-jdk1.4.1 and linux_base-6.1_3
> ones.

> > Also, what directories am I supposed to create to allow the patch to run
> > smoothly?

> Please send me output of 'ls -l /home/mmercer/jdk1.4.0/jdk14' and
> 'find /home/mmercer/jdk1.4.0/jdk14 -name \*.rej' commands.

> > And how do tell it to use gcc32? I have successfully installed it.

> jdk1.4 is supposed to be compiled with base compiler only for both
> CURRENT and STABLE.

> > bsd i386 1.4.0-internal build started: 02-11-19 20:26
> > current working directory = /home/mmercer/jdk1.4.0/jdk14/control/make
> > build machine =
> > TOPDIR = ./../..
> > CONTROL_TOPDIR = ./../../control
> > GENERICS_TOPDIR = ./../../generics
> > HOTSPOT_TOPDIR = ./../../hotspot
> > J2SE_TOPDIR = ./../../j2se
> > MOTIF_TOPDIR = ./../../motif
> > COBUNDLE_TOPDIR = ./../../cobundle
> > JDK_VERSION = 1.4.0
> > MILESTONE = internal
> > BUILD_NUMBER = mmercer_19_nov_2002_20_26
> > PLATFORM = bsd
> > TRUE_PLATFORM = FreeBSD (4.x STABLE way)
> > ARCH = i386
> > ARCH_FAMILY = i386
> > ARCH_DATA_MODEL = 32
> > BOOTDIR = /usr/local/linux-blackdown-jdk1.4.1
> > OUTPUTDIR = ./../build/bsd-i386
> > UNIXCOMMAND_PATH = /bin/
> > COMPILER_PATH = /usr/bin/
> > DEVTOOLS_PATH = /usr/local/bin/
> > USRBIN_PATH = /usr/bin/
> > MOTIF_DIR = /usr/X11R6
> > HOTSPOT_CLIENT_PATH =
> > /home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/client
> > HOTSPOT_SERVER_PATH =
> > /home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/server
> > BUNDLE_PLATFORM = bsd
> > BUNDLE_DATE = 19_nov_2002
> > J2SDK_LICENSE_PATH =
> > /home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/j2sdk-image/LICENSE
> > J2SDK_BUNDLE_PATH =
> > /home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/bundles/j2sdk-1_4_0-internal-bin-mmercer_19_nov_2002_20_26-bsd-19_nov_2002.tar

> > FORTE_LICENSE_PATH = /java/re/forte4j/3.0/promoted/latest/utils/LICENCE.TXT
> > FORTE_BUNDLE_PATH =
> > /java/re/forte4j/3.0/promoted/latest/bundles/bsd/FFJ-dev-010817-f4j_ce.zip
> > Syntax error: "(" unexpected
> > gmake[1]: Entering directory `/home/mmercer/jdk1.4.0/jdk14/j2se/make'
> > [: -ne: unexpected operator
> > gmake[1]: Leaving directory `/home/mmercer/jdk1.4.0/jdk14/j2se/make'

> > NOTE: 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.

> > Sanity check passed.
> > /bin/mkdir -p ../build/bsd-i386/hotspot-i386/tmp
> > (cd  ./../build/bsd-i386/hotspot-i386/tmp; \
> >   gmake -f /home/mmercer/jdk1.4.0/jdk14/hotspot/build/bsd/Makefile product \
> >         HOTSPOT_BUILD_VERSION=1.4.0-internal-mmercer_19_nov_2002_20_26
> > GAMMADIR=/home/mmercer/jdk1.4.0/jdk14/hotspot ; )
> > gmake[1]: Entering directory
> > `/home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/tmp'
> > sh /home/mmercer/jdk1.4.0/jdk14/hotspot/build/bsd/makefiles/buildATree.sh
> > compiler2 /home/mmercer/jdk1.4.0/jdk14/hotspot bsd i486
> > (cd bsd_i486_compiler2/product; gmake)
> > gmake[2]: Entering directory
> > `/home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/tmp/bsd_i486_compiler2/product'

> > #
> > # HotSpot Virtual Machine Error, Internal Error
> > # Please report this error at
> > # http://www.blackdown.org/cgi-bin/jdk
> > #
> > # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-beta mixed mode)
> > #
> > # Error ID: 4F533F4C494E55580E435050030B
> > #
> > gmake[2]: *** [../generated/MakeDeps.class] Abort trap (core dumped)
> > gmake[2]: Leaving directory
> > `/home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/tmp/bsd_i486_compiler2/product'

> > gmake[1]: *** [product] Error 2
> > gmake[1]: Leaving directory
> > `/home/mmercer/jdk1.4.0/jdk14/control/build/bsd-i386/hotspot-i386/tmp'
> > gmake: *** [product] Error 2


> > with "unsubscribe freebsd-java" in the body of the message


with "unsubscribe freebsd-java" in the body of the message
 
 
 

COMPILING NOW: Re: unable to compile 1.4 on 4.7-STABLE...

Post by Greg Lew » Fri, 22 Nov 2002 01:11:12



> Hello peoples,

> I logged in as root and ran the build commands.
> I noticed as root,
> 1) no syntax error reported.
> 2) linux-sun-1.4.1 works
> 3) currently compiling, will report on success or failure...

There are some notes either in the archives or in PRs that deal with this
about how one can work around having to be root.  It involves recompiling
your kernel though :(.

Quote:> Also note, the BUILD file with the patches states gcc32 is required for 4.7-STABLE, which
> is why I was asking about it earlier.

Argh!  I thought I took that out.  My bad.  I'm changing that file to avoid
confusing other people.  Thanks for the report.

Quote:> The patch for XFree86-libraries, in order to get it to work inside the ports make structure,
> I had to remove the "xc/" from the --- and +++ lines in the file patch-imLcPrs.c.
> I then placed it in the files directory of XFree86-4-libraries and it was picked up.

Alexey, is the patch something we can submit to the maintainer of
XFree86-4-libraries for inclusion?

--

Eyes Beyond                         Web     : http://www.eyesbeyond.com


with "unsubscribe freebsd-java" in the body of the message

 
 
 

COMPILING NOW: Re: unable to compile 1.4 on 4.7-STABLE...

Post by Alexey Zelk » Fri, 22 Nov 2002 02:43:33


hi,



> > Hello peoples,

> > I logged in as root and ran the build commands.
> > I noticed as root,
> > 1) no syntax error reported.
> > 2) linux-sun-1.4.1 works
> > 3) currently compiling, will report on success or failure...

> There are some notes either in the archives or in PRs that deal with this
> about how one can work around having to be root.  It involves recompiling
> your kernel though :(.

I think these notes need to be reflected in linux-*-jdk14 port
post-install-messages. Along with suggestion how to fix them of course.

Quote:> > The patch for XFree86-libraries, in order to get it to work inside the ports make structure,
> > I had to remove the "xc/" from the --- and +++ lines in the file patch-imLcPrs.c.
> > I then placed it in the files directory of XFree86-4-libraries and it was picked up.

> Alexey, is the patch something we can submit to the maintainer of
> XFree86-4-libraries for inclusion?

I have no problem with submission them to port, but it's rather hack than
fix. So, anyway I think it's wroth to have it in default ports tree (maybe with
some tweaks)


with "unsubscribe freebsd-java" in the body of the message

 
 
 

1. COMPILING NOW: Re: unable to compile 1.4 on 4.7-STABLE...

All,

in j2se/make/sun/awt/Makefile
I added "-lXmu" to line 262.

the code snippet is

ifeq ($(VARIANT),DBG)
# Use -lXmu for EditRes support
LIBXMU  = -lXmu
else
LIBXMU  = -lXmu    <<<<------ line 262
endif

Doing this allowed the gmake command below to finish without the UnsatisfiedLinkError.

This change means the ifeq is meaningless, therefore I need someone who knows what is going
on to verify this.

thanks
Michael

<snip>


with "unsubscribe freebsd-java" in the body of the message

2. Netscape's been updated

3. ftp speeds...

4. unable to compile 1.4 on 4.7-STABLE...

5. conio.h for Sun Sparc?

6. Trying to compile HotSpot on 4.7-STABLE -- with patch

7. marwan, on goldsmiths elder and strange, believes inside it, promising lazily

8. FreeBSD 4.7-STABLE Kernel compile

9. Trying to compile HotSpot on 4.7-STABLE

10. Stellarium Compiles & works on FreeBSD 4.7

11. 4.7 kernel won′t compile on AlphaServer 2100a