Gcc fatal error no input files compilation terminated

I am trying to compile and run a simple hello world c++ code. g++ says no input files: g++: fatal error: no input files compilation terminated. It seems that the g++ is not running in the same dire...

@Haghrah

I am trying to compile and run a simple hello world c++ code. g++ says no input files:

g++: fatal error: no input files
compilation terminated.

It seems that the g++ is not running in the same directory which c++ file is placed or maybe file path is not correct in compilation command. How to solve the problem?

@Godsgrav3

hi @Haghrah Do you still have this issue? If so check if g++ is in your PATH variables by opening CMD and entering the following: «gcc —version» and «g++ —version». if you do not see information check you my issue #132

@LiamInfoSec

I have the same problem when I run «g++ —version»;

g++ (MinGW.org GCC-8.2.0-3) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@michael-rishi

in my terminal i am trying to run a welcome.cpp file that’s code is

# include <iostream>
using namespace std;
int main()
{
cout >> «Hello What’s your name «
char name = «»
cin << name << endl
char msg = «Hello » + name + «. Nice to meet you!»
cout >> msg >> endl
cout >> «» >> endl
}

and when I type «g++ -o welcome.cpp» then enter this is what comes up

Screenshot from 2019-06-08 12-18-01

hamraniali, rebroad, alonsogalcantara, sarthakbhatkar1, khan-rehan, weolix, souvenger, Siddhant-K-code, and 01-Menjivar reacted with thumbs up emoji
jim4067, damaputraa, sarthakbhatkar1, khan-rehan, weolix, arjun-gn, ratan10, vikash232, bai62, SundiataB, and 6 more reacted with eyes emoji

@Godsgrav3

@rishiamalhotra

for one, your code will not compile, you have multiple fatal errors in your code.
#include <iostream> is not used, is necessary for cout.
cout doesn’t use >>, but <<
you miss ; in your code, c and c++ do need this to work.

addressing the fatal error.
You can compile and run it from the UNIX prompt as follows :
% g++ welcome.cpp
This creates an executable called «a.out». You can run it by typing
% ./a.out
Since no executable name was specified to g++, a.out is chosen by default. Use the «-o» option to change the name :
% g++ -o welcome welcome.cpp
creates an executable called «welcome».

@hg0428

@Kusumadhanush22

@teslayder

me the same and when I run code again it announce Code is already running!

@weolix

in my terminal i am trying to run a welcome.cpp file that’s code is

include

using namespace std;
int main()
{
cout >> «Hello What’s your name «
char name = «»
cin << name << endl
char msg = «Hello » + name + «. Nice to meet you!»
cout >> msg >> endl
cout >> «» >> endl
}

and when I type «g++ -o welcome.cpp» then enter this is what comes up

Screenshot from 2019-06-08 12-18-01

指令用错了,应该是

g++ welcome.cpp -o welcome

@weolix

I got the same mistake. That’s funny.

@adarsh-dhakad

@mar-tnk

Just go with «g++ -o welcome welcome.cpp»

@nishihere19

@rishiamalhotra

for one, your code will not compile, you have multiple fatal errors in your code.
#include <iostream> is not used, is necessary for cout.
cout doesn’t use >>, but <<
you miss ; in your code, c and c++ do need this to work.

addressing the fatal error.
You can compile and run it from the UNIX prompt as follows :
% g++ welcome.cpp
This creates an executable called «a.out». You can run it by typing
% ./a.out
Since no executable name was specified to g++, a.out is chosen by default. Use the «-o» option to change the name :
% g++ -o welcome welcome.cpp
creates an executable called «welcome».

Thanks a lot. My issue is solved now. The file is working for me now.

@mrxcrx

Don’t use name file with space, u must be used underline

@marco2942

@Abhinow-katore

Don’t use name file with space, u must be used underline

Thank you 👍My issue is solved now

@sid25j

I have the same issue

`#include
int main()
{
std::cout << «Hi» <<std::endl;
return 0;

}`

Screenshot from 2021-08-12 20-54-13
.

@weolix

«g++ -o target source.cpp»

@Colebie

I had the same problem, I was trying to compile had the same error, test to see if you have installed:-
~$ gcc —version
~$ g++ —version
~$ clang —version
~$ gdb —version
and set the path

@mohamedabdallah1996

make sure that the path of the file you are running not have any white spaces

@hoang1904

i have a same issue too
#include<stdio.h>
int soChuSo(int n){
if(n==0)
return 0;
return 1+soChuSo(n/10);
}

int tongChuSo(int n){
if(n>0)
return n%10+tongChuSo(n/10);
return 0;
}

int main(){
int n;
printf(«Nhap so nguyen n: «);
scanf(«%d»,&n);
printf(«So n co %d chu son»,soChuSo(n));
printf(«Tong cac chu so cua n la: %dn»,tongChuSo(n));
return 0;
}
image

@Rakib221

I have this issue too.
I have tried this command: g++ -std=c++11 -Wall -Wextra -pedantic-errors -o 4A.cpp
MY CODE:
#include
using namespace std;
void evenDivisible(int weight);
int main()
{
int watermelonWeight;
cout << «Enter water melon weight: » ;
cin >> watermelonWeight;
if (watermelonWeight >= 1 && watermelonWeight <= 100)
evenDivisible(watermelonWeight);
else
cout << «Please enter number in this range 1<=n>=100» << endl;
}

void evenDivisible(int weight)
{
if (weight > 2 && weight % 2 == 0)
cout << «Yes» << endl;
else
cout << «No» << endl;
}

@Shndigan

I think i solve the problem guys, check out if there is another MinGw64 folder installed in ur pc or not.
if there is then just delete it bcs system cant read 2 folder’s g++.exe file :) i hope that i solved your problems

@Jerry-autumn

The first aspect: First, the file contains are not written(#include ;#include ), and secondly «cout << «No» << endl;»should be written like «cout << «» << endl;»; if «string msg = «Hello » + name + «. Nice to meet you!»; 如果使用这个需要进行运算符重载;» operation requires operator overloading
The second aspect: the reason for the error may be the environment, check your gcc environment境

Question what has the Debugfoo.exe have to do with the failure to find input files!
You see I’ve built a small routine to test the Fibonacci equation (it’s used for random execution in some tape library testing). So. in eclipse I followed the advice given on setting the Project->Properties->Run/Debug Settings to Debug/Fibonacci.exe.
The clean went ok, the build project bit the dust with the «gcc.exe: fatal error: no input files compilation terminated.»

Plus a «java version «1.8.0_31»
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)». I am not sure what the deal is any suggestions would be greatly appreciated!

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Error while compiling & installing from source — SOLVED

Error while compiling & installing from source — SOLVED

Post by Makrand » Mon Oct 29, 2018 6:18 am

I hit a bug #227 in rdesktop 3.18 (latest stable available in the repo)

So I decided to install the latest under development version from git. After GIT clone etc, while doing ./cofigure, I hit below

/Music$ gcc hello.c
hello.c:1:10: fatal error: stdio.h: No such file or directory
#include
^

compilation terminated.
makrand@mint-gl63:

/Music$ gcc -o hello hello.c
hello.c:1:10: fatal error: stdio.h: No such file or directory
#include
^

I am not into development but seems like the compiler isn’t working. I am not what to do now. Any ideas?

I am on Min 19 -XFCE

EDIT 1 —
Now Stuck with error mentioned here — viewtopic.php?p=1545755#p1545793

Re: Error while compiling & installing from source

Post by catweazel » Mon Oct 29, 2018 6:22 am

Re: Error while compiling & installing from source

Post by Makrand » Mon Oct 29, 2018 6:38 am

Nope. What does that package do? (Last time when I tried compiling and installing Netatalk (apple fileserver) on OpenSUSE minimal, things just worked out of the box).

Will give it a shot.

Re: Error while compiling & installing from source

Post by Makrand » Mon Oct 29, 2018 7:52 am

Yep. build-essential helped. Looks like this package put in place all the essential stuff needed for compiling and build

there were some errors, missing packages after that. Tackled those. Now its stuck at this

checking for OpenSSL directory. /usr
checking for pkg-config. (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0. yes
checking for XRANDR. no
checking for XCURSOR. no

rdesktop requires libXcursor, install the dependency

Источник

CMake ошибка в CMakeLists.txt: 30 (проект): CMAKE_C_COMPILER не найден

Я пытаюсь создать решение Visual Studio с CMake для компиляции последней версии aseprite, и CMake продолжает давать мне:

Я уже скачал GCC, и я использую Visual Studio 2015 .

Я следую этому уроку:

Решение

Эти сообщения об ошибках

просто имейте в виду, что CMake не смог найти ваш компилятор C / CXX для компиляции простой тестовой программы (одна из первых вещей, которые CMake пытается обнаружить при сборке вашей среды сборки).

Действия по поиску вашей проблемы зависят от среды сборки, которую вы хотите сгенерировать. Следующие руководства представляют собой набор ответов здесь о переполнении стека и некоторые из моих собственных опытов с CMake в Microsoft Windows 7/8/10 и Ubuntu 14.04.

Предпосылками

  • Вы установили компилятор / IDE, и он смог однажды скомпилировать любую другую программу (напрямую без CMake)
    • Вы, например, может иметь IDE, но, возможно, не установил компилятор или саму платформу поддержки, как описано в Проблемы генерации решения для VS 2017 с CMake или же Как мне сказать CMake использовать Clang в Windows?
  • У вас последняя CMake версия
  • У вас есть права доступа к диску, который вы хотите, чтобы CMake генерировал вашу среду сборки

    У вас есть чистый каталог сборки (потому что CMake выполняет кеширование с последней попытки), например как подкаталог вашего исходного дерева

    Windows cmd.exe

    Баш оболочка

    и убедитесь, что ваша командная оболочка указывает на ваш недавно созданный двоичный каталог вывода.

    Общие вещи, которые вы можете / должны попробовать

    Может ли CMake найти и запустить с любым / вашим компилятором по умолчанию? Беги без генератора

    Идеально, если он правильно определил генератор для использования — как здесь Visual Studio 14 2015

    Что же на самом деле не удалось?

    В выходной директории предыдущей сборки посмотрите на CMakeFilesCMakeError.log для любого сообщения об ошибке, которое имеет смысл для вас, или попробуйте открыть / скомпилировать тестовый проект, сгенерированный в CMakeFiles[Version]CompilerIdC | CompilerIdCXX непосредственно из командной строки (как указано в журнале ошибок).

    CMake не может найти Visual Studio

    Попробуйте выбрать правильный версия генератора :

    Если это не помогает, попробуйте сначала установить переменные среды Visual Studio (путь может отличаться):

    или используйте Developer Command Prompt for VS2015 ярлык в меню Пуск Windows под All Programs / Visual Studio 2015 / Visual Studio Tools (спасибо в @Antwane за подсказку).

    Фон: CMake поддерживает все выпуски и версии Visual Studio (Express, Community, Professional, Premium, Test, Team, Enterprise, Ultimate и т. Д.). Чтобы определить местоположение компилятора, он использует комбинацию поиска в реестре (например, в HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio[Version];InstallDir ), системные переменные окружения и — если никто из них ничего не придумал — попробуйте вызвать компилятор.

    CMake не может найти GCC (MinGW / MSys)

    Вы начинаете MSys bash оболочка с msys.bat и просто попробуйте позвонить напрямую gcc

    Здесь он нашел gcc и жалуется, что я не дал ему никаких параметров для работы.

    Поэтому должно работать следующее:

    Если GCC не был найден, позвоните export PATH=. чтобы добавить путь к компилятору (см. Как установить переменную среды PATH в скрипте CMake? ) и попробуй еще раз.

    Если это все еще не работает, попробуйте установить CXX путь к компилятору напрямую путем его экспорта (путь может отличаться)

    Для более подробной информации смотрите Как указать новый путь GCC для CMake

    Заметка: При использовании генератора «MinGW Makefiles» вы должны использовать mingw32-make программа распространяется с MinGW

    До сих пор не работает? Это странно. Пожалуйста, убедитесь, что компилятор есть и имеет права на выполнение (см. Также главу «Предварительные условия» выше).

    В противном случае последнее средство CMake — не пытаться выполнять поиск самого компилятора и устанавливать внутренние переменные CMake напрямую

    В качестве альтернативы эти переменные также могут быть установлены через cmake-gui.exe на винде. Увидеть Cmake не может найти компилятор

    Фон: Почти так же, как с Visual Studio. CMake поддерживает все виды GCC. Он ищет переменные окружения (CC, CXX и т. Д.) Или просто пытается вызвать компилятор. Кроме того, он обнаружит любые префиксы (когда кросскомпилируете ) и пытается добавить его ко всем binutils из цепочки компиляторов GNU ( ar , ranlib , strip , ld , nm , objdump , а также objcopy ).

    Другие решения

    Я также испытал эту ошибку при работе с CMake:

    Поле «Предупреждение» в статье библиотеки MSDN Visual C ++ в Visual Studio 2015 дал мне помощь, в которой я нуждался.

    Visual Studio 2015 не поставляется с C ++, установленным по умолчанию. Итак, создание нового проекта C ++ предложит вам загрузить необходимые компоненты C ++.

    Это случилось со мной после того, как я установил Visual Studio 15 2017.

    Компилятор C ++ для Visual Studio 14 2015 не был проблемой. Казалось, проблема с Windows 10 SDK.

    Добавление Windows 10 SDK в Visual Studio 14 2015 решило проблему для меня.

    Смотрите прикрепленный скриншот.

    Я столкнулся с этой проблемой при сборке libgit2-0.23.4. Для меня проблема была в том, что компилятор C ++ & связанные пакеты не были установлены с VS2015, поэтому «C: Program Files (x86) Microsoft Visual Studio 14.0 VC vcvarsall.bat» файл отсутствовал, и Cmake не смог найти компилятор.

    Я попытался вручную создать проект C ++ в графическом интерфейсе Visual Studio 2015 (C: Program Files (x86) Microsoft Visual Studio 14.0 Common7 IDE devenv.exe)
    и при создании проекта я получил приглашение загрузить C ++ & связанные пакеты.

    После загрузки необходимых пакетов я увидел vcvarsall.bat & Cmake смог найти компилятор & успешно выполнен со следующим журналом:

    Для меня эта проблема исчезла в Windows, когда я переместил свой проект в более мелкий родительский каталог, то есть в:

    Я думаю, что источником проблемы было то, что MSBuild имеет ограничение длины пути к файлу до 260 символов. Это приводит к тому, что базовый тест компилятора, который выполняет CMake, создает проект под названием CompilerIdCXX.vcxproj потерпеть неудачу с ошибкой:

    C1083: Cannot open source file: ‘CMakeCXXCompilerId.cpp’

    потому что длина пути файла, например,

    C:UsersspencDesktop. MyProjectDirectorybuildCMakeFiles. CMakeCXXCompilerId.cpp

    превышает ограничение MAX_PATH.

    Затем CMake заключает, что компилятора CXX нет.

    У меня были такие же ошибки с CMake. В моем случае я использовал неправильную версию Visual Studio в начальном диалоге CMake, где мы должны выбрать компилятор Visual Studio.

    Затем я изменил его на «Visual Studio 11 2012», и все заработало. (У меня на компьютере установлена ​​версия Visual Studio Ultimate 2012). В общем, попробуйте ввести более старую версию Visual Studio в диалоговом окне начальной настройки CMake.

    Убедитесь, что вы выбрали правильную версию Visual Studio. Это сложнее, чем кажется, потому что Visual Studio 2015 на самом деле является Visual Studio 14, и аналогично Visual Studio 2012 — это Visual Studio 11. Я неправильно выбрал Visual Studio 15, то есть фактически Visual Studio 2017, когда установил 2015.

    Для Ubuntu, пожалуйста, установите следующие вещи:

    Источник

    Adblock
    detector

I wrote this simple line of code and saved it in a file called ‘ex.c’.
The code is the following (first line is purposely written wrong as it showed up different in the post):

"#include < stdio.h >

int lst[] = {6,3,7,9};

int main(){

  printf("Hellon");

  return 0;

}

I then wanted to compile it using the command gcc ex.c but I get an error saying «gcc: fatal error: no input files
compilation terminated.»

What am I doing wrong?
I use git bash and have installed both msys64 and MinGW to the C directory, aswell as add the gcc in my path enviorment.

Why is it not working?

Giovana Morais's user avatar

asked Aug 28, 2019 at 15:58

PCheck's user avatar

you should add the output executable name

gcc ex.c -o output and then you can execute your output file with /output.

all the other options are available in the gcc documentation

answered Aug 28, 2019 at 16:22

Giovana Morais's user avatar

13

The problem was that I had followed the instructions on the following page: https://github.com/is1200-example-projects/mcb32tools/releases/
But I had forgot the last step which is to download the .run file for msys, I did this and now it is working for MSYS2, Git Bash still not working, but one working is all I need!

STEPS I FORGOT (as taken from the link):

  • Download the .run-file for windows. Make sure you download the correct version.
    The x86_64 version is for 64 bit MSYS2 installation and the i686 version for a 32 bit MSYS2 installation.

  • Run the .run-file inside the MSYS2 environment (cd to containing directory, run with ./mcb32tools-*.run)»

answered Aug 28, 2019 at 19:03

PCheck's user avatar

PCheckPCheck

11 gold badge1 silver badge1 bronze badge

Hello,

I have a Qt project I have been working on in Qt creator for a little while now with no issues. However, for some reason I now get the error «no input files» every time I try to compile the project. I have tried cleaning the project, deleting the entire output folder structure, restarting Qt creator, and looking through the compiler output and the .pro file to see what the problem could possibly be but I am stumped. The odd thing is, I haven’t done anything out of the ordinary (edit, save, etc… files) to the project. Here is my full compiler output:

13:57:16: Running steps for project EngineersTerminal...
13:57:16: Configuration unchanged, skipping qmake step.
13:57:16: Starting: "C:QtToolsmingw530_32binmingw32-make.exe" -j8
C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/H321355/Local-Documents/Qt/build-EngineersTerminal-Desktop_Qt_5_11_2_MinGW_32bit-Debug'
gcc -c -fno-keep-inline-dllexport -g -Wall -W -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..EngineersTerminal -I. -I..EngineersTerminalframe -IC:Qt5.11.2mingw53_32include -IC:Qt5.11.2mingw53_32includeQtWidgets -IC:Qt5.11.2mingw53_32includeQtGui -IC:Qt5.11.2mingw53_32includeQtANGLE -IC:Qt5.11.2mingw53_32includeQtSerialPort -IC:Qt5.11.2mingw53_32includeQtQml -IC:Qt5.11.2mingw53_32includeQtNetwork -IC:Qt5.11.2mingw53_32includeQtCore -Idebug -I. -IC:Qt5.11.2mingw53_32mkspecswin32-g++  -o debug.o 

gcc: fatal error: no input files
compilation terminated.
Makefile.Debug:4884: recipe for target 'debug/.o' failed
mingw32-make[1]: Leaving directory 'C:/Users/H321355/Local-Documents/Qt/build-EngineersTerminal-Desktop_Qt_5_11_2_MinGW_32bit-Debug'
mingw32-make[1]: *** [debug/.o] Error 1
Makefile:36: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
13:57:19: The process "C:QtToolsmingw530_32binmingw32-make.exe" exited with code 2.
Error while building/deploying project EngineersTerminal (kit: Desktop Qt 5.11.2 MinGW 32bit)
When executing step "Make"
13:57:19: Elapsed time: 00:03.

And this is my .pro file:

#-------------------------------------------------
#
# Project created by QtCreator 2019-07-17T09:18:23
#
#-------------------------------------------------

QT       += core gui serialport qml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = EngineersTerminal
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

#This .pri includes headers and sources for a sub-section of the project's code
include(frame/frame.pri)

SOURCES += 
    aboutdialog.cpp 
    byteviewwidget.cpp 
    classifiedbyte.cpp 
    colorbuttonwidget.cpp 
    framelabelwidget.cpp 
    hextexteditwidget.cpp 
    labelformattingwidget.cpp 
    main.cpp 
    mainwindow.cpp 
    optionsdialog.cpp 
    sendwidget.cpp 
    terminalbyte.cpp 
    terminalbytelabel.cpp 
    terminalbytelabelmodel.cpp 
    terminalbytemodel.cpp 
    jsbytearraywrapper.cpp  
    terminalbyteproxymodel.cpp

HEADERS += 
    aboutdialog.h 
    byteviewwidget.h 
    classifiedbyte.h 
    colorbuttonwidget.h 
    framelabelwidget.h 
    hextexteditwidget.h 
    labelformattingwidget.h 
    mainwindow.h 
    optionsdialog.h 
    sendwidget.h 
    terminalbyte.h 
    terminalbytelabel.h 
    terminalbytelabelmodel.h 
    terminalbytemodel.h 
    jsbytearraywrapper.h  
    terminalbyteproxymodel.h

FORMS += 
        aboutdialog.ui 
        framelabelwidget.ui 
        labelformattingwidget.ui 
        mainwindow.ui 
        optionsdialog.ui 
        sendwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += 
    resources.qrc

Any ideas would be greatly appreciated.

Thanks!

I’m trying to build Linux From Scratch (LFS)
I’m just following this books https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html

I have this error after I run ./configure in eudev package

checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/sources/eudev-3.2.11':
configure: error: C compiler cannot create executables
See `config.log' for more details

Here is config.log
Update: (more detail)

root@lfs-host:/mnt/lfs/sources/eudev-3.2.11# cat ~/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by eudev configure 3.2.11, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --enable-manpages --disable-static

## --------- ##
## Platform. ##
## --------- ##

hostname = lfs-host
uname -m = x86_64
uname -r = 5.15.0-30-generic
uname -s = Linux
uname -v = #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /mnt/lfs/tools/bin/
PATH: /usr/bin/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3272: looking for aux files: config.guess config.sub ltmain.sh missing install-sh compile
configure:3285:  trying ./
configure:3314:   ./config.guess found
configure:3314:   ./config.sub found
configure:3314:   ./ltmain.sh found
configure:3314:   ./missing found
configure:3296:   ./install-sh found
configure:3314:   ./compile found
configure:3496: checking for gcc
configure:3528: result: /usr/bin/gcc
configure:3881: checking for C compiler version
configure:3890: /usr/bin/gcc --version >&5
gcc (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3901: $? = 0
configure:3890: /usr/bin/gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr LD=ld --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC)
configure:3901: $? = 0
configure:3890: /usr/bin/gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3890: /usr/bin/gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3890: /usr/bin/gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3921: checking whether the C compiler works
configure:3943: /usr/bin/gcc -O3 -Wall   conftest.c  >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/cc1: error while loading shared libraries: /usr/lib/libz.so.1: file too short
configure:3947: $? = 1
configure:3987: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "eudev"
| #define PACKAGE_TARNAME "eudev"
| #define PACKAGE_VERSION "3.2.11"
| #define PACKAGE_STRING "eudev 3.2.11"
| #define PACKAGE_BUGREPORT "https://github.com/gentoo/eudev/issues"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main (void)
| {
|
|   ;
|   return 0;
| }
configure:3992: error: in `/sources/eudev-3.2.11':
configure:3994: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_BLKID_CFLAGS_set=
ac_cv_env_BLKID_CFLAGS_value=
ac_cv_env_BLKID_LIBS_set=
ac_cv_env_BLKID_LIBS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O3 -Wall'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_KMOD_CFLAGS_set=
ac_cv_env_KMOD_CFLAGS_value=
ac_cv_env_KMOD_LIBS_set=
ac_cv_env_KMOD_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SELINUX_CFLAGS_set=
ac_cv_env_SELINUX_CFLAGS_value=
ac_cv_env_SELINUX_LIBS_set=
ac_cv_env_SELINUX_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=/usr/bin/gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
BLKID_CFLAGS=''
BLKID_LIBS=''
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-O3 -Wall'
CPP=''
CPPFLAGS=''
CSCOPE=''
CTAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_HWDB_FALSE=''
ENABLE_HWDB_TRUE=''
ENABLE_MANPAGES_FALSE=''
ENABLE_MANPAGES_TRUE=''
ENABLE_MTD_PROBE_FALSE=''
ENABLE_MTD_PROBE_TRUE=''
ENABLE_PROGRAMS_FALSE=''
ENABLE_PROGRAMS_TRUE=''
ENABLE_RULE_GENERATOR_FALSE=''
ENABLE_RULE_GENERATOR_TRUE=''
ETAGS=''
EXEEXT=''
FGREP=''
GPERF=''
GREP=''
HAVE_BLKID_FALSE=''
HAVE_BLKID_TRUE=''
HAVE_INTROSPECTION_FALSE=''
HAVE_INTROSPECTION_TRUE=''
HAVE_KMOD_FALSE=''
HAVE_KMOD_TRUE=''
HAVE_SELINUX_FALSE=''
HAVE_SELINUX_TRUE=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
INTROSPECTION_CFLAGS=''
INTROSPECTION_COMPILER=''
INTROSPECTION_GENERATE=''
INTROSPECTION_GIRDIR=''
INTROSPECTION_LIBS=''
INTROSPECTION_MAKEFILE=''
INTROSPECTION_SCANNER=''
INTROSPECTION_TYPELIBDIR=''
KMOD_CFLAGS=''
KMOD_LIBS=''
LD=''
LDFLAGS=''
LIBM=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
M4=''
MAKEINFO=''
MANIFEST_TOOL=''
MKDIR_P=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT='https://github.com/gentoo/eudev/issues'
PACKAGE_NAME='eudev'
PACKAGE_STRING='eudev 3.2.11'
PACKAGE_TARNAME='eudev'
PACKAGE_URL=''
PACKAGE_VERSION='3.2.11'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SELINUX_CFLAGS=''
SELINUX_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
UDEV_VERSION='243'
VERSION=''
ac_ct_AR=''
ac_ct_CC='/usr/bin/gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='/usr/sbin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
girdir=''
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfiglibdir=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootlibdir=''
rootlibexecdir=''
rootprefix=''
rootrundir=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sharepkgconfigdir=''
sushell=''
sysconfdir='/etc'
target_alias=''
typelibsdir=''
udevconfdir=''
udevconffile=''
udevhwdbbin=''
udevhwdbdir=''
udevkeymapdir=''
udevkeymapforceredir=''
udevlibexecdir=''
udevrulesdir=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "eudev"
#define PACKAGE_TARNAME "eudev"
#define PACKAGE_VERSION "3.2.11"
#define PACKAGE_STRING "eudev 3.2.11"
#define PACKAGE_BUGREPORT "https://github.com/gentoo/eudev/issues"
#define PACKAGE_URL ""

configure: exit 77
root@lfs-host:/mnt/lfs/sources/eudev-3.2.11#

This error is applied to all ./configure, not only for eudev

But I check gcc is working fine

(lfs chroot) root:/sources/eudev-3.2.11# gcc
gcc: fatal error: no input files
compilation terminated.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Gcc fatal error cannot execute cc1plus execvp no such file or directory
  • Gcc exec format error
  • Gcc exe internal error aborted program collect2
  • Gcc exe fatal error no input files
  • Gcc exe error obj debug main o no such file or directory

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии