Merge ~kzapalowicz/snappy-hwe-snaps/+git/pulseaudio:feature/add-fomit-fpointer-to-pa-cflags into ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:pulseaudio/8.0

Proposed by Konrad Zapałowicz
Status: Merged
Approved by: Simon Fels
Approved revision: 7a93b33f48918e8e679fb9189011366e4972233b
Merged at revision: eb8c19c4711835f26b8dba0a459b2587ef3253ad
Proposed branch: ~kzapalowicz/snappy-hwe-snaps/+git/pulseaudio:feature/add-fomit-fpointer-to-pa-cflags
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:pulseaudio/8.0
Diff against target: 13 lines (+1/-1)
1 file modified
configure.ac (+1/-1)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Needs Fixing
Simon Fels Approve
Alfonso Sanchez-Beato Approve
Review via email: mp+313657@code.launchpad.net

Commit message

Fix build issue on armhf

GCC uses r7 as the frame pointer under ARM. When this register is also
used in the code then there is conflict. The -fomit-frame-pointer cflag
makes sure that the frame pointer is not used.

Description of the change

Fix build issue on armhf

GCC uses r7 as the frame pointer under ARM. When this register is also
used in the code then there is conflict. The -fomit-frame-pointer cflag
makes sure that the frame pointer is not used.

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I am curious about when the logic using r7 was added. Also, is this flag used upstream?

Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

It has been there all the time, there are no recent commits to pulseaudio source that we maintain on our side. I suspect that it has been triggered by the change in the infrastructure. Could be one of the following:
 - gcc-armhf version changed
 - snapcraft update which figures out the cflags differently now

However I do not know for sure, have not been running a query ysterday to find out what has changed.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@Konrad, makes sense, I guess the defaults for the compiler have changed. Which is actually nice, that makes getting backtraces possible even without having all the debugging info. But of course in this case we have to disable it...

review: Approve
Revision history for this message
Simon Fels (morphis) :
review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/configure.ac b/configure.ac
index 9250c05..f8e7673 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,7 +177,7 @@ esac
177#### Compiler flags ####177#### Compiler flags ####
178178
179AX_APPEND_COMPILE_FLAGS(179AX_APPEND_COMPILE_FLAGS(
180 [-Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto],180 [-Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto -fomit-frame-pointer],
181 [], [-pedantic -Werror])181 [], [-pedantic -Werror])
182182
183AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [183AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [

Subscribers

People subscribed via source and target branches