Problem when cross compile pkg-config-0.23?

TungDH tungdh at tsdv.com.vn
Thu Dec 25 22:22:30 PST 2008


Hi friends,
I have built cross compiler with target-machine is powerpc-linux, 
build-machine is i686-linux.
I want to compile pkg-config-0.23. I have configured as follow:

/$CC=powerpc-linux-gnu-gcc ./configure --prefix=/home/tungdh/hda3/dfb/ 
--host powerpc-linux-gnu --build i686-pc-linux-gnu --without-x

/And i see the following error:
/configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for glib-1.2.10

/It seems try to execute some test files. I think, i'm cross compiling. 
So the test file, of course, can not execute on build-machine.  So I 
have removed some line in ./glib-1.2.10/configure :
/if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross 
compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   *{ (exit 1); exit 1; };  ==> remove all similar lines*
}

/Then i can configure, but i see the other error when compiling it (run 
/make /command)
/In file included from glib.h:66,
                 from garray.c:32:
./glibconfig.h:82: error: flexible array member in union
In file included from garray.c:32:
glib.h:2354: error: expected ',' or '}' before 'GLIB_SYSDEF_POLLIN'
garray.c: In function 'g_array_new':
garray.c:65: warning: type-punning to incomplete type might break 
strict-aliasing rules
garray.c:72: warning: type-punning to incomplete type might break 
strict-aliasing rules
garray.c: In function 'g_array_free':
garray.c:91: warning: type-punning to incomplete type might break 
strict-aliasing rules
garray.c:93: warning: type-punning to incomplete type might break 
strict-aliasing rules
/
Have you ever met above error? Can you give me some advices?
Many thanks to all of you.
Best regards,
TungDH
/
/

--------------------------------------
This mail was scanned by BitDefender



More information about the pkg-config mailing list