No possible to compile source that use standard headers like cstdlib, cstdint and etc. Version-Release number of selected component (if applicable): arm-none-eabi-gcc-cs-c++-4.9.2-3.fc22.x86_64.rpm arm-none-eabi-binutils-cs-2014.05.28-3.fc22.x86_64.rpm arm-none-eabi-newlib-2.2.0_1-1.fc22.noarch.rpm arm-none-eabi-gdb-7.6.2-2.fc22.x86_64.rpm arm-none-eabi-gcc-cs-4.9.2-3.fc22.x86_64.rpm How reproducible: Just compile any file that use standard C++ include files like this: #include <cstdlib.h> int main(int argc, char* argv[]) { return 0; } Steps to Reproduce: 1. arm-none-eabi-g++ main.cpp Actual results: $ arm-none-eabi-g++ main.cpp main.cpp:1:21: fatal error: cstdlib.h: No such file or directory #include <cstdlib.h> ^ compilation terminated. Expected results: Success compilation
AFAIK, cstdlib.h in not a part of standard C or C++ library. 3 way to resolve: 1: use C approach: #inclide <stdlib.h> 2: use C++ approach: #inclide <cstdlib> (+ using namespace std if required) 3: port boost to arm-none.... I found more strange bug: This package is compiled in bootstrap mode and used only to solve circular build dependency. You don't want to use this package. It's not expected to work. But is was after F23 mass rebuild!
(In reply to Anton Guda from comment #1) > AFAIK, cstdlib.h in not a part of standard C or C++ library. > 3 way to resolve: > 1: use C approach: #inclide <stdlib.h> > 2: use C++ approach: #inclide <cstdlib> (+ using namespace std if required) > 3: port boost to arm-none.... > > I found more strange bug: > This package is compiled in bootstrap mode and used only to solve circular > build dependency. You don't want to use this package. It's not expected to > work. > > But is was after F23 mass rebuild! Adding <cstdlib> instead of <cstdlib.h> has no effect on compilation: main.cpp:1:19: fatal error: cstdlib: No such file or directory #include <cstdlib> ^ compilation terminated. This is due to the fact that the g++ is installed without any include files...
(In reply to dr-ru from comment #2) > (In reply to Anton Guda from comment #1) > > AFAIK, cstdlib.h in not a part of standard C or C++ library. > > 3 way to resolve: > > 1: use C approach: #inclide <stdlib.h> > > 2: use C++ approach: #inclide <cstdlib> (+ using namespace std if required) > > 3: port boost to arm-none.... > > > > I found more strange bug: > > This package is compiled in bootstrap mode and used only to solve circular > > build dependency. You don't want to use this package. It's not expected to > > work. > > > > But is was after F23 mass rebuild! > > Adding <cstdlib> instead of <cstdlib.h> has no effect on compilation: > main.cpp:1:19: fatal error: cstdlib: No such file or directory > #include <cstdlib> > ^ > compilation terminated. > > This is due to the fact that the g++ is installed without any include > files... Also, this package installed without libraries: #arm-none-eabi-g++ main.cpp /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status main.cpp: #include <stdlib.h> int main(int argc, char* argv[]) { return 0; }
arm-none-eabi-gcc-cs-5.2.0-2.fc23 arm-none-eabi-newlib-2.2.0_1-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15077
arm-none-eabi-gcc-cs-5.2.0-2.fc21, arm-none-eabi-newlib-2.2.0_1-6.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15075
arm-none-eabi-gcc-cs-5.2.0-2.fc22, arm-none-eabi-newlib-2.2.0_1-6.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15076
arm-none-eabi-gcc-cs-5.2.0-2.fc23, arm-none-eabi-newlib-2.2.0_1-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15077
It works for me! At least all examples from my library (https://github.com/atu-guda/stm32oxc) rebuilds without problems.
arm-none-eabi-gcc-cs-5.2.0-2.fc23, arm-none-eabi-newlib-2.2.0_1-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
arm-none-eabi-gcc-cs-5.2.0-2.fc22, arm-none-eabi-newlib-2.2.0_1-6.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
arm-none-eabi-gcc-cs-5.2.0-2.fc21, arm-none-eabi-newlib-2.2.0_1-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.