Skip to content

Commit

Permalink
Ask libtool to stop hiding some errors
Browse files Browse the repository at this point in the history
For #13083, curiously, it did not print the actual error, just
that the compile failed with "Error 1".

In theory, this flag should cause it to report errors twice sometimes.
In practice, I'm pretty okay with reporting some twice if it avoids
reporting some never.

Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
  • Loading branch information
rincebrain committed Feb 15, 2022
1 parent 3819aaa commit dca349b
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/libavl/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ VPATH = $(top_srcdir)/module/avl/
# Includes kernel code, generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN)
AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libavl.la

Expand Down
4 changes: 4 additions & 0 deletions lib/libefi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ include $(top_srcdir)/config/Rules.am

AM_CFLAGS += $(LIBUUID_CFLAGS) $(ZLIB_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libefi.la

Expand Down
4 changes: 4 additions & 0 deletions lib/libicp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ VPATH = \

# Includes kernel code, generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN)
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libicp.la

Expand Down
4 changes: 4 additions & 0 deletions lib/libnvpair/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ VPATH = \
# and required CFLAGS for libtirpc
AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

lib_LTLIBRARIES = libnvpair.la

Expand Down
1 change: 1 addition & 0 deletions lib/libshare/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include $(top_srcdir)/config/Rules.am
DEFAULT_INCLUDES += -I$(srcdir)

AM_CFLAGS += -fvisibility=hidden
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libshare.la

Expand Down
5 changes: 5 additions & 0 deletions lib/libspl/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ include $(top_srcdir)/config/Rules.am

SUBDIRS = include

# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libspl_assert.la libspl.la

libspl_assert_la_SOURCES = \
Expand Down
4 changes: 4 additions & 0 deletions lib/libtpool/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
include $(top_srcdir)/config/Rules.am

AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libtpool.la

Expand Down
5 changes: 5 additions & 0 deletions lib/libunicode/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ VPATH = $(top_srcdir)/module/unicode
# Includes kernel code, generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN)

# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libunicode.la

KERNEL_C = \
Expand Down
5 changes: 5 additions & 0 deletions lib/libuutil/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
include $(top_srcdir)/config/Rules.am

# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

lib_LTLIBRARIES = libuutil.la

include $(top_srcdir)/config/Abigail.am
Expand Down
4 changes: 4 additions & 0 deletions lib/libzfs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ VPATH = \
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
AM_CFLAGS += $(LIBCRYPTO_CFLAGS) $(ZLIB_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

pkgconfig_DATA = libzfs.pc

Expand Down
4 changes: 4 additions & 0 deletions lib/libzfs_core/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ include $(top_srcdir)/config/Rules.am
pkgconfig_DATA = libzfs_core.pc

AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

lib_LTLIBRARIES = libzfs_core.la

Expand Down
4 changes: 4 additions & 0 deletions lib/libzfsbootenv/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ include $(top_srcdir)/config/Rules.am
pkgconfig_DATA = libzfsbootenv.pc

AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

lib_LTLIBRARIES = libzfsbootenv.la

Expand Down
5 changes: 5 additions & 0 deletions lib/libzpool/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ AM_CFLAGS += $(ZLIB_CFLAGS)

AM_CFLAGS += -DLIB_ZPOOL_BUILD

# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

lib_LTLIBRARIES = libzpool.la

USER_C = \
Expand Down
4 changes: 4 additions & 0 deletions lib/libzstd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ VPATH = $(top_srcdir)/module/zstd
# -fno-tree-vectorize is set for gcc in zstd/common/compiler.h
# Set it for other compilers, too.
AM_CFLAGS += -fno-tree-vectorize
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

noinst_LTLIBRARIES = libzstd.la

Expand Down
4 changes: 4 additions & 0 deletions lib/libzutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ include $(top_srcdir)/config/Rules.am
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
# This is a bad hack not consumed by the compiler but by
# the libtool wrapper, because otherwise it fails to emit
# errors generated by one compiler run and not the other.
AM_CFLAGS += -no-suppress

DEFAULT_INCLUDES += -I$(srcdir)

Expand Down

0 comments on commit dca349b

Please sign in to comment.