incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "L'oiseau de mer" <oiseau...@gmail.com>
Subject Re: Try to build OOo , but meet error......
Date Sat, 09 Jul 2011 04:19:52 GMT
if without setting CC and CXX, configure will use gcc and appear ld error.
if CC=cc and CXX=CC , configure will appear :
checking for cc... /opt/solstudio12.2/bin//cc
checking the SunStudio C/C++ compiler version... configure: error:
found version "5.11", use version 5.5, 5.7, 5.8 or 5.9 of the
SunStudio C/C++ compiler

and i also try to use sunstudio11:but it has other error
=====================================================================
Building deps for ../../../js/src/jsscan.c
/opt/sunstudio11/SUNWspro/bin/cc -o jsscan.o -c  -DOSTYPE=\"SunOS5\"
-DOSARCH=\"SunOS\" -DBUILD_ID=0000000000 -DEXPORT_JS_API
-DJS_USE_SAFE_ARENA   -I../../dist/include/js -I../../dist/include
-I../../dist/include/nspr    -I../../dist/sdk/include
-I../../../js/src -I/usr/openwin/include   -KPIC
-I/usr/openwin/include -xstrconst -xbuiltin=%all -mt  -DNDEBUG
-DTRIMMED -xO4  -I/usr/openwin/include -DMOZILLA_VERSION=\"1.8.1.19\"
-DMOZILLA_VERSION_U=1.8.1.19 -DSOLARIS=1
-DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1
-DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1
-DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1
-DHAVE_UINT16_T=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1
-DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1
-DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_LIBM=1
-DHAVE_LIBDL=1 -DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -DHAVE_XSHM=1
-D_REENTRANT=1 -DHAVE_RANDOM=1 -DHAVE_STRERROR=1 -DHAVE_LCHOWN=1
-DHAVE_FCHMOD=1 -DHAVE_SNPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_RINT=1
-DHAVE_STAT64=1 -DHAVE_LSTAT64=1 -DHAVE_FLOCKFILE=1
-DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1 -DHAVE_LANGINFO_CODESET=1
-DVA_COPY=va_copy -DHAVE_VA_COPY=1 -DHAVE_I18N_LC_MESSAGES=1
-DMOZ_DEFAULT_TOOLKIT=\"gtk2\" -DMOZ_WIDGET_GTK2=1
-DMOZ_ENABLE_XREMOTE=1 -DMOZ_X11=1 -DMOZ_SUITE=1 -DMOZ_BUILD_APP=suite
-DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DMOZ_ENABLE_XFT=1 -DIBMBIDI=1
-DMOZ_VIEW_SOURCE=1 -DMOZ_XPINSTALL=1 -DMOZ_XTF=1
-DMOZ_UPDATE_CHANNEL=default -DMOZ_FEEDS=1 -DMOZ_STORAGE=1
-DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1 -DMOZ_MORK=1
-DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1
-DJS_THREADSAFE=1 -DMOZILLA_1_8_BRANCH=1
-DMOZILLA_LOCALE_VERSION=\"1.8.1\" -DMOZILLA_REGION_VERSION=\"1.8.1\"
-DMOZILLA_SKIN_VERSION=\"1.8\"  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
../../../js/src/jsscan.c
ube: error: Assert has been violated at
'/set/venus/builds.intel-S2/nightly.Thu/intel-S2/lang/ube/graphs/src/scregion.c
305'.
cc: ube failed for ../../../js/src/jsinterp.c
make[3]: *** [jsinterp.o] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/UNIX-LAB/OOO340-c904c1944462/moz/unxsoli4.pro/misc/build/mozilla/I_objdir/js/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory
`/UNIX-LAB/OOO340-c904c1944462/moz/unxsoli4.pro/misc/build/mozilla/I_objdir/js'
make[1]: *** [tier_2] Error 2
make[1]: Leaving directory
`/UNIX-LAB/OOO340-c904c1944462/moz/unxsoli4.pro/misc/build/mozilla/I_objdir'
make: *** [default] Error 2
dmake:  Error code 2, while making
'./unxsoli4.pro/misc/build/so_built_ooo_mozab'

2 module(s):
        vcl
        moz
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /UNIX-LAB/OOO340-c904c1944462/vcl/prj
ERROR: error 65280 occurred while making /UNIX-LAB/OOO340-c904c1944462/moz

Attention: if you fix the errors in above module(s) you may prolongue
your the build issuing command:

        build --from vcl moz
=================================================================
and then i enter vcl directory,run gmake -r:
[ build CXX ] vcl/source/glyphs/gcach_ftyp
R=/UNIX-LAB && S=$R/OOO340-c904c1944462 &&
O=$S/solver/340/unxsoli4.pro && W=$O/workdir &&  mkdir -p
$W/CxxObject/vcl/source/glyphs/ && mkdir -p
$W/Dep/CxxObject/vcl/source/glyphs/ &&
/opt/sunstudio11/SUNWspro/bin/CC -DC52 -DCPPU_ENV=sunpro5 -DCUI
-DENABLE_GTK -DENABLE_LAYOUT=0 -DENABLE_LAYOUT_EXPERIMENTAL=0 -DINTEL
-DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DPRODUCT -DPRODUCT_FULL
-DSOLARIS -DSOLAR_JAVA -DSTLPORT_VERSION=400 -DSUN -DSUN4 -DSUPD=340
-DSYSV -DUNIX -DUNX -DVCL -D_POSIX_PTHREAD_SEMANTICS -D_PTHREADS
-D_REENTRANT   -DVCL_DLLIMPLEMENTATION -DCUI_DLL_NAME=\"libcuisi.so\"
-DDLLPOSTFIX=si  -DSAL_DLLPREFIX=\"lib\" -DSAL_DLLPOSTFIX=\"si.so\"
-D_XSALSET_LIBNAME=\"libspasi.so\"  -DENABLE_FONTCONFIG  -temp=/tmp
-KPIC -mt -xldscope=hidden -features=no%altspell -library=no%Cstd +w2
-erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
  -I/usr/sfw/include -I/usr/sfw/include/freetype2    -DEXCEPTIONS_ON
-xarch=generic -xO3 -c $S/vcl/source/glyphs/gcach_ftyp.cxx -o
$W/CxxObject/vcl/source/glyphs/gcach_ftyp.o -xMMD -xMF
$W/Dep/CxxObject/vcl/source/glyphs/gcach_ftyp.d
-I$S/vcl/source/glyphs/ -I$O/inc/stl -I$O/inc/stl -I$O/inc/external
-I$O/inc -I$S/solenv/unxsoli4/inc -I$S/solenv/inc -I$S/res
-I/opt/sunstudio11/SUNWspro/include -I$S/solenv/inc/Xp31
-I/usr/jdk/instances/jdk1.6.0/include
-I/usr/jdk/instances/jdk1.6.0/include/solaris
-I/usr/jdk/instances/jdk1.6.0/include/native_threads/include
-I$S/vcl/inc -I$S/vcl/inc/pch -I$S/solenv/inc -I$O/inc/offuh
-I$O/inc/stl -I$O/inc
CC: Warning: Option -xMMD passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -xMF passed to ld, if ld is invoked, ignored otherwise
"/UNIX-LAB/OOO340-c904c1944462/vcl/source/glyphs/gcach_ftyp.cxx", line
2337: Error: Cannot assign extern "C" int(*)(const FT_Vector_*,void*)
to extern "C" int(*)(FT_Vector_*,void*).
"/UNIX-LAB/OOO340-c904c1944462/vcl/source/glyphs/gcach_ftyp.cxx", line
2338: Error: Cannot assign extern "C" int(*)(const FT_Vector_*,void*)
to extern "C" int(*)(FT_Vector_*,void*).
"/UNIX-LAB/OOO340-c904c1944462/vcl/source/glyphs/gcach_ftyp.cxx", line
2339: Error: Cannot assign extern "C" int(*)(const FT_Vector_*,const
FT_Vector_*,void*) to extern "C"
int(*)(FT_Vector_*,FT_Vector_*,void*).
"/UNIX-LAB/OOO340-c904c1944462/vcl/source/glyphs/gcach_ftyp.cxx", line
2340: Error: Cannot assign extern "C" int(*)(const FT_Vector_*,const
FT_Vector_*,const FT_Vector_*,void*) to extern "C"
int(*)(FT_Vector_*,FT_Vector_*,FT_Vector_*,void*).
4 Error(s) detected.
CC: Invalid input file name
/UNIX-LAB/OOO340-c904c1944462/solver/340/unxsoli4.pro/workdir/Dep/CxxObject/vcl/source/glyphs/gcach_ftyp.d,
no output generated for this file.
make: *** [/UNIX-LAB/OOO340-c904c1944462/solver/340/unxsoli4.pro/workdir/CxxObject/vcl/source/glyphs/gcach_ftyp.o]
Error 4


2011/7/4 Michael Stahl <mst@openoffice.org>:
> On 04.07.2011 16:17, Eike Rathke wrote:
>>
>> Hi L'oiseau,
>>
>> On Friday, 2011-07-01 08:07:38 +0800, L'oiseau de mer wrote:
>
>>> export CC=/opt/solstudio12.2/bin/cc
>>> export CXX=/opt/solstudio12.2/bin/CC
>>
>> Try without setting CC and CXX, configure should find them as
>> /opt/solstudio12.2/bin is in your $PATH, or if that doesn't help try
>> setting CC=cc and CXX=CC without paths. Some configure checks may rely
>> on the executable name only, without path.
>
> actually i think i've built successfully with such variables.
> (but surprisingly found it necessary to put the sunstudio bin dir on the
> PATH as well...)
>
>>> [ build LNK ] Library/libdesktop_detectorsi.so
>>> usage: CC [ options ] files.  Use 'CC -flags' for details
>>> /usr/gnu/bin/cp: cannot stat
>>>
>>> `/UNIX-LAB/OOO340-c904c1944462/solver/340/unxsoli4.pro/workdir/LinkTarget/Library/libdesktop_detectorsi.so':
>>> No such file or directory
>>> ===============================================
>>> Maybe is SunCC's option is different with gcc, i want to find this
>>> Makefile and modify CFLAGS,
>
> the error message doesn't tell much.
> (cd vcl && gmake -r)
> should give the full command that failed.
>
> regards,
>  michael
>
>

Mime
View raw message