Hi Matt,

Matt Waddel wrote:
Hi Greg,

Greg Ungerer wrote:
Hi Jate,

Jate Sujjavanich wrote:

What did you have to change?
Anything not fixed in the latest uClinux-dist patches?

When I tried the only thing that struck me as odd (and that I
had to fix) was the location of the compilers limits.h file.

On all the other cross toolchains I have generated (not just
for m68knommu, but arm, sh, etc) the gcc limits.h got installed
into the directory which is returned from:
m68k-uclinux-gcc -print-file-name=include.
But in the Code Sourcery 4.2 kit it can only be found in
`m68k-uclinux-gcc -print-file-name=include`/../include-fixed.


I was told the attached patch had been submitted to the uClibc
maintainers and it will correct the include-fixed compile problem.

Doesn't appear to be applied then:

http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/Rules.mak?rev=18894&view=log

Any idea why other gcc-4.2 built for other architectures (I checked
arm and i386) don't have this include-fixed directory?

Regards
Greg



Regards,
Matt

So I just copied that one, into the normal include diretcory.
Everything built fine after that.

Daniel, are you out there, any idea why this is?

Regards
Greg

------------------------------------------------------------------------

Index: Rules.mak
===================================================================
--- Rules.mak   (revision 165466)
+++ Rules.mak   (revision 165467)
@@ -494,7 +494,8 @@ CFLAGS += -I$(KERNEL_HEADERS)
# Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
 #CFLAGS+=-iwithprefix include
-CFLAGS+=-isystem $(shell $(CC) -print-file-name=include || echo)
+C_SYSTEM_INCLUDE :=$(shell $(CC) -print-file-name=include || echo)
+CFLAGS+= -isystem $(C_SYSTEM_INCLUDE) -isystem $(C_SYSTEM_INCLUDE)-fixed
ifneq ($(DOASSERTS),y)
 CFLAGS+=-DNDEBUG
Index: ChangeLog.csl
===================================================================
--- ChangeLog.csl       (revision 165466)
+++ ChangeLog.csl       (revision 165467)
@@ -0,0 +1,11 @@
+2007-03-10  Nathan Sidwell  <[EMAIL PROTECTED]>
+
+       * Rules.mak: Fix an indentation.
+       (C_SYSTEM_INCLUDE): New.
+       (CFLAGS): Use it to provide both regular and -fixed include paths.
+       
+^L
+Local Variables:
+change-log-default-name: "ChangeLog.csl"
+mode: change-log
+End:


------------------------------------------------------------------------

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to