Skip to content

Instantly share code, notes, and snippets.

@glitsj16
Created March 21, 2024 13:53
Show Gist options
  • Save glitsj16/858190eb5c46948d74a723dd236ecfde to your computer and use it in GitHub Desktop.
Save glitsj16/858190eb5c46948d74a723dd236ecfde to your computer and use it in GitHub Desktop.
# pacman 6.1 LDFLAGS break the build due to the extra '-Wl's
#LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
# -Wl,-z,pack-relative-relocs"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,pack-relative-relocs"
$ makechrootpkg -- -rs
...
Checking for ffmpeg/libavcodec/allcodecs.c ... not found
Checking for ffmpeg/libavcodec/hwaccels.h ... not found
Checking for ffmpeg/libavformat/allformats.c ... not found
Checking for ffmpeg/libavcodec/bitsteram_filters.c ... not found
Checking for ffmpeg/libavcodec/cbs_internal.h ... not found
Checking for ffmpeg/libavformat/protocols.c ... not found
Checking for ffmpeg/libavfilter/allfilters.c ... not found
Checking for cc version ... 13.2.1
Checking for working compiler ...
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .
Check "config.log" if you do not understand why it failed.
==> ERROR: A failure occurred in build().
Aborting...
$ cat config.log
configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-libdv --disable-musepack --disable-esd --disable-mga --disable-ass-internal --disable-cdparanoia --disable-ffmpeg_a --enable-xvmc --enable-radio --enable-radio-capture --enable-smb --language=all --confdir=/etc/mplayer --extra-cflags=-march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer --extra-ldflags=-Wl,-O1 -Wl -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs
============ Checking for ffmpeg/libavcodec/allcodecs.c ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavcodec/hwaccels.h ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavformat/allformats.c ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavcodec/bitsteram_filters.c ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavcodec/cbs_internal.h ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavformat/protocols.c ============
Result is: not found
##########################################
============ Checking for ffmpeg/libavfilter/allfilters.c ============
Result is: not found
##########################################
============ Checking for cc version ============
Result is: 13.2.1
##########################################
#if !(defined(__MINGW32__))
#error condition not true: defined(__MINGW32__)
#endif
int main(void) { return 0; }
cc -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer /tmp/mplayer-configure-6083-3235/tmp.c -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-O1 -Wl -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -o /tmp/mplayer-configure-6083-3235/tmp
cc: error: unrecognized command-line option '-Wl'; did you mean '-W'?
============ Checking for working compiler ============
int main(void) { return 0; }
cc -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer /tmp/mplayer-configure-6083-3235/tmp.c -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-O1 -Wl -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -o /tmp/mplayer-configure-6083-3235/tmp
cc: error: unrecognized command-line option '-Wl'; did you mean '-W'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment