Bug 11794 - talloc 2.1.6 cross compiling
Summary: talloc 2.1.6 cross compiling
Status: RESOLVED FIXED
Alias: None
Product: TALLOC
Classification: Unclassified
Component: libtalloc (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 16:05 UTC by tele
Modified: 2016-03-15 06:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tele 2016-03-14 16:05:21 UTC
I use for build

#--------------------------------------
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

#autoreconf -fv --install


./configure	  \
  CC="gcc -m32" CXX="g++ -m32" \
  --build=x86_64-pc-linux-gnu \
  --host=i686-pc-linux-gnu 
#--------------------------------------

And I have:
#---------------------------
+ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
+ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
+ ./configure 'CC=gcc -m32' 'CXX=g++ -m32' --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
Checking for program gcc or cc           : /usr/bin/gcc 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for gcc                         : ok  
Checking for program git                 : /usr/bin/git 
Check for -MD                            : yes 
ERROR: Mismatch between --build and --host. Please use --cross-compile instead
#----------------------------

But how use --cross-compile option ?
Comment 1 tele 2016-03-14 16:06:56 UTC
I use it for build 32bit packjage on 64 bit system.
talloc 2.1.6
Comment 2 tele 2016-03-14 16:18:51 UTC
I read https://wiki.samba.org/index.php/Waf#cross-compiling
and 
#----------------------------------------------
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

#autoreconf -fv --install


./configure	 \
  CC="gcc -m32" CXX="g++ -m32" \
  --cross-compile \
  --cross-execute=x86_64-pc-linux-gnu \
  --build=x86_64-pc-linux-gnu \
  --hostcc=i686-pc-linux-gnu 
#----------------------------------------------

is ok ?
Comment 3 tele 2016-03-15 06:21:43 UTC
I leave the building, I needed it for building wayland,
now I --disable-wayland (in build mesa)
 so it is solved.