[Bug c++/65255] std::thread does not work for cross compiling on ARM

2017-01-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #10 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #8) > I have a patch for std::thread which would mean it doesn't use shared_ptr, > so this wouldn't be a problem even if you don't use the same arm version. This

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-08-11 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 Yichao Yu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-08-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #8 from Jonathan Wakely --- I have a patch for std::thread which would mean it doesn't use shared_ptr, so this wouldn't be a problem even if you don't use the same arm version.

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-08-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #7 from Jonathan Wakely --- It's supported fine, but you need to compile your code that uses std::thread so it is compatible with the libstdc++.so library you link to. If libstdc++ is compiled to use atomic operations in shared_ptr t

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-08-11 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #6 from Yichao Yu --- Adding `-march=armv7-a` indeed fixes the issue. Thanks. Does this mean that `std::thread` is not supported on armv6? Would be nice to have a warning/error if it is possible to detect this. FWIW, `clang -march=a

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-08-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #5 from Andrew Pinski --- arm-* defaults to earlier arm than v7 which does not have atomics in the ISA. Your native compiler most likely defaulted to armv7 which uses the atomic instructions directly. Can you provide the output of g

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-02-28 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #4 from Yichao Yu --- Created attachment 34905 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34905&action=edit config.log of a more recent snapshot

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-02-28 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #3 from Yichao Yu --- I didn't keep the config.log file used to compile the gcc I used to compile the binary attached but here's the config.log of a slightly later snapshot (20150204, which is the same used for the arm native compiler

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-02-28 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #2 from Yichao Yu --- ARM environment is ArchLinuxARM (armv7h)[1] on a Xilinx Zynq 0702 Eval board which has a dual-core Cortex-a9 processor. [1] http://archlinuxarm.org/packages

[Bug c++/65255] std::thread does not work for cross compiling on ARM

2015-02-28 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255 --- Comment #1 from Yichao Yu --- Created attachment 34904 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34904&action=edit Source and output programs