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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23832: Precompiled headers not working

Submitted by:  Gerold Rupprecht <geroldr>
Submitted on:  Sat 12 Jul 2008 10:40:38 PM UTC  
 
Category: MakefilesSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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>
Project 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>

 

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
  • -unavailable- added by nico (Posted a comment)
  • -unavailable- added by rmottola (Updated the item)
  • -unavailable- added by geroldr (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 27 Oct 2008 03:54:46 PM UTCnicoOpen/ClosedOpen=>Closed
    Sat 02 Aug 2008 02:10:20 PM UTCgeroldrAttached File-=>Added testnotes20080801, #16229
    Sun 13 Jul 2008 05:30:57 PM UTCnicoCategoryLibraries=>Makefiles
      SummaryRenaissance - missing interface declaration (precompiled headers)=>Precompiled headers not working
    Sun 13 Jul 2008 08:22:58 AM UTCrmottolaSummaryRenaissance - missing interface declaration=>Renaissance - missing interface declaration (precompiled headers)
    Sun 13 Jul 2008 08:10:38 AM UTCrmottolaCategoryNone=>Libraries

    Back to the top


    Powered by Savane 3.1-cleanup1