bugFreeFEM3D - Bugs: bug #8139, parse.ff.yy failes to compile with...

 
 

bug #8139: parse.ff.yy failes to compile with -Ox x>=1

Submitted by:  None
Submitted on:  Sun 14 Mar 2004 09:19:14 AM UTC  
 
Category: CompilationSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Stéphane Del Pino <delpinux>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 15 Mar 2004 07:36:35 PM UTC, comment #3:

languages compilation now uses the following options:
--enable-debug => "-g -Wall"
nothing => adds "-DNDEBUG" to the standard options
--enable-opt => "-DNDEBUG -O2 -funroll-all-loops -fargument-noalias-global -fno-gcse"

The later one may not be portable, but this is not a problem since it is just a convinient option for g++.

Stéphane Del Pino <delpinux>
Project AdministratorIn charge of this item.
Sun 14 Mar 2004 01:28:29 PM UTC, comment #2:

This is why the following rule was used:

parse.ff.o: parse.ff.cc
source='parse.ff.cc' object='parse.ff.o' libtool=no \
depfile='.deps/parse.ff.Po' tmpdepfile='.deps/parse.ff.TPo' \
depmode=gcc3 /bin/sh $(top_srcdir)/depcomp \
$(CXX) $(DEFS) $(CPPFLAGS) -I. -I$(top_builddir) $(INCLUDES) $(CXXFLAGS) @CXXPARSEFFFLAGS@ $(INCLUDES) -o parse.ff.o -c parse.ff.cc

Note the presence of @CXXPARSEFFFLAGS@ which is defined in aclocal.m4

The problem with this strategy is that I am not able to manage correctly the dependencies ...

Stéphane Del Pino <delpinux>
Project AdministratorIn charge of this item.
Sun 14 Mar 2004 09:22:24 AM UTC, comment #1:

Sorry I was not logged in when I submitted the bug

It seems that some specific compilation flags need to be applied to parse.ff.yy.

Another solution would be to compile language with no optimization flags

comments ?

Christophe Prud'homme <prudhomm>
Project Administrator
Sun 14 Mar 2004 09:19:14 AM UTC, original submission:

language/parse.ff.yy failes to compile with -Ox x>=2
g++ gives the following message

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DNDEBUG -I/usr/include/vtk -I.. -I../solver -I../algebra -I../geometry -I../utils -I../language -I../graphics -O2 -MT parse.ff.o -MD -MP -MF ".deps/parse.ff.Tpo" \
-c -o parse.ff.o `test -f 'parse.ff.cc' || echo './'`parse.ff.cc; \
then mv -f ".deps/parse.ff.Tpo" ".deps/parse.ff.Po"; \
else rm -f ".deps/parse.ff.Tpo"; exit 1; \
fi

cc1plus: out of memory allocating 777549060 bytes after a total of 11176864 bytes

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 15 Mar 2004 07:36:35 PM UTCdelpinuxOpen/ClosedOpen=>Closed
Mon 15 Mar 2004 07:36:34 PM UTCdelpinuxStatusNone=>Fixed
Sun 14 Mar 2004 01:28:29 PM UTCdelpinuxCarbon-Copy-=>Added prudhomm --AT-- mit --DOT-- edu
Sun 14 Mar 2004 09:22:24 AM UTCprudhommSeverity3 - Normal=>4 - Important
  Assigned toNone=>delpinux

Back to the top


Powered by Savane 3.1-cleanup1