You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cross compiling for armhf gives me a ton of "parameter passing for argument of type ... changed in GCC 7.1" messages and fails the build (which has no errors/warnings in x86)
#4151
I am trying to build a simple server app targeting embedded (armhf, being a SOCFPGA target).
I tried using both GCC 7.4.1 (preferred) and GCC 11.4.0 (newest) from the Linaro toolchains.
Everything works fine if I target Linux x86.
When I switch to the ARM toolchains, it fails to build the Utils library.
I am rather unfamiliar with that error and struggling in looking for an answer online.
"parameter passing for argument of type ... changed in GCC 7.1"
It seems a rather common ARM relates conformance warning.
I disabled the warning by adding add_compile_options(-Wno-psabi)
to my CMake.
This builds everything with no warning and no errors using the GCC 11.4.0 arm-linux-gnueabihf compilers.
The build fails (especially for the Poco::Util (libPocoUtild.a) library) using the GCC 7.4.1 arm-linux-gnueabihf compilers.
Sweeping things under the rug does not make me feel great.
I was wondering if someone with more knowledge of the matter has some better way to do this cleanly.
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to build a simple server app targeting embedded (armhf, being a SOCFPGA target).
I tried using both GCC 7.4.1 (preferred) and GCC 11.4.0 (newest) from the Linaro toolchains.
Everything works fine if I target Linux x86.
When I switch to the ARM toolchains, it fails to build the Utils library.
I am rather unfamiliar with that error and struggling in looking for an answer online.
"parameter passing for argument of type ... changed in GCC 7.1"
It seems a rather common ARM relates conformance warning.
I disabled the warning by adding
add_compile_options(-Wno-psabi)
to my CMake.
This builds everything with no warning and no errors using the GCC 11.4.0 arm-linux-gnueabihf compilers.
The build fails (especially for the
Poco::Util
(libPocoUtild.a) library) using the GCC 7.4.1 arm-linux-gnueabihf compilers.Sweeping things under the rug does not make me feel great.
I was wondering if someone with more knowledge of the matter has some better way to do this cleanly.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions