OpenOffice 2.2 Compile as 32-bit application on Redhat EL 5 (64-bit)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenOffice 2.2 Compile as 32-bit application on Redhat EL 5 (64-bit)

Burger, Karsten
Hello,
I am trying to compile OpenOffice 2.2 on a Redhat EL 5 Intel machine as a
32-bit application (using compiler option -m32).

Some platform informations:

uname -a:
Linux socbl003 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

 
/proc/cpuinfo:
vendor_id          : GenuineIntel
model name      : Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
 


I tried the compile in this way:

* Copied source code OOF680_m18 to directory /OO_mix/OOF680_m18.
$ export SRC_ROOT=/OO_mix/OOF680_m18
$ export CXX="g++ -m32"
$ export CCC="gcc -m32"
 

1st TRY:
=======

$ ./configure --with-jdk-home=/opt/java1.5/

* Download unowinreg.dll from http://tools.openoffice.org/unowinreg_prebuild/680/ and put it into external/unowinreg.

* Download mozilla-source-1.7.5.tar.bz2 from http://releases.mozilla.org/pub/mozilla.org/ mozilla/releases/mozilla1.7.5/source/ to moz/download.

$ source LinuxX86-64Env.Set.sh
$ cd ..
$ ./bootstrap
$ dmake


.... (compile runs) .... ERROR messages:

gmake[6]: Entering directory `/OO_mix/OOF680_m18/moz/unxlngx6.pro/misc/build/mozilla/nsprpub/pr/src/md/unix'

gcc -m32 -o os_Linux_x86_64.o     -ansi -Wall -pthread -O2 -fPIC  -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/OO_mix/OOF680_m18/moz/unxlngx6.pro/misc/build/mozilla/dist/include/nspr -I../../../../pr/include -I../../../../pr/include/private  -c os_Linux_x86_64.s
os_Linux_x86_64.s: Assembler messages:
os_Linux_x86_64.s:46: Error: bad register name `%rdi)'
os_Linux_x86_64.s:61: Error: bad register name `%rdi)'
os_Linux_x86_64.s:76: Error: bad register name `%rdi)'
os_Linux_x86_64.s:90: Error: bad register name `%rdi)'
gmake[6]: *** [os_Linux_x86_64.o] Error 1
gmake[6]: Leaving directory `/OO_mix/OOF680_m18/moz/unxlngx6.pro/misc/build/mozilla/nsprpub/pr/src/md/unix'
 
 
Here is the corresponding assembler code:

/ PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val)
/
/ Atomically increment the integer pointed to by 'val' and return
/ the result of the increment.
/
    .text
    .globl _PR_x86_64_AtomicIncrement
    .align 4
_PR_x86_64_AtomicIncrement:
    movl $1, %eax
    lock
    xaddl %eax, (%rdi)
    incl %eax
    ret
 

 

2nd Try: without mozilla:
=========================

$ cd /OO_mix/OOF680_m18/config_office
$ ./configure --with-jdk-home=/opt/java1.5 --disable-mozilla
$ cd ..
$ dmake clean
$ dmake

..... compile run produced errors:

 
Making: ../../../unxlngx6.pro/slo/uno2cpp.obj
g++ -m32 -Wreturn-type -fmessage-length=0 -c -O0   -DLEAK_STATIC_DATA -I.  -I../../../unxlngx6.pro/inc/gcc3_uno -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngx6.pro/inc -I. -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc/stl -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc/external -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc -I/OO_mix/OOF680_m18/solenv/unxlngx6/inc -I/OO_mix/OOF680_m18/solenv/inc -I/OO_mix/OOF680_m18/res -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc/stl -I/OO_mix/OOF680_m18/solenv/inc/Xp31 -I/opt/java1.5/include -I/opt/java1.5/include/linux -I/opt/java1.5/include/native_threads/include -I/usr/include     -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc/offuh -I. -I../../../res -I. -pipe  -Wno-ctor-dtor-privacy -fno-use-cxa-atexit -fvisibility-inlines-hidden   -fno-omit-frame-pointer  -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DCUI -DSOLAR_JAVA -DOOF680=OOF680   -DSHAREDLIB -D_DLL_  -DMULTITHREAD -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o ../../../unxlngx6.pro/slo/uno2cpp.o /OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx: In function 'void callVirtualMethod(void*, sal_uInt32, void*, typelib_TypeDescription*, bool, char*, sal_uInt64*, sal_uInt32)':
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:201: error: invalid register name for 'd0'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:202: error: invalid register name for 'd1'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:203: error: invalid register name for 'd2'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:204: error: invalid register name for 'd3'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:205: error: invalid register name for 'd4'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:206: error: invalid register name for 'd5'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:207: error: invalid register name for 'd6'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:208: error: invalid register name for 'd7'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:230: error: invalid register name for 'a4'
/OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:231: error: invalid register name for 'a5'
dmake:  Error code 1, while making '../../../unxlngx6.pro/slo/uno2cpp.obj'
'---* tg_merge.mk *---'
dmake:  Error code 255, while making 'do_it_noopt'
'---* tg_merge.mk *---'
 
ERROR: Error 65280 occurred while making /OO_mix/OOF680_m18/bridges/source/cpp_uno/gcc3_linux_x86-64
dmake:  Error code 1, while making 'build_instsetoo_native'
'---*  *---'

============================================================================

Looks like config_office/configure determines I am building for
x86-64 instead of plain 32 bit x86 (a 32 bit build should never build
anything in bridges/source/cpp_uno/gcc3_linux_x86-64 but rather in
bridges/source/cpp_uno/gcc3_linux_intel).  How can I circumvent that?


============================================================================
HERE'S THE CONFIG SCRIPT LinuxX86-64Env.Set.sh (produced by "configure"):

# #################################################################
# OpenOffice.org 680 build environment file for: x86_64-unknown-linux-gnu.
# Generated on: Tue Aug 14 18:19:01 CEST 2007
# Source this file to set up the build environment.
# 1. exec sh/bash/ksh
# 2. source LinuxX86-64Env.Set
# #################################################################
SRC_ROOT="/OO_mix/OOF680_m18"
SHELL="/bin/tcsh"
JAVA_HOME="/opt/java1.5"
XSLTPROC="NO_XSLTPROC"
ANT_HOME="/usr"
ANT_LIB="/usr/share/java"
ANT="/usr/bin/ant"
STLPORT4="NO_STLPORT4"
BUILD_SOSL="true"


#
# Platform independent constant values.
#
DIC_DADK="TRUE"
DIC_DEDE="TRUE"
DIC_ENGB="TRUE"
DIC_ENUS="TRUE"
DIC_HUHU="TRUE"
DIC_ITIT="TRUE"
DIC_RURU="TRUE"
DIC_THTH="TRUE"
DIC_SWTZ="TRUE"
DIC_ALL="TRUE"
CALL_CDECL="TRUE"
BMP_WRITES_FLAG="TRUE"
BUILD_SOSL_RELEASE="TRUE"
NO_REC_RES="TRUE"
NO_HIDS="TRUE"
SO3="TRUE"
SOLAR_PLUGIN="TRUE"
TF_PACKAGES="TRUE"
TF_FILEURL="TRUE"
TF_CFGDATA="TRUE"
TF_SVDATA="TRUE"
TF_SDBAPI="ist_da"
TF_UCB="ist_da"
UPDATER="YES"
build_deliver="true"
VCL="TRUE"
ENABLEUNICODE="TRUE"
NEW_JAR_PACK="TRUE"
NO_BSYMBOLIC="TRUE"
TF_FILTER="TRUE"
EXTERNAL_WARNINGS_NOT_ERRORS="TRUE"
PRODUCT="full"
PROFULLSWITCH="product=full"
PROEXT=".pro"
BUILD_MOZAB="TRUE"
MOZILLA_VERSION="1.7.5"
DEFAULT_TO_ENGLISH_FOR_PACKING="yes"
ENABLE_GTK="TRUE"
GTK_CFLAGS="-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12  "
GTK_LIBS="-L/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  "
ENABLE_SYSTRAY_GTK="TRUE"
ENABLE_STATIC_GTK="FALSE"
ENABLE_GNOMEVFS="TRUE"
MOC="moc"
PSPRINT="TRUE"
MKDEPENDSOLVER="TRUE"

#
# Platform dependent constant values.
#
SOLAR_JAVA="TRUE"
BIG_SVX="TRUE"
COM="GCC"
COMPATH="/usr/bin"
CPU="X"
CPUNAME="X86_64"
CVER="C341"
GUI="UNX"
GLIBC="2REDHAT60"
GUIBASE="unx"
GUIENV="sal"
GVER="VCL"
OS="LINUX"
EXCEPTIONS="dwarf2"
PTHREAD_CFLAGS="-DNPTL"
OUTPATH="unxlngx6"
INPATH="unxlngx6.pro"
GVERDIR="unxlngx6.pro"
PATH_SEPERATOR=":"
XPVERSION="3"

#
# Variable values.
#
PERL="/usr/bin/perl"
RPM="rpmbuild"
GNUMAKE="make"
UPD="680"
SOLARUPD="680"
WORK_STAMP="OOF680"
SOLARROOT="$SRC_ROOT"
SOLARVER="/OO_mix/OOF680_m18/solver/680"
SOLARVERSION="$SOLARVER"
SOLARENV="/OO_mix/OOF680_m18/solenv"
SOLARENVINC="$SOLARENV/inc"
LOCALINI="$SOLARENV/config"
STAR_INIROOT="$SOLARENV/config"
STAR_INIROOTOLD="$SOLARENV/config"
STAR_STANDLST="$SOLARENV/config/stand.lst"
STAR_SSCOMMON="$SOLARENV/config/ssolar.cmn"
STAR_SSOLARINI="$SOLARENV/config/ssolar.ini"
STAR_RESOURCEPATH="$SOLARVER/$INPATH/bin"
STAR_REGISTRY="$STAR_RESOURCEPATH/applicat.rdb"
DMAKEROOT="$SOLARENVINC/startup"
CLASSPATH="$JAVA_HOME/jre/lib/rt.jar:."
XCLASSPATH="$JAVA_HOME/jre/lib/rt.jar:."
JDK="sun"
JAVAINTERPRETER="/opt/java1.5/bin/java"
JAVACOMPILER="/opt/java1.5/bin/javac"
JAVADOC="/opt/java1.5/bin/javadoc"
LD_LIBRARY_PATH=".:$SOLARENV/$INPATH/lib:$JAVA_HOME/jre/lib/amd64::$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64/native_threads:../lib64:$SOLARVER/$INPATH/lib:.:/OO_mix/OOF680_m18/solenv/unxlngx6.pro/lib:/opt/java1.5/jre/lib/amd64::/opt/java1.5/jre/lib/amd64/server:/opt/java1.5/jre/lib/amd64/native_threads:../lib64:/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/lib:"
SOLARDEF=" -DUNX -DGCC -DC341 -DVCL -DLINUX -DX86_64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DGLIBC=2REDHAT60 -DSUPD=680 -DUPDVER=""'"'"SV680"'"'"""
SOLAREXTRALIB=" -L../lib64"
PATH="$JAVA_HOME/bin:.:$SOLARVER/$INPATH/bin:$SOLARENV/$OUTPATH/bin:$SOLARENV/bin:/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/bin:/OO_mix/OOF680_m18/solenv/unxlngx6/bin:/OO_mix/OOF680_m18/solenv/bin:/usr/kerberos/sbin:/home/kaburger/bin::/usr/frame/bin:/usr/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/bin:/usr/contrib/bin:/opt/sicl/bin:/opt/vxipnp/linux/agvisa:/opt/vxipnp/linux/bin:/usr/local/Acrobat5/bin:/opt/java/jre/bin:/usr/atria/bin:/bstd_tools/scm/bm:/bstd_tools/scm/vm:/usr/local/emacs/bin:/etc:/usr/etc:/usr/local/bin/X11:/bstd_tools/contrib/lbin:/vobs/devtools/bin:/opt/java1.5/bin"
SOLARLIB=" -L../lib -L$SOLARENV/$OUTPATH/lib -L$SOLARVER/$INPATH/lib -L$SOLARENV/$OUTPATH/lib -L$JAVA_HOME/lib64 -L$JAVA_HOME/jre/lib/amd64 -L$JAVA_HOME/jre/lib/amd64/server -L$JAVA_HOME/jre/lib/amd64/native_threads -L/usr/lib64"
SOLARINC=" -I. -I$SOLARVER/$INPATH/inc/stl -I$SOLARVER/$INPATH/inc/external -I$SOLARVER/$INPATH/inc -I$SOLARENV/$OUTPATH/inc -I$SOLARENV/inc -I$SRC_ROOT/res -I/OO_mix/OOF680_m18/solver/680/unxlngx6.pro/inc/stl -I$SOLARENV/inc/Xp31 -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -I$JAVA_HOME/include/native_threads/include -I/usr/include"
CC="gcc -m32"
HAVE_GCC_VISIBILITY_FEATURE="TRUE"
CXX="g++ -m32"
ENABLE_CUPS="TRUE"
ENABLE_FONTCONFIG="TRUE"
WITH_GPC="NO"
WITH_MYSPELL_DICTS="YES"
WITH_LIBSN="NO"
WITH_LDAP="NO"
WITH_OPENLDAP="NO"
WITH_MOZILLA="NO"
SYSTEM_MOZILLA="NO"
WITH_FONTS="YES"
WITH_BINFILTER="YES"
BUILD_TYPE="OOo EXT BINFILTER DICTIONARIES EPM ODK QADEVOOO ZLIB JPEG EXPAT FREETYPE LIBWPD LIBXML2 LIBXMLSEC PYTHON BERKELEYDB HSQLDB BSH XALAN SABLOT CURL BOOST UNIXODBC SANE ICU X11_EXTENSIONS NAS SNDFILE PORTAUDIO NEON AGG GTK SYSTRAY_GTK MSFONTEXTRACT MATHMLDTD BITSTREAM_VERA_FONTS"
WITH_FONTOOO="YES"
SYSTEM_MSPACK="NO"
EPM="no"
BUILD_EPM="YES"
PKGFORMAT="rpm"
SYSTEM_STDLIBS="YES"
SYSTEM_ZLIB="NO"
SYSTEM_PYTHON="NO"
HOME="/root"
SYSTEM_ICU="NO"
SYSTEM_JPEG="NO"
SYSTEM_FREETYPE="NO"
SYSTEM_LIBWPD="NO"
SYSTEM_LIBXML="NO"
USE_FT_EMBOLDEN="NO"
SYSTEM_EXPAT="NO"
SYSTEM_DB="NO"
SYSTEM_HSQLDB="NO"
SYSTEM_BSH="NO"
SYSTEM_XML_APIS="NO"
SYSTEM_XERCES="NO"
SYSTEM_XALAN="NO"
SYSTEM_XT="NO"
SYSTEM_SABLOT="NO"
SYSTEM_ODBC_HEADERS="NO"
SYSTEM_SANE_HEADER="NO"
SYSTEM_XRENDER_HEADERS="NO"
SYSTEM_CURL="NO"
SYSTEM_BOOST="NO"
SYSTEM_NAS="NO"
ENABLE_NAS="YES"
ENABLE_PASF="YES"
SYSTEM_SNDFILE="NO"
SYSTEM_PORTAUDIO="NO"
SYSTEM_NEON="NO"
NEON_VERSION="0247"
NEON_LIBS="-lneon"
ENABLE_AGG="YES"
SYSTEM_AGG="NO"
AGG_VERSION="2300"
BUILD_DMAKE="NO"
BUILD_UNOWINREG="NO"
USE_XINERAMA="YES"
XINERAMA_LINK="dynamic"
SYSTEM_HUNSPELL="NO"
SYSTEM_HYPH="NO"
SYSTEM_MYTHES="NO"
PAM="YES"
PAM_LINK="NO"
CRYPT_LINK="YES"
XAU_LIBS="-lXau"
GXX_INCLUDE_PATH="/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1"
COMMON_BUILD_TOOLS="$SRC_ROOT/external/common"
SOLARSRC="$SRC_ROOT"
DELIVER="deliver.pl"
MKOUT="mkout.pl"
ZIPDEP="zipdep.pl"
USE_SHELL="tcsh"
PYTHONPATH=".:$SOLARVER/$INPATH/lib:$SOLARVER/$INPATH/lib/python:$SOLARVER/$INPATH/lib/python/lib-dynload:$SOLARVER/$INPATH/lib/pyuno:$SOLARVER/$INPATH/bin/pyuno"
PYTHONHOME="$SOLARVER/$INPATH"

#
# Aliases.
#

#
# Don't set aliases when bootstrapping
#
if test -z "$_ISBOOTSTRAP_"; then
alias mkout="perl $SOLARENV/bin/mkout.pl"
alias deliver="perl $SOLARENV/bin/deliver.pl"
alias build="perl $SOLARENV/bin/build.pl"
alias zipdep="perl $SOLARENV/bin/zipdep.pl"
alias nmake="dmake"
fi
SAL_ENABLE_FILE_LOCKING="1"
export  SRC_ROOT SHELL JAVA_HOME XSLTPROC ANT_HOME ANT_LIB ANT STLPORT4 BUILD_SOSL DIC_DADK DIC_DEDE DIC_ENGB DIC_ENUS DIC_HUHU DIC_ITIT DIC_RURU DIC_THTH DIC_SWTZ DIC_ALL CALL_CDECL BMP_WRITES_FLAG BUILD_SOSL_RELEASE NO_REC_RES NO_HIDS SO3 SOLAR_PLUGIN TF_PACKAGES TF_FILEURL TF_CFGDATA TF_SVDATA TF_SDBAPI TF_UCB UPDATER build_deliver VCL ENABLEUNICODE NEW_JAR_PACK NO_BSYMBOLIC TF_FILTER EXTERNAL_WARNINGS_NOT_ERRORS PRODUCT PROFULLSWITCH PROEXT BUILD_MOZAB MOZILLA_VERSION DEFAULT_TO_ENGLISH_FOR_PACKING ENABLE_GTK GTK_CFLAGS GTK_LIBS ENABLE_SYSTRAY_GTK ENABLE_STATIC_GTK ENABLE_GNOMEVFS MOC PSPRINT MKDEPENDSOLVER SOLAR_JAVA BIG_SVX COM COMPATH CPU CPUNAME CVER GUI GLIBC GUIBASE GUIENV GVER OS EXCEPTIONS PTHREAD_CFLAGS OUTPATH INPATH GVERDIR PATH_SEPERATOR XPVERSION PERL RPM GNUMAKE UPD SOLARUPD WORK_STAMP SOLARROOT SOLARVER SOLARVERSION SOLARENV SOLARENVINC LOCALINI STAR_INIROOT STAR_INIROOTOLD STAR_STANDLST STAR_SSCOMMON STAR_SSOLARINI STAR_RESOURCEPATH STAR_REGISTRY DMAKEROOT CLASSPATH XCLASSPATH JDK JAVAINTERPRETER JAVACOMPILER JAVADOC LD_LIBRARY_PATH SOLARDEF SOLAREXTRALIB PATH SOLARLIB SOLARINC CC HAVE_GCC_VISIBILITY_FEATURE CXX ENABLE_CUPS ENABLE_FONTCONFIG WITH_GPC WITH_MYSPELL_DICTS WITH_LIBSN WITH_LDAP WITH_OPENLDAP WITH_MOZILLA SYSTEM_MOZILLA WITH_FONTS WITH_BINFILTER BUILD_TYPE WITH_FONTOOO SYSTEM_MSPACK EPM BUILD_EPM PKGFORMAT SYSTEM_STDLIBS SYSTEM_ZLIB SYSTEM_PYTHON HOME SYSTEM_ICU SYSTEM_JPEG SYSTEM_FREETYPE SYSTEM_LIBWPD SYSTEM_LIBXML USE_FT_EMBOLDEN SYSTEM_EXPAT SYSTEM_DB SYSTEM_HSQLDB SYSTEM_BSH SYSTEM_XML_APIS SYSTEM_XERCES SYSTEM_XALAN SYSTEM_XT SYSTEM_SABLOT SYSTEM_ODBC_HEADERS SYSTEM_SANE_HEADER SYSTEM_XRENDER_HEADERS SYSTEM_CURL SYSTEM_BOOST SYSTEM_NAS ENABLE_NAS ENABLE_PASF SYSTEM_SNDFILE SYSTEM_PORTAUDIO SYSTEM_NEON NEON_VERSION NEON_LIBS ENABLE_AGG SYSTEM_AGG AGG_VERSION BUILD_DMAKE BUILD_UNOWINREG USE_XINERAMA XINERAMA_LINK SYSTEM_HUNSPELL SYSTEM_HYPH SYSTEM_MYTHES PAM PAM_LINK CRYPT_LINK XAU_LIBS GXX_INCLUDE_PATH COMMON_BUILD_TOOLS SOLARSRC DELIVER MKOUT ZIPDEP USE_SHELL PYTHONPATH PYTHONHOME SAL_ENABLE_FILE_LOCKING
unset  JDKLIB ASM_PATH FRAMEWORKSHOME WITH_LANG WITH_POOR_HELP_LOCALIZATIONS COMMON_OUTDIR common_build MULTITHREAD_OBJ PREBUILD_MOZAB DEFAULT_MOZILLA_TOOLKIT BUILD_VER_STRING ENABLE_CAIRO ENABLE_KDE KDE_CFLAGS KDE_LIBS ENABLE_KAB OSVERSION PTHREAD_LIBS COMEX CDPATHx DYNAMIC_CRT SET_EXCEPTIONS use_shl_versions WRAPCMD DPKG PKGMK JAVAAOTCOMPILER SCPDEFS SOLAREXTRAINC PATHEXTRA COMP_ENV JAVAHOME MINGWCXX MINGWSTRIP JAM_CXX JAM_CC JAM_INCLUDE JAM_LIB JAM_COMPATH JAM_PSDK_HOME USE_SYSTEM_STL ALLOC ENABLE_SYMBOLS DISABLE_STRIP ENABLE_CRASHDUMP ENABLE_DIRECTX ENABLE_PCH VC_STANDARD ENABLE_LOCKDOWN LIBSN_CFLAGS LIBSN_LIBS MOZ_FLAVOUR NSPR_LIB NSS_LIB MOZ_INC MOZ_LIB MOZ_LIB_XPCOM MOZ_NSPR_CFLAGS MOZ_NSS_CFLAGS MOZ_LDAP_CFLAGS WITHOUT_AFMS WITHOUT_PPDS ENABLE_EVOAB2 GOBJECT_CFLAGS GOBJECT_LIBS PYTHON_CFLAGS PYTHON_LIBS SYSTEM_GENBRK SYSTEM_GENCCODE SYSTEM_GENCMN FREETYPE_CFLAGS FREETYPE_LIBS SYSTEM_CAIRO CAIRO_CFLAGS CAIRO_LIBS LIBWPD_CFLAGS LIBWPD_LIBS LIBXML_CFLAGS LIBXML_LIBS DB_VERSION DB_INCLUDES DB_JAR HSQLDB_JAR BSH_JAR XML_APIS_JAR XERCES_JAR XALAN_JAR SERIALIZER_JAR XT_JAR SABLOT_LIBS CURL_CFLAGS CURL_LIBS NAS_INCLUDES NEON_CFLAGS DISABLE_NEON DISABLE_XAW ENABLE_JAM HUNSPELL_CFLAGS NEW_SHADOW_API TEMP TMP



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: OpenOffice 2.2 Compile as 32-bit application on Redhat EL 5 (64-bit)

Rene Engelhard-7
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Burger, Karsten wrote:
> Looks like config_office/configure determines I am building for
> x86-64 instead of plain 32 bit x86 (a 32 bit build should never build
> anything in bridges/source/cpp_uno/gcc3_linux_x86-64 but rather in
> bridges/source/cpp_uno/gcc3_linux_intel).  How can I circumvent that?

Don't use gcc -m32. Use linux32.

Regards,

Rene
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGyfXr+FmQsCSK63MRAliZAJ9KncuGMn+e8Mv/6qo7NBkh5IGJIACfS0HX
NT09ZZCZOHWm3NyLGZXSbqk=
=k0Tb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: OpenOffice 2.2 Compile as 32-bit application on Redhat EL 5 (64-bit)

Caolán McNamara
In reply to this post by Burger, Karsten

On Wed, 2007-08-15 at 03:28 -0500, Burger, Karsten wrote:

> Hello,
> I am trying to compile OpenOffice 2.2 on a Redhat EL 5 Intel machine as a
> 32-bit application (using compiler option -m32).
>
> Some platform informations:
>
> uname -a:
> Linux socbl003 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
>
>  
> /proc/cpuinfo:
> vendor_id          : GenuineIntel
> model name      : Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
>  
>
>
> I tried the compile in this way:
>
> * Copied source code OOF680_m18 to directory /OO_mix/OOF680_m18.
> $ export SRC_ROOT=/OO_mix/OOF680_m18
> $ export CXX="g++ -m32"
> $ export CCC="gcc -m32"

The build still thinks its being compiled for an x86_64 target, not a
i386 one, even though the compiler is forced into 32bit output. You'll
know you have started correctly if you have a LinuxX86Env.Set.sh not
LinuxX86-64Env.Set.sh. Try using "linux32" to set your initial
environment, use uname -m to verify the difference this makes to the
arch reported to apps, and then try the above.

C.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]