summaryrefslogtreecommitdiff
path: root/misc/mbuffer/files/extra-patch-12.3
blob: c60d49818579af17d0ed879627bdc9690fd0ed80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
- cc(1) crashes with "-g" on FreeBSD 12.3-RELEASE aarch64

  cc: error: unable to execute command: Abort trap (core dumped)
  cc: error: clang frontend command failed due to signal (use -v to see invocation)
  FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
  Target: aarch64-unknown-freebsd12.3
  Thread model: posix
  InstalledDir: /usr/bin
  cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
  cc: note: diagnostic msg:
  ********************

  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
  Preprocessed source(s) and associated run script(s) are located at:
  cc: note: diagnostic msg: /tmp/idev-47a323.c
  cc: note: diagnostic msg: /tmp/idev-47a323.sh
  cc: note: diagnostic msg:

  ********************
  gmake[1]: *** [Makefile:197: idev.so] Error 254
  gmake[1]: Leaving directory '/usr/ports/misc/mbuffer/work/mbuffer-20211018'

- llvm-objdump(1) does not support "-T" on FreeBSD 12.3-RELEASE aarch64

--- Makefile.in.orig	2022-05-14 11:38:27 UTC
+++ Makefile.in
@@ -194,7 +194,7 @@ tapetest.so: tapetest.c config.h
 	$(CC) $(CFLAGS) -shared -fPIC tapetest.c -o $@ $(LIBS)
 
 idev.so: idev.c config.h
-	$(CC) $(CFLAGS) -shared -g -fPIC idev.c -o $@ $(LIBS)
+	$(CC) $(CFLAGS) -shared -fPIC idev.c -o $@ $(LIBS)
 
 $(DEPS): | build
 
--- configure.in.orig	2022-05-14 11:37:04 UTC
+++ configure.in
@@ -173,19 +173,19 @@ else
 	]])],[
 	AC_MSG_RESULT([OK])
 	AC_MSG_CHECKING([name of open() in C library])
-	libc_open=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^open/ { print $NF }'`
+	libc_open=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^open/ { print $NF }'`
 	AC_DEFINE_UNQUOTED([LIBC_OPEN], $libc_open, [name of open() in libc])
 	AC_MSG_RESULT($libc_open)
 	AC_MSG_CHECKING([name of read() in C library])
-	libc_read=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^read/ { print $NF }'`
+	libc_read=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^read/ { print $NF }'`
 	AC_DEFINE_UNQUOTED([LIBC_READ], $libc_read, [name of write() in libc])
 	AC_MSG_RESULT($libc_read)
 	AC_MSG_CHECKING([name of write() in C library])
-	libc_write=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^write/ { print $NF }'`
+	libc_write=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^write/ { print $NF }'`
 	AC_DEFINE_UNQUOTED([LIBC_WRITE], $libc_write, [name of write() in libc])
 	AC_MSG_RESULT($libc_write)
 	AC_MSG_CHECKING([name of fstat() in C library])
-	libc_fstat=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^_*fstat/ { print $NF }'`
+	libc_fstat=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^_*fstat/ { print $NF }'`
 	AC_DEFINE_UNQUOTED([LIBC_FSTAT], $libc_fstat, [name of fstat() in libc])
 	AC_MSG_RESULT($libc_fstat)
 	],