Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wer kennt sich aus mit crossdev?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Aug 12, 2012 4:30 pm    Post subject: Wer kennt sich aus mit crossdev? Reply with quote

Hallo Zusammen,

Ich will versuchen, Gentoo auf einem Raspberry Pi zu installieren.

Ich habe diese Anleitung gefunden: --> http://wiki.gentoo.org/wiki/Raspberry_Pi

Mir ist dieser Teil nicht ganz klar:

Quote:
File /etc/portage/make.conf

Code:
CFLAGS="-O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CXXFLAGS="${CFLAGS}"



Welche "make.conf" ist denn damit gemeint? - Die auf meinem System, oder die vom stage3, das gerade auf der SD entpackt wurde?
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1938

PostPosted: Mon Aug 13, 2012 10:51 pm    Post subject: Reply with quote

Das muss die auf der SD-Karte sein. Du willst ja nicht die Flags für deinen Host-Compiler auf die Flags für einen völlig anderen Prozessor ändern.
_________________
Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong."
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Tue Aug 14, 2012 4:29 pm    Post subject: Reply with quote

THX @ mrsteven,

so habe ich das auch vermutet. :)

Allerdings habe nun ein weiteres Problem: :(


Wenn ich "crossdev -S -v -t armv6j-hardfloat-linux-gnueabi" ausführe, bricht der Compiler irgendwann mal mit einer Fehlermeldung ab.

Die Googlesuche ergab, dass es wohl daran liegt, dass ich in meiner make.conf " CFLAGS="-march=native" " stehen habe.

Die Frage ist nun, wie kann ich crossdev dazu bewegen, folgendes zu verwenden?

Code:
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3333
Location: de

PostPosted: Wed Aug 15, 2012 7:06 am    Post subject: Reply with quote

3PO wrote:
Die Googlesuche ergab, dass es wohl daran liegt, dass ich in meiner make.conf " CFLAGS="-march=native" " stehen habe.

Die Frage ist nun, wie kann ich crossdev dazu bewegen, folgendes zu verwenden?

Code:
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"

march=native solltest du rausnehmen, wenn du mit crossdev arbeitest. Ich hab bei mir den Fall, dass ich auf 2 Rechnern mit amd64 distcc für i686 nutze. Hab auch auf allen Rechnern die Compilerflags manuell eingetragen, d.h. kein native.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum 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