IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

 C Discussion :

Aide Compilation pour Coupe du monde d'othello


Sujet :

C

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Février 2010
    Messages
    12
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 12
    Par défaut Aide Compilation pour Coupe du monde d'othello
    Bonsoir,

    J'ai des sources d'un programme de jeu de réflexion (Othello) nommé "zebra" qu'on peut récupérer sous la forme "zebra.tar.gz" à l'adresse suivante :

    http://radagast.se/othello/zebra.tar.gz

    En modifiant juste le makefile, j'arrive à compiler avec un shuttle sous linux (vectorlinux 6.0) . Mais maintenant que j'ai un macbook, j'aimerais faire de même sous Mac OS X (processeur Intel Core 2 Duo).
    Hors quand je tape "make all" comme indiqué dans le README j'ai le message d'erreur suivant :
    ae6$ make all
    gcc -O4 -s -fomit-frame-pointer -mtune=pentium2 -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o bitbcnt.o bitbcnt.c
    bitbcnt.c:1: error: CPU you selected does not support x86-64 instruction set
    make: *** [bitbcnt.o] Error 1

    Quelqu'un m'a dit de modifier la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    -mtune=pentium2 par -mtune=generic
    Mais en faisant ça j'ai un message d'erreur différent ( ce qui est un progrès dans un sens ^^). La voici :

    ae6$ make all
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DUSE_PENTIUM_ASM -DZLIB_STATIC -c -o bitbcnt.o bitbcnt.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DUSE_PENTIUM_ASM -DZLIB_STATIC -c -o bitbmob.o bitbmob.c
    /var/folders/98/98ICuWLSGmq-NR3SXryQT++++TM/-Tmp-//cc823UGL.s:10:suffix or operands invalid for `pop'
    /var/folders/98/98ICuWLSGmq-NR3SXryQT++++TM/-Tmp-//cc823UGL.s:13:suffix or operands invalid for `push'
    /var/folders/98/98ICuWLSGmq-NR3SXryQT++++TM/-Tmp-//cc823UGL.s:16:suffix or operands invalid for `pop'
    make: *** [bitbmob.o] Error 1
    macbook-de-9ae6:zebra ae6$


    Ce qui est toujours du chinois pour moi. Si quelqu'un pouvait m'aider je lui en serais très reconnaissant surtout que c'est pour me préparer au prochain championnat mondial d'othello ^^ ( appelé aussi reversi si certains connaissent ... ^^)

  2. #2
    Invité(e)
    Invité(e)
    Par défaut
    Bonjour,

    As tu tenté de nettoyé le projet après un échec ? Si cela ne fonctionne toujours pas, tente de supprimer "-DUSE_PENTIUM_ASM" du Makefile (ligne 126).

  3. #3
    Membre habitué
    Profil pro
    Inscrit en
    Février 2010
    Messages
    12
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 12
    Par défaut
    Bonjour Mabu merci pour ton attention,

    effectivement la ligne 126 -DUSE_PENTIUM_ASM c'est ce que j'effaçais lorsque je compilais sous linux en 32 bits avec le shuttle (processeur amd) et ça fonctionnait.

    Sur mon mac, ( oui je fais toujours make clean après une nouvelle tentative) à l'heure actuelle en mettant
    -mtune=generic à la place de -mtune=pentium2 et en supprimant -DUSE_PENTIUM_ASM de la ligne 126,

    j'ai le nouveau message suivant maintenant ( c'est presque compilé on dirait ^^ !):
    macbook-de-9ae6:zebra ae6$ make all
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o bitbcnt.o bitbcnt.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o bitbmob.o bitbmob.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o bitboard.o bitboard.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o bitbtest.o bitbtest.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o cntflip.o cntflip.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o counter.o counter.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o display.o display.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o doflip.o doflip.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o end.o end.c
    end.c: In function ‘end_game’:
    end.c:1949: warning: ‘book_eval_info.is_book’ may be used uninitialized in this function
    end.c:1949: warning: ‘book_eval_info.search_depth’ may be used uninitialized in this function
    end.c:1949: warning: ‘book_eval_info.confidence’ may be used uninitialized in this function
    end.c:1949: warning: ‘book_eval_info.score’ may be used uninitialized in this function
    end.c:1949: warning: ‘book_eval_info.type’ may be used uninitialized in this function
    end.c:1949: warning: ‘book_eval_info.res’ may be used uninitialized in this function
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o epcstat.o epcstat.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o error.o error.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o eval.o eval.c
    gcc -O4 -s -fomit-frame-pointer -mtune=generic -falign-functions=32 -Wall -Wcast-align -Wwrite-strings -Wstrict-prototypes -Winline -DINCLUDE_BOOKTOOL -DTEXT_BASED -DZLIB_STATIC -c -o game.o game.c
    game.c:20:17: error: dir.h: No such file or directory
    game.c: In function ‘global_setup’:
    game.c:145: warning: implicit declaration of function ‘getcwd’
    make: *** [game.o] Error 1
    macbook-de-9ae6:zebra ae6$



    Voilà toujours perdu ^^

Discussions similaires

  1. Qualification de la France pour la coupe du Monde
    Par Jon Shannow dans le forum Politique
    Réponses: 26
    Dernier message: 10/12/2013, 12h37
  2. recherche filtre enati vuvuzela pour la coupe du monde 2010
    Par ZashOne dans le forum Humour Informatique
    Réponses: 17
    Dernier message: 25/06/2010, 00h12
  3. Compiler pour msdos(5-6)
    Par jalfonsi dans le forum Choisir un environnement de développement
    Réponses: 3
    Dernier message: 05/04/2004, 22h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo