Bug 1241130
Summary: | arm-none-eabi-gcc-cs-c++ - missing libraries and include files | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | dr-ru |
Component: | arm-none-eabi-gcc-cs | Assignee: | Michal Hlavinka <mhlavink> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | atu, mhlavink |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.2.0-2.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-24 05:13:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
dr-ru
2015-07-08 14:08:14 UTC
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. |