Author Topic: gcc appears on build log but does nothing - command line works fine  (Read 2632 times)

Offline Krakel

  • Single posting newcomer
  • *
  • Posts: 3
I am running Code::Blocks version 17.12-4 on ArchLinux
(Rolling Release). The compiler I use is GNU Compiler
version 8.2.1

When I try to build any program the build fails, cause g++ doesn't find the .o-files

Build log:
Code

-------------- Clean: Debug in tuto-debogeur (compiler: GNU GCC Compiler)---------------

Cleaned "tuto-debogeur - Debug"

-------------- Build: Debug in tuto-debogeur (compiler: GNU GCC Compiler)---------------

gcc -Wall -pedantic-errors -g -pedantic-errors  -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/carre.c -o obj/Debug/carre.o
gcc -Wall -pedantic-errors -g -pedantic-errors  -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c -o obj/Debug/main.o
g++  -o bin/Debug/tuto-debogeur obj/Debug/carre.o obj/Debug/main.o   
g++: Fehler: obj/Debug/carre.o: Datei oder Verzeichnis nicht gefunden
g++: Fehler: obj/Debug/main.o: Datei oder Verzeichnis nicht gefunden
g++: schwerwiegender Fehler: keine Eingabedateien
Kompilierung beendet.
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

Sorry for the German. "Datei oder Verzeichnis nicht gefunden" = "Did not find file or repository"; "schwerwiegender Fehler : keine Eingabedateien" = " fatal error : no input files"; "Kompilierung beendet" = "End of Compilation"

I have already tried
-build the project in the console: This showed me Warnings, but it worked.
-Change read/write permissions
-Build other projects
-use the absolute paths

 but none of them worked in Code::Blocks.

I never build something on this computer successfully before.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: gcc appears on build log but does nothing - command line works fine
« Reply #1 on: September 27, 2018, 08:10:27 pm »
Do you have g++ installed?
What happens if you execute the commands from the log in a terminal?
What happens if you place the project in a path without special characters?

BTW: C::B cannot work with a localized compiler, because it parses error message from the log and your message doesn't match what is expected.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Krakel

  • Single posting newcomer
  • *
  • Posts: 3
Re: gcc appears on build log but does nothing - command line works fine
« Reply #2 on: September 27, 2018, 08:36:41 pm »
tl;dr : works in a path without special characters

g++ is installed.
In a terminal:
Code
ixoliuspc% gcc -Wall -pedantic-errors -g -pedantic-errors  -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/carre.c -o obj/Debug/carre.o
ixoliuspc% gcc -Wall -pedantic-errors -g -pedantic-errors  -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c -o obj/Debug/main.o
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c: In Funktion »main«:
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c:28:41: Warnung: Format »%f« erwartet Argumenttyp »double«, aber Argument 2 hat Typ »int« [-Wformat=]
     printf("La somme des valeurs est : %f , N(N+1)/2 = %f \n", som, n*(n+1)/2);
                                        ~^                      ~~~
                                        %d
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c:28:57: Warnung: Format »%f« erwartet Argumenttyp »double«, aber Argument 3 hat Typ »int« [-Wformat=]
     printf("La somme des valeurs est : %f , N(N+1)/2 = %f \n", som, n*(n+1)/2);
                                                        ~^           ~~~~~~~~~
                                                        %d
ixoliuspc% g++  -o bin/Debug/tuto-debogeur obj/Debug/carre.o obj/Debug/main.o
ixoliuspc% g++ --version
g++ (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.

ixoliuspc%
If I place it in a place without special characters, Code::Blocks works as expected.


Does this count as a bug? Should I report it? Should it be added to a wiki page?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: gcc appears on build log but does nothing - command line works fine
« Reply #3 on: September 28, 2018, 11:34:55 am »
It is present in the wiki already - check the various FAQ entries.

It theory it should work. Post an issue on the ticket page in sf.net and I'll look at it.
Make sure to post your locale. Also post a link to this topic.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]