[Bug target/105599] g++ by itself is not producing "fatal error: no input files" for darwin target

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 13 22:05:53 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105599

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target
           Keywords|                            |diagnostic
            Summary|g++ binary: undefined       |g++ by itself is not
                   |symbols _main referenced    |producing "fatal error: no
                   |from __start in crt1.0      |input files" for darwin
                   |                            |target
             Target|                            |x86_64-darwin*
           Severity|normal                      |trivial

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
On Linux this produces:
apinski@xeond:~/src/p4/octeontxkpu$ ~/upstream-gcc/bin/g++
g++: fatal error: no input files
compilation terminated.

So it is a darwin specific issue but it is a minor one as it is just a
diagnostic issue with invalid invocation anyways.


More information about the Gcc-bugs mailing list