No subject


Mon Sep 15 17:22:34 UTC 2008


These files are used for creating locale data structured to be included
within the libc.so.0, unless you use pregenerated files. 

---------------------------------------------------------------------- 
 chrisz - 10-06-08 06:47  
---------------------------------------------------------------------- 
Carmello,

Thank you for your assistance with this. I'm not sure how to reconcile
what I'm seeing with your experiences. I always try and compile from the
top directory of the source tree, in this case uClibc-0.9.30-rc1.

Based on your conviction that the Makefile was correct, I went ahead and
restored it to its original form, except I changed line 15 in
extra/locale/Makefile.in to read ../../include/bits/uClibc_ctype.h instead
of the default $(top_builddir)include/bits/uClibc_ctype.h.  I also verified
$(top_builddir) is set to "./" at this point in the build process, which
concurs with the error message I am seeing "can not open
./include/bits/uClibc_ctype.h".

After making the change, the Makefile works as expected, and gen_wc8bit
compiles and runs normally. Just to be sure, I ran make -j 1 to be
absolutely certain it was not a parallel compile issue, and I got the same
result.

If you have a chance, can you check and let me know what the variable
$(top_builddir) is set to in your environment at the time it tries to make
gen_wc8bit? I have to believe if it works for you and does not for me,
there must be some environmental differences.

Thanks again for your help.

Chris 

---------------------------------------------------------------------- 
 bernhardf - 10-06-08 06:55  
---------------------------------------------------------------------- 
Can you please try with current trunk? There was a dependency fix applied
since the -rc1.

TIA, 

---------------------------------------------------------------------- 
 egtvedt - 10-07-08 00:30  
---------------------------------------------------------------------- 
The Makefile stuff for locale is tricky, it seems to also miss a "-I." when
compiling the stuff in extra/locale/. GCC will actually switch into the
directory extra/locale before compiling, so then supplying
./include/bits/uClibc_ctype.h is not the correct path to this include
file.

If you add "-I." to the CFLAGS in extra/locale/Makefile.in it gets past
this, but then fails later due to path issues.

As mentioned, I also think the top_builddir and top_srcdir is set wrong.
Perhaps the main Makefile does some stuff in extra/locale before the
Makefile there is included?

I am trying to figure this one out, as this is the only thing stopping me
getting locale to work. 

---------------------------------------------------------------------- 
 carmelo73 - 10-07-08 00:57  
---------------------------------------------------------------------- 
In my environment (nptl branch) I don't have problem with top_srcdir and
top_buildir as you can see from the log below:

[SNIP]

  LN include/sys/ucontext.h
  LN include/sys/user.h
  LN include/bits/local_lim.h
  LN include/bits/posix_opt.h
gcc ../../extra/locale/gen_wc8bit.c  -o ../../extra/locale/gen_wc8bit   
-O2 -Wall  -D__UCLIBC_GEN_LOCALE
-DUCLIBC_CTYPE_HEADER='"../../include/bits/uClibc_ctype.h"'
-DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1
../../extra/locale/gen_wc8bit.c: In function 'main':
../../extra/locale/gen_wc8bit.c:356: warning: array subscript is above
array bounds
../../extra/locale/gen_wc8bit.c:415: warning: array subscript is above
array bounds
../../extra/locale/gen_wc8bit.c:481: warning: array subscript is above
array bounds
find ../../extra/locale/charmaps -name '*.pairs' | sort >
../../extra/locale/codesets.txt
../../extra/locale/gen_wc8bit `cat ../../extra/locale/codesets.txt`

The only issue appears if trying to do a parallel build as I said.

My branch is aligned with trunk... anyway I'll check again. 

---------------------------------------------------------------------- 
 bernhardf - 10-08-08 12:03  
---------------------------------------------------------------------- 
This is supposedly fixed in r23626. Please verify and reopen this issue
otherwise.
thanks, 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-06-08 01:31  chrisz         New Issue                                    
10-06-08 01:31  chrisz         Status                   new => assigned     
10-06-08 01:31  chrisz         Assigned To               => uClibc          
10-06-08 01:41  carmelo73      Note Added: 0012804                          
10-06-08 04:25  chrisz         Note Added: 0012814                          
10-06-08 05:33  carmelo73      Note Added: 0012824                          
10-06-08 06:47  chrisz         Note Added: 0012834                          
10-06-08 06:55  bernhardf      Note Added: 0012844                          
10-07-08 00:30  egtvedt        Note Added: 0012954                          
10-07-08 00:57  carmelo73      Note Added: 0012964                          
10-08-08 12:03  bernhardf      Status                   assigned => closed  
10-08-08 12:03  bernhardf      Note Added: 0013134                          
======================================================================



More information about the uClibc-cvs mailing list