public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100847] New: M1 chip: many functions not declared in "std" or "::"
@ 2021-06-01 7:42 zihanwu7-c at my dot cityu.edu.hk
2021-06-01 8:14 ` [Bug c++/100847] " rguenth at gcc dot gnu.org
2021-06-01 19:30 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: zihanwu7-c at my dot cityu.edu.hk @ 2021-06-01 7:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100847
Bug ID: 100847
Summary: M1 chip: many functions not declared in "std" or "::"
Product: gcc
Version: 11.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zihanwu7-c at my dot cityu.edu.hk
Target Milestone: ---
Created attachment 50900
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50900&action=edit
terminal output
I use Apple M1 chip to run gcc.
The gcc is installed via home-brew(arm).
It can't compile even the "Hello World" cpp file.
Attachment is the result from:
g++-11 main.cpp -Wall -Wextra
g++-11 -v
and
g++-11 main.cpp -Wall -Wextra -nostdinc++
main.cpp includes <iostream> and uses namespace std.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/100847] M1 chip: many functions not declared in "std" or "::"
2021-06-01 7:42 [Bug c++/100847] New: M1 chip: many functions not declared in "std" or "::" zihanwu7-c at my dot cityu.edu.hk
@ 2021-06-01 8:14 ` rguenth at gcc dot gnu.org
2021-06-01 19:30 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100847
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |aarch64-darwin
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
sounds like an install issue to me - you're picking up Xcode libc++ headers
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/100847] M1 chip: many functions not declared in "std" or "::"
2021-06-01 7:42 [Bug c++/100847] New: M1 chip: many functions not declared in "std" or "::" zihanwu7-c at my dot cityu.edu.hk
2021-06-01 8:14 ` [Bug c++/100847] " rguenth at gcc dot gnu.org
@ 2021-06-01 19:30 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-01 19:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100847
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I was able to compile and test GCC myself with the following options:
apinski@Andrews-Mac-mini ~ % ~/upstream-gcc/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/Users/apinski/upstream-gcc/bin/gcc
COLLECT_LTO_WRAPPER=/Users/apinski/upstream-gcc/libexec/gcc/aarch64-apple-darwin20.4.0/11.0.1/lto-wrapper
Target: aarch64-apple-darwin20.4.0
Configured with: /Users/apinski/src/upstream-gcc-macosx/gcc/configure
--prefix=/Users/apinski/upstream-gcc
--with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.1 20210417 (experimental) (GCC)
apinski@Andrews-Mac-mini ~ % ~/upstream-gcc/bin/g++ t.c
apinski@Andrews-Mac-mini ~ % ./a.out
Hello World.
apinski@Andrews-Mac-mini ~ % cat t.c
#include <iostream>
int main(void)
{
std::cout << "Hello World.\n";
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-01 19:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 7:42 [Bug c++/100847] New: M1 chip: many functions not declared in "std" or "::" zihanwu7-c at my dot cityu.edu.hk
2021-06-01 8:14 ` [Bug c++/100847] " rguenth at gcc dot gnu.org
2021-06-01 19:30 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).