Issue 13610 - Unable to Build OOo 1.1 beta - Error(s) on Compilation of idlc
Summary: Unable to Build OOo 1.1 beta - Error(s) on Compilation of idlc
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: foskey
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-19 01:10 UTC by Unknown
Modified: 2003-05-22 13:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Logs (configure, compilation, env-setting) (45.47 KB, application/x-bzip2)
2003-04-19 01:14 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-04-19 01:10:40 UTC
Hello !

My box is running LinuX and is Configured as following :

Hardware
---------



Software
---------

LinuX Dist. : Sorcerer LinuX
LinuX Kenrel : 2.4.21-pre7

BinUtils : 2.13.2.1
GLIBC : 2.3.2
GCC : 3.2.2

JDK : 1.4.1 (Blackdown's)

Bash : 2.05b
tcsh : 6.12.00
Zip : 2.3
Unzip : 5.5

XFree86 : 4.3
KDE : 3.1.1a

--

i've Downloaded the OOo_1.1beta_source.tar.bz2 Tarball, Unpacked it,
Downloaded the GPC 2.31 lib & placed the files as written.

I've than Followed every step as written at
http://tools.openoffice.org/dev_docs/build_linux.html#GeneratingtheBuildEnvironmentandBuildTools

after "dmake"-ing, it started the compilation, but never finished it - giving me
the following Error Message : 

<compilation.log::snippet>

=============
Building project soltools
=============
/root/dev/oo_1.1beta_src/soltools/mkdepend
mkout -- version: 1.3
------------------------------
Making: ../unxlngi4.pro/misc/make_makedepend.dpc
NOT-Making: Depend-Lists
------------------------------
Making: ../unxlngi4.pro/obj/cppsetup.obj
gcc -fmessage-length=0 -c -I.  -I. -I../inc -I../inc -I../unx/inc
-I../unxlngi4.pro/inc -I.
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/dont_use_stl
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/external
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc
-I/root/dev/oo_1.1beta_src/solenv/unxlngi4/inc
-I/root/dev/oo_1.1beta_src/solenv/inc -I/root/dev/oo_1.1beta_src/res
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/dont_use_stl
-I/root/dev/oo_1.1beta_src/solenv/inc/Xp31 -I/usr/include -I/usr/include/linux
-I/usr/include/native_threads/include -I/usr/X11R6/include     -I. -I../res -I.
-g -O1   -pipe -mcpu=pentiumpro   -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL
-DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT
-DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX
-DCPPU_ENV=gcc3 -DSUPD=644 -DBUILD=8557 -DPRODUCT -DNDEBUG -DPRODUCT_FULL
-DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX644  -DNO_X11 -DXP_PC
-DHW_THREADS -DINCLUDEDIR=\".\" -DSINGLETHREAD  -w -o
../unxlngi4.pro/obj/cppsetup.o cppsetup.c
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from def.h:39,
                 from cppsetup.c:29:
/usr/include/gconv.h:72: parse error before "size_t"
/usr/include/gconv.h:88: parse error before "size_t"
/usr/include/gconv.h:97: parse error before "size_t"
/usr/include/gconv.h:174: parse error before "size_t"
/usr/include/gconv.h:177: parse error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from def.h:39,
                 from cppsetup.c:29:
/usr/include/_G_config.h:47: field `__cd' has incomplete type
/usr/include/_G_config.h:50: field `__cd' has incomplete type
/usr/include/_G_config.h:52: confused by earlier errors, bailing out
dmake:  Error code 1, while making '../unxlngi4.pro/obj/cppsetup.obj'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /root/dev/oo_1.1beta_src/soltools/mkdepend
dmake:  Error code 1, while making 'build_all'
---* TG_SLO.MK *---
#

</compilation.log::snippet>

if you need any more info - i've got it all, just ask.

Greets,

Moran Z.
Comment 1 Unknown 2003-04-19 01:14:35 UTC
Created attachment 5750 [details]
Logs (configure, compilation, env-setting)
Comment 2 Unknown 2003-04-19 01:19:22 UTC
My Hardware Config.
--------------------
CPU : AMD Athlon 1.6GHz
RAM : 512 MB
HDD : 160 GB (free on linux (building) part. : 3.0 GB)
Comment 3 Unknown 2003-04-23 11:47:01 UTC
same as issue 6220, I suppose. You include /usr/include/linux,
which probably happens because you have java in /usr - more 
a configure design fault rather than yours
Comment 4 Unknown 2003-04-23 12:47:43 UTC
actually i've got Java at /opt/j2sdk
it's Blackdown' 1.4.1-01-linux-i586-gcc3.2
Comment 5 Unknown 2003-04-23 12:55:24 UTC
BIG RED NOTE : <b>i've called you to the rescue because i'd like to
have a solution/workaround for the problem - i care not who's fault is
it !</b>

the pre-compiled binary 1.1b apps. takes just around 10-15 sec. (!!!)
to load - which is hardly bearable !
Comment 6 foskey 2003-04-23 13:21:36 UTC
This is your problem:

-I/usr/include/linux

Can you check JAVA_HOME in your .set file that you source.  If it is
set up as you think then it should be /opt/j??? not /usr.  If it is
not then change it to the directory you said and rebuild.

The problem is with configure.  We need a little more info on how you
ran configure in order to correct this properly.
Comment 7 Unknown 2003-04-23 21:39:09 UTC
i've found a workaround for this issue (that works for me) :

./configure --with-jdk-home=/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2

(sure enough one should replace
[/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2] this with the path on one' box...)

thanks for helping to pin-point this issue ! :)

that'd be nice if the ./configure'd auto-detect the /path/to/jdk/ by
itself - like in the installation of OpenOffice ;-)
Comment 8 Unknown 2003-04-23 23:30:45 UTC
Reopen - now on idlc proj....

i've setup my build-env-config-etc-and-friends as following :

<building_setup>

$SRC_ROOT> cd config_office

$SRC_ROOT/config_office> ./configure
--with-jdk-home=/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2

$SRC_ROOT> bootstrap

/* as i'm using bash : */
$SRC_ROOT> source LinuxIntelEnv.Set.sh

$SRC_ROOT> dmake

</building_setup>


The current error(s) :

<err>

=============
Building project idlc
=============
/root/dev/oo_1.1beta_src/idlc/source/preproc
mkout -- version: 1.3
------------------------------
Making: ../../unxlngi4.pro/misc/idlcpp.dpc
Making : Dependencies
touch ../../unxlngi4.pro/misc/idlcpp.dpc
------------------------------

[...all ok here...]

Making: ../unxlngi4.pro/obj/parser.obj
g++ -fmessage-length=0 -c -I.  -I. -I../inc -I../inc -I../unx/inc
-I../unxlngi4.pro/inc -I.
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/stl
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/external
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc
-I/root/dev/oo_1.1beta_src/solenv/unxlngi4/inc
-I/root/dev/oo_1.1beta_src/solenv/inc -I/root/dev/oo_1.1beta_src/res
-I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/stl
-I/root/dev/oo_1.1beta_src/solenv/inc/Xp31
-I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include
-I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include/linux
-I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include/native_threads/include
-I/usr/X11R6/include     -I. -I../res -I. -g -O1   -pipe
-mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti -include
preinclude.h -fexceptions -fno-enforce-eh-specs    -DLINUX -DUNX -DVCL
-DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86
-D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1
-DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=644
-DBUILD=8557 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE
-DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX644  -DMULTITHREAD 
-DMULTITHREAD  -w -o ../unxlngi4.pro/obj/parser.o
../unxlngi4.pro/misc/parser.cxx
../unxlngi4.pro/misc/parser.cxx: In function `int yyparse()':
../unxlngi4.pro/misc/parser.cxx:4740: parse error before `goto'
dmake:  Error code 1, while making '../unxlngi4.pro/obj/parser.obj'
---* TG_SLO.MK *---

</err>
Comment 9 foskey 2003-04-23 23:46:30 UTC
This flex problem looks like a duplicate of issue 13385.  Are you
using very new versions of the flex tool like Debian linux unstable?

The Java problem has an issue 12892.  I am currently involved in a
port so I cannot work on it.  Please feel free to work out a patch :-)
Comment 10 Unknown 2003-04-24 00:59:20 UTC
nope, i'm using not else but Sorcerer Linux ( http://sorcerer.wox.org/
) ! :)
the installed flex version is 2.5.4a
Comment 11 foskey 2003-04-24 10:30:19 UTC
The version that works for me is 2.5.4,   the version that break is
2.5.4a.

Can you get a downgrade  flex and try again?
Comment 12 Unknown 2003-04-24 11:41:30 UTC
flex 2.5.4's not working for me too... :(
Comment 13 Unknown 2003-04-24 11:52:46 UTC
not that's so important, but now it 3 days that i use the 2.4.21-rc1
kernel
Comment 14 foskey 2003-04-24 12:24:29 UTC
Found it.  The problem is your release of Bison.

http://www.openoffice.org/issues/show_bug.cgi?id=11386
Comment 15 Unknown 2003-04-24 15:16:47 UTC
that surely'd be nice if i could get bison-1.875a from
http://ftp.gnu.org/gnu/bison/

unfortunately, i can NOT - because there just NO such (official ?)
version exist... :(
Comment 16 foskey 2003-04-25 07:33:40 UTC
I did some searching and found some info:

http://www.openoffice.org/issues/show_bug.cgi?id=11386
Comment 17 Martin Hollmichel 2003-05-12 12:25:54 UTC
reassigned to mh
Comment 18 Martin Hollmichel 2003-05-19 11:36:06 UTC
mh->waratah: do we still have an issue on the beta2 tree ?
Comment 19 foskey 2003-05-19 13:09:32 UTC
This has been handled by update to the FAQ.  There is no fix, it is a
buggy release of bison.
Comment 20 michael.bemmer 2003-05-22 13:19:38 UTC
Closing resolved invalid.
Comment 21 michael.bemmer 2003-05-22 13:20:23 UTC
Closing resolved invalid. Please re-open if you think this decision is wrong.