You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Raphael Bircher <r....@gmx.ch> on 2011/12/20 12:11:28 UTC

Build braker in drawinglayer

Hi at all

server3:drawinglayer server3$ make -sr
[ build DEP ] LNK:Library/libdrawinglayer.dylib
[ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
cc1plus: warnings being treated as errors
/Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: 
warning: unused parameter 'rViewInformation'
make: *** 
[/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o] 
Error 1

Any Idea?
-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 20.12.2011 12:11, Raphael Bircher wrote:
> Hi at all
>
> server3:drawinglayer server3$ make -sr
> [ build DEP ] LNK:Library/libdrawinglayer.dylib
> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
> cc1plus: warnings being treated as errors
> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146:
> warning: unused parameter 'rViewInformation'
> make: ***
> [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o]
> Error 1
>
> Any Idea?

Sure, 'rViewInformation' -> '/*rViewInformation*/'.
Looks as if for some reason I compiled with warnings off, sorry. I'll 
check that ASAP. Please switch off for the moment.

Sincerely,
	Armin
--
ALG


Re: Build braker in drawinglayer

Posted by Raphael Bircher <r....@gmx.ch>.
Am 20.12.11 13:23, schrieb Armin Le Grand:
> On 20.12.2011 13:05, eric b wrote:
>> Hi Ariel,
>>
>> Le 20 déc. 11 à 12:25, Ariel Constenla-Haile a écrit :
>>
>>> Hi Raphael,
>>>
>>> On Tue, Dec 20, 2011 at 12:11:28PM +0100, Raphael Bircher wrote:
>>>> Hi at all
>>>>
>>>> server3:drawinglayer server3$ make -sr
>>>> [ build DEP ] LNK:Library/libdrawinglayer.dylib
>>>> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
>>>> cc1plus: warnings being treated as errors
>>>> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: 
>>>>
>>>>
>>>> warning: unused parameter 'rViewInformation'
>>>> make: ***
>>>> [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o] 
>>>>
>>>>
>>>> Error 1
>>>>
>>>> Any Idea?
>>>
>>> cc1plus: warnings being treated as errors
>>>
>>> Warnings are being treated as errors! That's the problem :)
>>> You won't go much far with this, with gcc I see warnings in several
>>> modules.
>>> So you better don't compile with warning as errors, or go fixing every
>>> warning you find.
>>>
>>
>> Was my first idea too, but after 5 min, I thought it was maybe missing /
>> not yet implemented code.
>>
>> So better build without --enable-werror for the moment
>>
>> Only Armin can confirm :)
>
> Confirming. I built Win and Mac, seems as if that was not enough :-( 
> Sigh... Building Linux now to solve those warnings..
Interesting. I build on Mac too... But well I have same component from 
Macport

Greetings from snowy Switzerland
Raphael


-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: Build braker in drawinglayer

Posted by eric b <er...@free.fr>.
Hi Pavel,

Le 21 déc. 11 à 23:11, Pavel Janík a écrit :

>>> I put up not-to-be-applied (but self explanatory) patch for WaE  
>>> clean drawing layer at:
>>>
>>> http://tmp.janik.cz/AOOo/drawinglayer-WaE.diff
>>>
>>> It also contains patch from #i110731#.
>> There is realy a problem. I use the same GCC as you and I run in  
>> the same problem again today evening. So thanks to you for fixing  
>> this.
>
>
> I did not fixed them. The patch can be used temporarily and shows  
> all places that need some love.
>
> The next module is svgio which has more similar problems (looks  
> like our gcc is a bit picky ;-):
>
> cc1plus: warnings being treated as errors
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/ 
> svgcharacternode.cxx: In member function ‘void  
> svgio::svgreader::SvgTextPositions::parseTextPositionAttributes 
> (const rtl::OUString&, svgio::svgreader::SVGToken, const  
> rtl::OUString&)’:
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/ 
> svgcharacternode.cxx:54: warning: enumeration value  
> ‘SVGTokenUnknown’ not handled in switch


[...cut...]


> svgio::svgreader::SvgCharacterNode::createSimpleTextPrimitive 
> (svgio::svgreader::SvgTextPosition&, const  
> svgio::svgreader::SvgStyleAttributes&) const’:
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/ 
> svgcharacternode.cxx:350: warning: enumeration value  
> ‘TextAnchor_notset’ not handled in switch
>


I perfectly know that you know how to fix that ;-) , but the next  
line is a comment for Raphaël :


@Raphaël : all these warnings can be fixed adding two lines

default:
   break;

in every concerned switch ( )



HTH
Eric



-- 
qɔᴉɹə
Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
L'association EducOOo : http://www.educoo.org
Blog : http://eric.bachard.org/news






Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
>> I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at:
>> 
>> http://tmp.janik.cz/AOOo/drawinglayer-WaE.diff
>> 
>> It also contains patch from #i110731#.
> There is realy a problem. I use the same GCC as you and I run in the same problem again today evening. So thanks to you for fixing this.


I did not fixed them. The patch can be used temporarily and shows all places that need some love.

The next module is svgio which has more similar problems (looks like our gcc is a bit picky ;-):

cc1plus: warnings being treated as errors
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx: In member function ‘void svgio::svgreader::SvgTextPositions::parseTextPositionAttributes(const rtl::OUString&, svgio::svgreader::SVGToken, const rtl::OUString&)’:
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:54: warning: enumeration value ‘SVGTokenUnknown’ not handled in switch
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:54: warning: enumeration value ‘SVGTokenWidth’ not handled in switch
...
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:54: warning: enumeration value ‘SVGTokenText’ not handled in switch
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:54: warning: enumeration value ‘SVGTokenLast’ not handled in switch
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx: At global scope:
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:51: warning: unused parameter ‘rTokenName’
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:184: warning: unused parameter ‘nCount’
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:184: warning: unused parameter ‘nIndex’
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:184: warning: unused parameter ‘nLength’
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx: In member function ‘drawinglayer::primitive2d::TextSimplePortionPrimitive2D* svgio::svgreader::SvgCharacterNode::createSimpleTextPrimitive(svgio::svgreader::SvgTextPosition&, const svgio::svgreader::SvgStyleAttributes&) const’:
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/svgio/source/svgreader/svgcharacternode.cxx:350: warning: enumeration value ‘TextAnchor_notset’ not handled in switch

-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Raphael Bircher <r....@gmx.ch>.
Hi Pavel

Am 21.12.11 20:51, schrieb Pavel Janík:
>> The warning is:
>>
>> cc1plus: warnings being treated as errors
>> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter ‘rViewInformation’
>
> I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at:
>
> http://tmp.janik.cz/AOOo/drawinglayer-WaE.diff
>
> It also contains patch from #i110731#.
There is realy a problem. I use the same GCC as you and I run in the 
same problem again today evening. So thanks to you for fixing this.

Greetings Raphael

-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: Build braker in drawinglayer

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Thu, Dec 22, 2011 at 11:53:51AM +0100, Pavel Jan�k wrote:
> The patch was meant to help you identify problematic places.

attached is the stderr of compiling drawinglayer and svgio in Fedora 16,
64 bits, g++ (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1).
In modules converted to gbuild is rather easy to find this warnigs, just
redirecting stderr to a file:

make -srj8 2> ../../../svgio.stderr.log


By the way, I was fixing -Wunused-parameter in other modules with
OSL_UNUSED from tools/inc/tools/diagnose_ex.h (sure there was a clever
reason to introduce this - looks like Qt's Q_UNUSED
http://doc.qt.nokia.com/4.7-snapshot/qtglobal.html#Q_UNUSED ).

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Build braker in drawinglayer

Posted by L'oiseau de mer <oi...@gmail.com>.
My Compiler is : SolarisStudio 12.3 (Sun Compiler)
http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html

2012/1/1 Armin Le Grand <Ar...@me.com>:
>        Hi L'oiseau de mer,
>
> On 30.12.2011 13:22, L'oiseau de mer wrote:
>>
>> I have build success! Very thanks for your help.
>
>
> Fine. It was pure guessing, but if it helps it helps :-) I have comitted
> that change so noone else stumbles upon it.
>
> Just curious: What compiler was this...?
>
> [..]
>
> Sincerely,
>        Armin
> --
> ALG
>

Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
	Hi L'oiseau de mer,

On 30.12.2011 13:22, L'oiseau de mer wrote:
> I have build success! Very thanks for your help.

Fine. It was pure guessing, but if it helps it helps :-) I have comitted 
that change so noone else stumbles upon it.

Just curious: What compiler was this...?

[..]

Sincerely,
	Armin
--
ALG


Re: Build braker in drawinglayer

Posted by L'oiseau de mer <oi...@gmail.com>.
I have build success! Very thanks for your help.

2011/12/30 Armin Le Grand <Ar...@me.com>:
>        Hi*,
>
> Address of bitfield is strange, but can only be a bitfield variable. The
> only one in the class TextBreakupHelper is mbNoDXArray, and it is only used
> internally. Address of bitfield implies that it gets somewhere casted or
> given as pointer/reference to some call, but it gets not. The only thing
> which I stumbled upon is that it gets not really initialized (see
> constructor of TextBreakupHelper), so please try:
>
> ln44: 'mbNoDXArray()' -> 'mbNoDXArray(true)'
>
> If this helps this is a hint that the compiler tries to make this a function
> call...
>
> HTH!
>
>
> On 29.12.2011 02:47, L'oiseau de mer wrote:
>>
>> This is the message that exec make -r , but i still not see which line
>> in the file textbreakuphelper.cxx:
>>
>> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
>> R=/UNIX-LAB/ooo&&  S=$R/main&&  O=$S/solver/340/unxsoli4.pro&&
>> W=$O/workdir&&   mkdir -p
>> $W/CxxObject/drawinglayer/source/primitive2d/&&  mkdir -p
>> $W/Dep/CxxObject/drawinglayer/source/primitive2d/&&
>> /opt/solarisstudio12.3/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   -DDRAWINGLAYER_DLLIMPLEMENTATION  -temp=/tmp -KPIC -mt
>> -xldscope=hidden -features=no%altspell -library=no%Cstd +w2
>>
>> -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
>>   -DEXCEPTIONS_ON  -xarch=generic -xO3 -c
>> $S/drawinglayer/source/primitive2d/textbreakuphelper.cxx -o
>> $W/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o -xMMD
>> -xMF $W/Dep/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.d
>> -I$S/drawinglayer/source/primitive2d/ -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/solarisstudio12.3/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/drawinglayer/inc -I$S/drawinglayer/inc/pch
>> -I$S/drawinglayer/source/processor2d -I$S/solenv/inc -I$O/inc/offuh
>> Error: Cannot take the address of a bit field.
>> Error: Cannot continue processing because of prior errors.
>> Compilation aborted.
>> make: ***
>> [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
>> Error 2
>>
>>
>> 2011/12/28 Ariel Constenla-Haile<ar...@apache.org>:
>>>
>>> Hi L'oiseau de mer,
>>>
>>> On Wed, Dec 28, 2011 at 09:35:06AM +0800, L'oiseau de mer wrote:
>>>>
>>>> I build in solaris, and it appear these message:
>>>> (many files appears this warn message "has a high resolution time stamp"
>>>
>>>
>>> this is a known issue, but not a build breaker. See
>>>
>>> http://wiki.services.openoffice.org/wiki/Build_Environment_Effort/Status_And_Next_Steps#Detected_problems.2C_caveats_and_known_issues
>>>
>>>
>>>> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
>>>> Error: Cannot take the address of a bit field.
>>>> Error: Cannot continue processing because of prior errors.
>>>> Compilation aborted.
>>>> make: ***
>>>> [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
>>>> Error 2
>>>> dmake:  Error code 2, while making 'all'
>>>
>>>
>>> the error seems to be in
>>> drawinglayer/source/primitive2d/textbreakuphelper.cxx
>>> Quite strange, it builds fine here.
>>>
>>> Can you get a full error message, with line and column numbers?
>>> Execute make -r in drawinglayer, you will get verbose output.
>>>
>>>
>>> Regards
>>> --
>>> Ariel Constenla-Haile
>>> La Plata, Argentina
>>
>>
>
>

Re: Build braker in drawinglayer

Posted by Michael Stahl <ms...@openoffice.org>.
On 29/12/11 21:40, Armin Le Grand wrote:
> 	Hi*,
> 
> Address of bitfield is strange, but can only be a bitfield variable. The 
> only one in the class TextBreakupHelper is mbNoDXArray, and it is only 
> used internally. Address of bitfield implies that it gets somewhere 
> casted or given as pointer/reference to some call, but it gets not. The 
> only thing which I stumbled upon is that it gets not really initialized 
> (see constructor of TextBreakupHelper), so please try:
> 
> ln44: 'mbNoDXArray()' -> 'mbNoDXArray(true)'
> 
> If this helps this is a hint that the compiler tries to make this a 
> function call...

AFAIK this is valid C++ syntax and should initialize the member to 0, cast
to the integral type of the member variable (presumably, bool here).

yet another bug in SunStudio's so-called C++ compiler.

btw, the value would be "false", not "true".



Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
	Hi*,

Address of bitfield is strange, but can only be a bitfield variable. The 
only one in the class TextBreakupHelper is mbNoDXArray, and it is only 
used internally. Address of bitfield implies that it gets somewhere 
casted or given as pointer/reference to some call, but it gets not. The 
only thing which I stumbled upon is that it gets not really initialized 
(see constructor of TextBreakupHelper), so please try:

ln44: 'mbNoDXArray()' -> 'mbNoDXArray(true)'

If this helps this is a hint that the compiler tries to make this a 
function call...

HTH!

On 29.12.2011 02:47, L'oiseau de mer wrote:
> This is the message that exec make -r , but i still not see which line
> in the file textbreakuphelper.cxx:
>
> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
> R=/UNIX-LAB/ooo&&  S=$R/main&&  O=$S/solver/340/unxsoli4.pro&&
> W=$O/workdir&&   mkdir -p
> $W/CxxObject/drawinglayer/source/primitive2d/&&  mkdir -p
> $W/Dep/CxxObject/drawinglayer/source/primitive2d/&&
> /opt/solarisstudio12.3/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   -DDRAWINGLAYER_DLLIMPLEMENTATION  -temp=/tmp -KPIC -mt
> -xldscope=hidden -features=no%altspell -library=no%Cstd +w2
> -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
>    -DEXCEPTIONS_ON  -xarch=generic -xO3 -c
> $S/drawinglayer/source/primitive2d/textbreakuphelper.cxx -o
> $W/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o -xMMD
> -xMF $W/Dep/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.d
> -I$S/drawinglayer/source/primitive2d/ -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/solarisstudio12.3/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/drawinglayer/inc -I$S/drawinglayer/inc/pch
> -I$S/drawinglayer/source/processor2d -I$S/solenv/inc -I$O/inc/offuh
> Error: Cannot take the address of a bit field.
> Error: Cannot continue processing because of prior errors.
> Compilation aborted.
> make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
> Error 2
>
>
> 2011/12/28 Ariel Constenla-Haile<ar...@apache.org>:
>> Hi L'oiseau de mer,
>>
>> On Wed, Dec 28, 2011 at 09:35:06AM +0800, L'oiseau de mer wrote:
>>> I build in solaris, and it appear these message:
>>> (many files appears this warn message "has a high resolution time stamp"
>>
>> this is a known issue, but not a build breaker. See
>> http://wiki.services.openoffice.org/wiki/Build_Environment_Effort/Status_And_Next_Steps#Detected_problems.2C_caveats_and_known_issues
>>
>>
>>> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
>>> Error: Cannot take the address of a bit field.
>>> Error: Cannot continue processing because of prior errors.
>>> Compilation aborted.
>>> make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
>>> Error 2
>>> dmake:  Error code 2, while making 'all'
>>
>> the error seems to be in
>> drawinglayer/source/primitive2d/textbreakuphelper.cxx
>> Quite strange, it builds fine here.
>>
>> Can you get a full error message, with line and column numbers?
>> Execute make -r in drawinglayer, you will get verbose output.
>>
>>
>> Regards
>> --
>> Ariel Constenla-Haile
>> La Plata, Argentina
>



Re: Build braker in drawinglayer

Posted by L'oiseau de mer <oi...@gmail.com>.
This is the message that exec make -r , but i still not see which line
in the file textbreakuphelper.cxx:

[ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
R=/UNIX-LAB/ooo && S=$R/main && O=$S/solver/340/unxsoli4.pro &&
W=$O/workdir &&  mkdir -p
$W/CxxObject/drawinglayer/source/primitive2d/ && mkdir -p
$W/Dep/CxxObject/drawinglayer/source/primitive2d/ &&
/opt/solarisstudio12.3/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   -DDRAWINGLAYER_DLLIMPLEMENTATION  -temp=/tmp -KPIC -mt
-xldscope=hidden -features=no%altspell -library=no%Cstd +w2
-erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
  -DEXCEPTIONS_ON  -xarch=generic -xO3 -c
$S/drawinglayer/source/primitive2d/textbreakuphelper.cxx -o
$W/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o -xMMD
-xMF $W/Dep/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.d
-I$S/drawinglayer/source/primitive2d/ -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/solarisstudio12.3/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/drawinglayer/inc -I$S/drawinglayer/inc/pch
-I$S/drawinglayer/source/processor2d -I$S/solenv/inc -I$O/inc/offuh
Error: Cannot take the address of a bit field.
Error: Cannot continue processing because of prior errors.
Compilation aborted.
make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
Error 2


2011/12/28 Ariel Constenla-Haile <ar...@apache.org>:
> Hi L'oiseau de mer,
>
> On Wed, Dec 28, 2011 at 09:35:06AM +0800, L'oiseau de mer wrote:
>> I build in solaris, and it appear these message:
>> (many files appears this warn message "has a high resolution time stamp"
>
> this is a known issue, but not a build breaker. See
> http://wiki.services.openoffice.org/wiki/Build_Environment_Effort/Status_And_Next_Steps#Detected_problems.2C_caveats_and_known_issues
>
>
>> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
>> Error: Cannot take the address of a bit field.
>> Error: Cannot continue processing because of prior errors.
>> Compilation aborted.
>> make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
>> Error 2
>> dmake:  Error code 2, while making 'all'
>
> the error seems to be in
> drawinglayer/source/primitive2d/textbreakuphelper.cxx
> Quite strange, it builds fine here.
>
> Can you get a full error message, with line and column numbers?
> Execute make -r in drawinglayer, you will get verbose output.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina

Re: Build braker in drawinglayer

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi L'oiseau de mer,

On Wed, Dec 28, 2011 at 09:35:06AM +0800, L'oiseau de mer wrote:
> I build in solaris, and it appear these message:
> (many files appears this warn message "has a high resolution time stamp"

this is a known issue, but not a build breaker. See
http://wiki.services.openoffice.org/wiki/Build_Environment_Effort/Status_And_Next_Steps#Detected_problems.2C_caveats_and_known_issues


> [ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
> Error: Cannot take the address of a bit field.
> Error: Cannot continue processing because of prior errors.
> Compilation aborted.
> make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
> Error 2
> dmake:  Error code 2, while making 'all'

the error seems to be in
drawinglayer/source/primitive2d/textbreakuphelper.cxx
Quite strange, it builds fine here.

Can you get a full error message, with line and column numbers?
Execute make -r in drawinglayer, you will get verbose output.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Build braker in drawinglayer

Posted by L'oiseau de mer <oi...@gmail.com>.
I build in solaris, and it appear these message:
(many files appears this warn message "has a high resolution time stamp"
When exec build --all:drawinglayer
===============================================================

build -- version: 275224

=============
Building module drawinglayer
=============

Entering /UNIX-LAB/ooo/main/drawinglayer/prj

cd .. && make -s -r -j1  && make -s -r deliverlog
make: *** Warning: .LOW_RESOLUTION_TIME file
`/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/inc/drawinglayer/drawinglayerdllapi.h'
has a high resolution time stamp
make: *** Warning: .LOW_RESOLUTION_TIME file
`/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/inc/drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx'
has a high resolution time stamp
...
.....
make: *** Warning: .LOW_RESOLUTION_TIME file
`/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/inc/drawinglayer/attribute/linestartendattribute.hxx'
has a high resolution time stamp
make: *** Warning: .LOW_RESOLUTION_TIME file
`/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/inc/drawinglayer/texture/texture.hxx'
has a high resolution time stamp
make: *** Warning: .LOW_RESOLUTION_TIME file
`/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/inc/drawinglayer/tools/converters.hxx'
has a high resolution time stamp
[ build CXX ] drawinglayer/source/primitive2d/textbreakuphelper
Error: Cannot take the address of a bit field.
Error: Cannot continue processing because of prior errors.
Compilation aborted.
make: *** [/UNIX-LAB/ooo/main/solver/340/unxsoli4.pro/workdir/CxxObject/drawinglayer/source/primitive2d/textbreakuphelper.o]
Error 2
dmake:  Error code 2, while making 'all'
---* RULES.MK *---

1 module(s):
        drawinglayer
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /UNIX-LAB/ooo/main/drawinglayer/prj

When you have fixed the errors in that module you can resume the build
by running:

        build --all:drawinglayer

Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 22.12.2011 14:30, Pavel Janík wrote:
>> Okay, drawinglayer and svgio now chnaged to be WaE-free for gcc 4.6.1. Please fetch and check...
>
>
> Fetched svgreplacement's drawinglayer and svgio, compiles cleanly here with
>
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

Jay! Tell me when there is more :-)
And... Throw some Svgs at the office,please...

--
ALG


Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
> Okay, drawinglayer and svgio now chnaged to be WaE-free for gcc 4.6.1. Please fetch and check...


Fetched svgreplacement's drawinglayer and svgio, compiles cleanly here with

gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 22.12.2011 11:53, Pavel Janík wrote:
>
> On Dec 22, 2011, at 11:50 AM, Armin Le Grand wrote:
>
>> On 22.12.2011 11:16, Pavel Janík wrote:
>>>> Thanks, took a look. Some are not correctly changed, please let me do it :-) I'm on it, seems to be very compiler-dependent...
>>>
>>>
>>> Yes, yes. I'm ready to test for you with my compilers.
>>
>> Give me a moment, I'm fighting with the Linux build currently :-)
>>
>> Please do not commit Your diff as it is, there are some not correct changes.
>
> I never had a plan to do so as I wrote in the mail with the link to patch:

Yes, just wanted to make sure :-)

> I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at...
>
> The patch was meant to help you identify problematic places.

Okay, drawinglayer and svgio now chnaged to be WaE-free for gcc 4.6.1. 
Please fetch and check...

Sincerely,
	Armin
--
ALG


Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
On Dec 22, 2011, at 11:50 AM, Armin Le Grand wrote:

> On 22.12.2011 11:16, Pavel Janík wrote:
>>> Thanks, took a look. Some are not correctly changed, please let me do it :-) I'm on it, seems to be very compiler-dependent...
>> 
>> 
>> Yes, yes. I'm ready to test for you with my compilers.
> 
> Give me a moment, I'm fighting with the Linux build currently :-)
> 
> Please do not commit Your diff as it is, there are some not correct changes.

I never had a plan to do so as I wrote in the mail with the link to patch:

I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at...

The patch was meant to help you identify problematic places.
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 22.12.2011 11:16, Pavel Janík wrote:
>> Thanks, took a look. Some are not correctly changed, please let me do it :-) I'm on it, seems to be very compiler-dependent...
>
>
> Yes, yes. I'm ready to test for you with my compilers.

Give me a moment, I'm fighting with the Linux build currently :-)

Please do not commit Your diff as it is, there are some not correct 
changes. The nIndex calculation in textbreakuphelper.cxx should be a 
nIndex2, the mfCenterZ in zbufferprocessor3d.cxx IS a double, the same 
type the initialization returns...

--
ALG


Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
> Thanks, took a look. Some are not correctly changed, please let me do it :-) I'm on it, seems to be very compiler-dependent...


Yes, yes. I'm ready to test for you with my compilers.
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 21.12.2011 20:51, Pavel Janík wrote:
>> The warning is:
>>
>> cc1plus: warnings being treated as errors
>> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter ‘rViewInformation’
>
>
> I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at:
>
> http://tmp.janik.cz/AOOo/drawinglayer-WaE.diff

Thanks, took a look. Some are not correctly changed, please let me do it 
:-) I'm on it, seems to be very compiler-dependent...

> It also contains patch from #i110731#.

--
ALG


Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
> The warning is:
> 
> cc1plus: warnings being treated as errors
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter ‘rViewInformation’


I put up not-to-be-applied (but self explanatory) patch for WaE clean drawing layer at:

http://tmp.janik.cz/AOOo/drawinglayer-WaE.diff

It also contains patch from #i110731#.
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
On Dec 22, 2011, at 11:01 AM, Armin Le Grand wrote:

> Yes, please feel free to change 'rViewInformation' -> /*rViewInformation*/. It's only used in view-dependent primitives.

Then you have to change also declarations and other functions using it and... Not that easy.
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 21.12.2011 20:43, Pavel Janík wrote:
> Armin,
>
> On Dec 21, 2011, at 1:36 PM, Armin Le Grand wrote:
>
>> I'm also confused now, I just built the mac version with '--enable-werror', no problem. Trying Linux now...
>
>
> what Mac OS X system and compiler are you using?

I cannot check right now, I'm away from the mac...

> I use gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) on 10.6.8.
>
> The warning is:
>
> cc1plus: warnings being treated as errors
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter ‘rViewInformation’
>
> The code there is:
>
>          basegfx::B2DRange PatternFillPrimitive2D::getB2DRange(const geometry::ViewInformation2D&  rViewInformation) const
>          {
>              return getMask().getB2DRange();
>          }
>
> and rViewInformation is really unused there.

Yes, please feel free to change 'rViewInformation' -> 
/*rViewInformation*/. It's only used in view-dependent primitives.

Sincerely,
	Armin
--
ALG


Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
Armin,

On Dec 21, 2011, at 1:36 PM, Armin Le Grand wrote:

> I'm also confused now, I just built the mac version with '--enable-werror', no problem. Trying Linux now...


what Mac OS X system and compiler are you using?

I use gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) on 10.6.8.

The warning is:

cc1plus: warnings being treated as errors
/Users/pavel/BUILD/BuildDir/ooo_trunk_src/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter ‘rViewInformation’

The code there is:

        basegfx::B2DRange PatternFillPrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewInformation) const
        {
            return getMask().getB2DRange();
        }

and rViewInformation is really unused there.
-- 
Pavel Janík




Re: Build braker in drawinglayer

Posted by Raphael Bircher <r....@gmx.ch>.
Am 21.12.11 13:36, schrieb Armin Le Grand:
> On 21.12.2011 11:55, Raphael Bircher wrote:
>> Am 20.12.11 13:23, schrieb Armin Le Grand:
>>> On 20.12.2011 13:05, eric b wrote:
>
> [..]
>
>>>
>>> Confirming. I built Win and Mac, seems as if that was not enough :-(
>>> Sigh... Building Linux now to solve those warnings..
>> I was building it succesfull without --enable-werror
>
> I'm also confused now, I just built the mac version with 
> '--enable-werror', no problem. Trying Linux now...
Just to avoid confusion, the build was from yesterday. So I haven't try 
it with a Head from today. I will try it now with a head checkout and 
with --enable-werror

Greetings Raphael


-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 21.12.2011 11:55, Raphael Bircher wrote:
> Am 20.12.11 13:23, schrieb Armin Le Grand:
>> On 20.12.2011 13:05, eric b wrote:

[..]

>>
>> Confirming. I built Win and Mac, seems as if that was not enough :-(
>> Sigh... Building Linux now to solve those warnings..
> I was building it succesfull without --enable-werror

I'm also confused now, I just built the mac version with 
'--enable-werror', no problem. Trying Linux now...

> Greetings from Switzerland with a load of snow
> Raphael
>
>

--
ALG


Re: Build braker in drawinglayer

Posted by Raphael Bircher <r....@gmx.ch>.
Am 20.12.11 13:23, schrieb Armin Le Grand:
> On 20.12.2011 13:05, eric b wrote:
>> Hi Ariel,
>>
>> Le 20 déc. 11 à 12:25, Ariel Constenla-Haile a écrit :
>>
>>> Hi Raphael,
>>>
>>> On Tue, Dec 20, 2011 at 12:11:28PM +0100, Raphael Bircher wrote:
>>>> Hi at all
>>>>
>>>> server3:drawinglayer server3$ make -sr
>>>> [ build DEP ] LNK:Library/libdrawinglayer.dylib
>>>> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
>>>> cc1plus: warnings being treated as errors
>>>> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: 
>>>>
>>>>
>>>> warning: unused parameter 'rViewInformation'
>>>> make: ***
>>>> [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o] 
>>>>
>>>>
>>>> Error 1
>>>>
>>>> Any Idea?
>>>
>>> cc1plus: warnings being treated as errors
>>>
>>> Warnings are being treated as errors! That's the problem :)
>>> You won't go much far with this, with gcc I see warnings in several
>>> modules.
>>> So you better don't compile with warning as errors, or go fixing every
>>> warning you find.
>>>
>>
>> Was my first idea too, but after 5 min, I thought it was maybe missing /
>> not yet implemented code.
>>
>> So better build without --enable-werror for the moment
>>
>> Only Armin can confirm :)
>
> Confirming. I built Win and Mac, seems as if that was not enough :-( 
> Sigh... Building Linux now to solve those warnings..
I was building it succesfull without --enable-werror

Greetings from Switzerland with a load of snow
Raphael


-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: Build braker in drawinglayer

Posted by Armin Le Grand <Ar...@me.com>.
On 20.12.2011 13:05, eric b wrote:
> Hi Ariel,
>
> Le 20 déc. 11 à 12:25, Ariel Constenla-Haile a écrit :
>
>> Hi Raphael,
>>
>> On Tue, Dec 20, 2011 at 12:11:28PM +0100, Raphael Bircher wrote:
>>> Hi at all
>>>
>>> server3:drawinglayer server3$ make -sr
>>> [ build DEP ] LNK:Library/libdrawinglayer.dylib
>>> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
>>> cc1plus: warnings being treated as errors
>>> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146:
>>>
>>> warning: unused parameter 'rViewInformation'
>>> make: ***
>>> [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o]
>>>
>>> Error 1
>>>
>>> Any Idea?
>>
>> cc1plus: warnings being treated as errors
>>
>> Warnings are being treated as errors! That's the problem :)
>> You won't go much far with this, with gcc I see warnings in several
>> modules.
>> So you better don't compile with warning as errors, or go fixing every
>> warning you find.
>>
>
> Was my first idea too, but after 5 min, I thought it was maybe missing /
> not yet implemented code.
>
> So better build without --enable-werror for the moment
>
> Only Armin can confirm :)

Confirming. I built Win and Mac, seems as if that was not enough :-( 
Sigh... Building Linux now to solve those warnings..

> Regards,
> Eric
>



Re: Build braker in drawinglayer

Posted by eric b <er...@free.fr>.
Hi Ariel,

Le 20 déc. 11 à 12:25, Ariel Constenla-Haile a écrit :

> Hi Raphael,
>
> On Tue, Dec 20, 2011 at 12:11:28PM +0100, Raphael Bircher wrote:
>> Hi at all
>>
>> server3:drawinglayer server3$ make -sr
>> [ build DEP ] LNK:Library/libdrawinglayer.dylib
>> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
>> cc1plus: warnings being treated as errors
>> /Users/server3/Documents/build37/main/drawinglayer/source/ 
>> primitive2d/patternfillprimitive2d.cxx:146:
>> warning: unused parameter 'rViewInformation'
>> make: *** [/Users/server3/Documents/build37/main/solver/340/ 
>> unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/ 
>> patternfillprimitive2d.o]
>> Error 1
>>
>> Any Idea?
>
> cc1plus: warnings being treated as errors
>
> Warnings are being treated as errors! That's the problem :)
> You won't go much far with this, with gcc I see warnings in several  
> modules.
> So you better don't compile with warning as errors, or go fixing every
> warning you find.
>

Was my first idea too, but after 5 min, I thought it was maybe  
missing / not yet implemented code.

So better build without  --enable-werror  for the moment

Only Armin can confirm :)


Regards,
Eric

-- 
qɔᴉɹə
Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
L'association EducOOo : http://www.educoo.org
Blog : http://eric.bachard.org/news






Re: Build braker in drawinglayer

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Raphael,

On Tue, Dec 20, 2011 at 12:11:28PM +0100, Raphael Bircher wrote:
> Hi at all
> 
> server3:drawinglayer server3$ make -sr
> [ build DEP ] LNK:Library/libdrawinglayer.dylib
> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
> cc1plus: warnings being treated as errors
> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146:
> warning: unused parameter 'rViewInformation'
> make: *** [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o]
> Error 1
> 
> Any Idea?

cc1plus: warnings being treated as errors

Warnings are being treated as errors! That's the problem :)
You won't go much far with this, with gcc I see warnings in several modules.
So you better don't compile with warning as errors, or go fixing every
warning you find.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Build braker in drawinglayer

Posted by Pavel Janík <Pa...@Janik.cz>.
Hi,

On Dec 20, 2011, at 12:11 PM, Raphael Bircher wrote:

> server3:drawinglayer server3$ make -sr
> [ build DEP ] LNK:Library/libdrawinglayer.dylib
> [ build CXX ] drawinglayer/source/primitive2d/patternfillprimitive2d
> cc1plus: warnings being treated as errors
> /Users/server3/Documents/build37/main/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx:146: warning: unused parameter 'rViewInformation'
> make: *** [/Users/server3/Documents/build37/main/solver/340/unxmacxi.pro/workdir/CxxObject/drawinglayer/source/primitive2d/patternfillprimitive2d.o] Error 1
> 
> Any Idea?

this is WaE only. Armin, can you please fix it?
-- 
Pavel Janík