Page 1 of 1
[résolu] ubuntu build skd ndless : option --64 non reconnue

Posted:
22 Jun 2023, 20:56
by AngeDieu
Bonjour,
J'essaye de compiler le sdk de Ndless en suivant les instructions sur github:
https://github.com/ndless-nspire/Ndless/wiki/Ndless-SDK:-C-and-assembly-development-introduction,
j'en suis à l'execution du fichier .sh:
./build_toolchain.sh,
mais ça me met:
- Code: Select all
/home/benoit/Ndless/ndless-sdk/toolchain/install/arm-none-eabi/bin/as : l'option « --64 » n'a pas été reconnue
Voici une capture d'écran avec plus de contexte:
Sauriez-vous comment je peux résoudre ça ?
Merci beaucoup,
AngeDieu

/home/benoit/Images/Captures d’écran/Capture d’écran du 2023-06-22 19-28-16.png
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
22 Jun 2023, 21:20
by Adriweb
Tu essayes de builder ca sur quel type d'ordinateur et d'OS ? Ca supporte le 64 bit ? Et quelle est la version de ton compilateur ?
Par ailleurs, un log plus complet serait utile, la on ne voit pas tout...
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
23 Jun 2023, 10:50
by AngeDieu
Je compile sur Ubuntu 20.04.2 LTS 64 bits. Gcc, g++ sont à la version 11.3.0 et gdb 12.1 ; ce sont les dernières versions (j'ai fait apt update / upgrade).
J'ai mis tout l'output dans un fichier texte car il est très long (3233 liggnes) et en photo toute la dernière fenêtre.

Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
23 Jun 2023, 10:52
by Adriweb
He bien c'est tres bizarre, ca a toujours fonctionne, notamment en CI sur ubuntu 20.04 et 22.04...
https://github.com/ndless-nspire/Ndless ... s/main.ymlJ'ai informe Vogtinator de ce topic
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
24 Jun 2023, 15:21
by Vogtinator
It looks like g++
(host compiler) tries to run /home/benoit/Ndless/ndless-sdk/toolchain/install/arm-none-eabi/bin
(the assembler from the cross toolchain).
I guess you have $PATH set incorrectly and it contains /home/benoit/Ndless/ndless-sdk/toolchain/install/arm-none-eabi/bin
. The arm-none-eabi/
part at the end is wrong, it has to be just /home/benoit/Ndless/ndless-sdk/toolchain/install/bin
.
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
25 Jun 2023, 19:05
by AngeDieu
My path is the good one, with toolchain/install/bin.
If it can help, the echo $? command returns 2.
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
25 Jun 2023, 19:13
by Vogtinator
What's the output of which g++
and which as
?
Can you show the full $PATH?
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
26 Jun 2023, 14:19
by AngeDieu
g++ and as are in /usr/bin/g++ and /usr/bin/as.
My path is
- Code: Select all
.:/home/benoit/emsdk:/home/benoit/emsdk/upstream/emscripten:/opt/devkitpro/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/benoit/.local/share/JetBrains/Toolbox/scripts:/opt/android-sdk/tools/:/opt/android-sdk/platform-tools/:/home/benoit/.local/bin:/home/benoit/Ndless/ndless-sdk/toolchain/install/bin:/home/benoit/Ndless/ndless-sdk/bin
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
26 Jun 2023, 18:55
by Vogtinator
AngeDieu wrote:g++ and as are in /usr/bin/g++ and /usr/bin/as.
My path is
- Code: Select all
.:/home/benoit/emsdk:/home/benoit/emsdk/upstream/emscripten:/opt/devkitpro/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/benoit/.local/share/JetBrains/Toolbox/scripts:/opt/android-sdk/tools/:/opt/android-sdk/platform-tools/:/home/benoit/.local/bin:/home/benoit/Ndless/ndless-sdk/toolchain/install/bin:/home/benoit/Ndless/ndless-sdk/bin
Your path starts with
.
, which is really not a good idea and will break stuff.
Please try with a minimal path like
- Code: Select all
/usr/sbin:/usr/bin:/sbin:/bin:/home/benoit/Ndless/ndless-sdk/toolchain/install/bin:/home/benoit/Ndless/ndless-sdk/bin
Re: ubuntu build du skd ndless : option --64 non reconnue

Posted:
27 Jun 2023, 10:14
by AngeDieu
It worked !
Thanks a lot Vogtinator.
AngeDieu