Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc/Crossdev issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1961

PostPosted: Sun Sep 24, 2006 2:25 pm    Post subject: Distcc/Crossdev issue Reply with quote

I'm emerging stuff on an i686 system, and I want my amd64 to help.

I know I have to emerge crossdev on the amd64 machine and run 'crossdev -t i686'. But does crossdev need to be emerged on my i686 machine?


Last edited by Bigun on Sun Sep 24, 2006 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Sep 24, 2006 2:48 pm    Post subject: Reply with quote

No, not unless you want it to help the amd64 machine with its builds too.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1961

PostPosted: Sun Sep 24, 2006 2:50 pm    Post subject: Reply with quote

Ok then I have an issue:

Code:
>>> Emerging (1 of 379) media-libs/libmpeg3-1.5.2 to /
 * libmpeg3-1.5.2-src.tar.bz2 MD5 ;-) ...                                 [ ok ]
 * libmpeg3-1.5.2-src.tar.bz2 RMD160 ;-) ...                              [ ok ]
 * libmpeg3-1.5.2-src.tar.bz2 SHA1 ;-) ...                                [ ok ]
 * libmpeg3-1.5.2-src.tar.bz2 SHA256 ;-) ...                              [ ok ]
 * libmpeg3-1.5.2-src.tar.bz2 size ;-) ...                                [ ok ]
 * libmpeg3-patches-1.tar.bz2 MD5 ;-) ...                                 [ ok ]
 * libmpeg3-patches-1.tar.bz2 RMD160 ;-) ...                              [ ok ]
 * libmpeg3-patches-1.tar.bz2 SHA1 ;-) ...                                [ ok ]
 * libmpeg3-patches-1.tar.bz2 SHA256 ;-) ...                              [ ok ]
 * libmpeg3-patches-1.tar.bz2 size ;-) ...                                [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking libmpeg3-1.5.2-src.tar.bz2 ;-) ...                            [ ok ]
 * checking libmpeg3-patches-1.tar.bz2 ;-) ...                            [ ok ]
>>> Unpacking source...
>>> Unpacking libmpeg3-1.5.2-src.tar.bz2 to /var/tmp/portage/libmpeg3-1.5.2/work
>>> Unpacking libmpeg3-patches-1.tar.bz2 to /var/tmp/portage/libmpeg3-1.5.2/work
 * Applying various patches (bugfixes/updates) ...
 *   01_all_installheader.patch ...                                       [ ok ]
 *   02_all_mpeg3split.patch ...                                          [ ok ]
 *   03_all_pthread.patch ...                                             [ ok ]
 *   04_all_largefile.patch ...                                           [ ok ]
 *   05_all_proper-c.patch ...                                            [ ok ]
 *   06_all_no-nasm.patch ...                                             [ ok ]
 *   07_all_gentoo-multilib.patch ...                                     [ ok ]
 * Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/libmpeg3-1.5.2/work/libmpeg3-1.5.2 ...
gcc -c `cat i686/c_flags`  audio/ac3.c -o i686/audio/ac3.o
audio/ac3.c:1: error: CPU you selected does not support x86-64 instruction set
audio/ac3.c:1: error: CPU you selected does not support x86-64 instruction set
distcc[11059] ERROR: compile audio/ac3.c on 192.168.0.5 failed
make: *** [i686/audio/ac3.o] Error 1

!!! ERROR: media-libs/libmpeg3-1.5.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libmpeg3-1.5.2.ebuild, line 59:   Called die


And this is with the x86 running the emerge command, and the amd64 helping out.
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sun Sep 24, 2006 2:51 pm    Post subject: Reply with quote

no you DON'T need crossdev! you can just emerge 32bit apps on amd64 with the gcc flag -m32 !
if you want, i can tell you how to make this the easiest and flexible way with a wrapper script...
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1961

PostPosted: Sun Sep 24, 2006 2:57 pm    Post subject: Reply with quote

all-inc. wrote:
no you DON'T need crossdev! you can just emerge 32bit apps on amd64 with the gcc flag -m32 !
if you want, i can tell you how to make this the easiest and flexible way with a wrapper script...


Go ahead, if you can write a mini-how to, it would go great in the AMD64 section
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Sep 24, 2006 7:19 pm    Post subject: Reply with quote

all-inc. wrote:
no you DON'T need crossdev! you can just emerge 32bit apps on amd64 with the gcc flag -m32 !
if you want, i can tell you how to make this the easiest and flexible way with a wrapper script...


How do you specify the target architecture?
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sun Sep 24, 2006 7:26 pm    Post subject: Reply with quote

You don't need to. x86_64 -m32 and x86 are compatible
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sun Sep 24, 2006 7:27 pm    Post subject: Reply with quote

I finished my HowTo!
Have a look!
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Sep 24, 2006 9:56 pm    Post subject: Reply with quote

all-inc. wrote:
You don't need to. x86_64 -m32 and x86 are compatible

So what sub arch of x86 will it build, i386 i686?
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sun Sep 24, 2006 10:44 pm    Post subject: Reply with quote

the one you specify. use -m32 -m=i486 if you want your amd64 box to compile for an i486 box :D
I think default is to i686. But it doesn't matter, I think, because you can always specify the -march flag.
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum