bugGNUstep - Bugs: bug #23832, Precompiled headers not working

Group
 
 

bug #23832: Precompiled headers not working

Submitter:  Gerold Rupprecht <geroldr>
Submitted:  Sat 12 Jul 2008 10:40:38 PM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 27 Oct 2008 03:54:46 PM UTC, comment #6: 

I disabled precompiled headers for gcc 4.1.

Please reinstall gnustep-make from trunk and try again - it
should all work now :-)

Thanks

Nicola Pero <nico>
Group Member
Mon 27 Oct 2008 03:09:31 PM UTC, comment #5: 

I looked at the errors ...

My diagnosis would be that precompiled headers are broken in
your compiler version.  Which is nothing new, since we know
that they are often broken in the 4.1 gcc compiler releases
(see comments in gnustep-make's configure) and you're using
4.1.1 ;-)

Unfortunately, in your compiler they are not completely
broken.  This is bad because your compiler passes the
precompiler header check in gnustep-make's configure - where
we try precompiling a header and then using it as the most
secure way of detecting if precompiled headers are working
or not ... that works in your compiler - but your gcc then
fails when a more complex precompiled header is used. :-(

I'm not sure what to do at this point.  I guess I'll hack
gnustep-make's configure to simply forcefully disable
precompiled headers for gcc 4.1.1.

Hopefully new gcc releases don't have this problem and
precompiled headers are working there.

Thanks

Nicola Pero <nico>
Group Member
Sat 02 Aug 2008 02:10:20 PM UTC, comment #4: 

Hi Nicola,

I got my machine up again today, and took the time to run
make distclean
make messages=yes

The results are to be found in the attached file.

Hope the correction is easy to find.

Thanks,

Gerold

(file #16229)

Gerold Rupprecht <geroldr>
Sun 13 Jul 2008 05:30:57 PM UTC, comment #3: 

Can you provide more information ?

You should at least do

make distclean
make messages=yes

And then send me the results of 'make messages=yes'.

Thanks

Nicola Pero <nico>
Group Member
Sun 13 Jul 2008 08:22:19 AM UTC, comment #2: 

(I add some comments after having worked on Gerold's machine)

The problem appears to be a malfunction with precompiled headers: disabling them leads to a successful compilation.

To work around the problem I removed from GNUmakefile.files:
#libgnustep-autolayout_OBJC_PRECOMPILED_HEADERS = \
#AutoLayoutCommonInclude.h

for the Auto module.

The system is a debian etch x86 32bit. The compiler version is:
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

the make version is:
GNU Make 3.81


This happens during a fresh svn check-out after having compiled and installed the core libraries.

Riccardo Mottola <rmottola>
Group Member
Sat 12 Jul 2008 11:07:29 PM UTC, comment #1: 

Invalidate

It seems I misconfigured on the compiling. I will try again.

Gerold Rupprecht <geroldr>
Sat 12 Jul 2008 10:40:38 PM UTC, original submission:  

In file included from GSAutoLayoutDefaults.m:27:
GSAutoLayoutDefaults.h:98: error: cannot find interface declaration for ‘NSView’
make[3]: * [obj/GSAutoLayoutDefaults.o] Error 1
make[2]: * [libgnustep-autolayout.all.subproject.variables] Error 2


This was after an svn update today and build of make, core, base, gui and back

Gorm and ProjectCenter are compiling properly, so I believe the problem is in Renaissance.

Thanks

Gerold

Gerold Rupprecht <geroldr>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #16229:  testnotes20080801 added by geroldr (19KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nico (Posted a comment)
  • -email is unavailable- added by rmottola (Updated the item)
  • -email is unavailable- added by geroldr (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-10-27 nico Open/ClosedOpen Closed
    2008-08-02 geroldr Attached File- Added testnotes20080801, #16229
    2008-07-13 nico CategoryLibraries Makefiles
        SummaryRenaissance - missing interface declaration (precompiled headers) Precompiled headers not working
    2008-07-13 rmottola SummaryRenaissance - missing interface declaration Renaissance - missing interface declaration (precompiled headers)
    2008-07-13 rmottola CategoryNone Libraries

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code