Advertisement
Guest User

Linux From Scratch Bash Error

a guest
Jun 18th, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.15 KB | None | 0 0
  1. lfs:/mnt/lfs/sources/bash-5.2.37$ ./configure --prefix=/usr \
  2. --build=$(sh support/config.guess) \
  3. --host=$LFS_TGT \
  4. --without-bash-malloc
  5. checking build system type... x86_64-pc-linux-gnu
  6. checking host system type... x86_64-lfs-linux-gnu
  7.  
  8. Beginning configuration for bash-5.2-release for x86_64-lfs-linux-gnu
  9.  
  10. checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
  11. checking whether the C compiler works... yes
  12. checking for C compiler default output file name... a.out
  13. checking for suffix of executables...
  14. checking whether we are cross compiling... yes
  15. checking for suffix of object files... o
  16. checking whether the compiler supports GNU C... yes
  17. checking whether x86_64-lfs-linux-gnu-gcc accepts -g... yes
  18. checking for x86_64-lfs-linux-gnu-gcc option to enable C11 features... none needed
  19. checking for stdio.h... yes
  20. checking for stdlib.h... yes
  21. checking for string.h... yes
  22. checking for inttypes.h... yes
  23. checking for stdint.h... yes
  24. checking for strings.h... yes
  25. checking for sys/stat.h... yes
  26. checking for sys/types.h... yes
  27. checking for unistd.h... yes
  28. checking for wchar.h... yes
  29. checking for minix/config.h... no
  30. checking for sys/param.h... yes
  31. checking for xlocale.h... no
  32. checking for sys/time.h... yes
  33. checking whether it is safe to define __EXTENSIONS__... yes
  34. checking whether _XOPEN_SOURCE should be defined... no
  35. checking for special C compiler options needed for large files... no
  36. checking for _FILE_OFFSET_BITS value needed for large files... no
  37. configure: cross-compiling for x86_64-lfs-linux-gnu is not supported
  38. checking how to run the C preprocessor... x86_64-lfs-linux-gnu-gcc -E
  39. checking for grep that handles long lines and -e... /usr/bin/grep
  40. checking for egrep... /usr/bin/grep -E
  41. checking whether x86_64-lfs-linux-gnu-gcc needs -traditional... no
  42. checking for a BSD-compatible install... /usr/bin/install -c
  43. checking for x86_64-lfs-linux-gnu-ar... x86_64-lfs-linux-gnu-ar
  44. checking for x86_64-lfs-linux-gnu-ranlib... x86_64-lfs-linux-gnu-ranlib
  45. checking for bison... bison -y
  46. checking whether make sets $(MAKE)... yes
  47. checking for an ANSI C-conforming const... yes
  48. checking for inline... inline
  49. checking whether byte ordering is bigendian... no
  50. checking for preprocessor stringizing operator... yes
  51. checking for long double... yes
  52. checking whether char is unsigned... no
  53. checking for working volatile... yes
  54. checking for C/C++ restrict keyword... __restrict__
  55. checking for a race-free mkdir -p... /usr/bin/mkdir -p
  56. checking for a sed that does not truncate output... /usr/bin/sed
  57. checking whether NLS is requested... yes
  58. checking for msgfmt... /usr/bin/msgfmt
  59. checking for gmsgfmt... /usr/bin/msgfmt
  60. checking for xgettext... /usr/bin/xgettext
  61. checking for msgmerge... /usr/bin/msgmerge
  62. checking whether we are using the GNU C Library 2 or newer... yes
  63. checking whether the -Werror option is usable... yes
  64. checking for simple visibility declarations... yes
  65. checking for size_t... yes
  66. checking for stdint.h... yes
  67. checking for working alloca.h... yes
  68. checking for alloca... yes
  69. checking for getpagesize... yes
  70. checking for symlink... yes
  71. checking for uselocale... yes
  72. checking for vprintf... yes
  73. checking for alarm... yes
  74. checking for fpurge... no
  75. checking for __fpurge... yes
  76. checking for snprintf... yes
  77. checking for vsnprintf... yes
  78. checking for working mmap... yes
  79. checking whether integer division by zero raises SIGFPE... guessing yes
  80. checking for inttypes.h... yes
  81. checking for unsigned long long int... yes
  82. checking for inttypes.h... (cached) yes
  83. checking whether the inttypes.h PRIxNN macros are broken... no
  84. checking for ld used by x86_64-lfs-linux-gnu-gcc... /mnt/lfs/tools/x86_64-lfs-linux-gnu/bin/ld
  85. checking if the linker (/mnt/lfs/tools/x86_64-lfs-linux-gnu/bin/ld) is GNU ld... yes
  86. checking for shared library run path origin... done
  87. checking 32-bit host C ABI... no
  88. checking for the common suffixes of directories in the library search path... lib,lib
  89. checking whether imported symbols can be declared weak... guessing yes
  90. checking for pthread.h... yes
  91. checking for pthread_kill in -lpthread... yes
  92. checking for multithread API to use... posix
  93. checking for pthread_rwlock_t... yes
  94. checking whether pthread_rwlock_rdlock prefers a writer to a reader... guessing yes
  95. checking for x86_64-lfs-linux-gnu-gcc options needed to detect all undeclared functions... none needed
  96. checking for iconv... yes
  97. checking for working iconv... guessing yes
  98. checking for iconv declaration...
  99. extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  100. checking for argz.h... yes
  101. checking for inttypes.h... (cached) yes
  102. checking for limits.h... yes
  103. checking for unistd.h... (cached) yes
  104. checking for sys/param.h... (cached) yes
  105. checking for getcwd... yes
  106. checking for getegid... yes
  107. checking for geteuid... yes
  108. checking for getgid... yes
  109. checking for getuid... yes
  110. checking for mempcpy... yes
  111. checking for munmap... yes
  112. checking for stpcpy... yes
  113. checking for strcasecmp... yes
  114. checking for strdup... yes
  115. checking for strtoul... yes
  116. checking for tsearch... yes
  117. checking for argz_count... yes
  118. checking for argz_stringify... yes
  119. checking for argz_next... yes
  120. checking for __fsetlocking... yes
  121. checking for localeconv... yes
  122. checking whether feof_unlocked is declared... yes
  123. checking whether fgets_unlocked is declared... yes
  124. checking for bison... bison
  125. checking version of bison... 3.8.2, ok
  126. checking for long long int... yes
  127. checking for wchar_t... yes
  128. checking for wint_t... yes
  129. checking whether wint_t is too small... no
  130. checking for intmax_t... yes
  131. checking whether printf() supports POSIX/XSI format strings... guessing yes
  132. checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
  133. checking for stdint.h... (cached) yes
  134. checking for SIZE_MAX... yes
  135. checking for stdint.h... (cached) yes
  136. checking for working fcntl.h... cross-compiling
  137. checking whether uselocale works... guessing yes
  138. checking for fake locale system (OpenBSD)... guessing no
  139. checking for Solaris 11.4 locale system... no
  140. checking for getlocalename_l... no
  141. checking for CFPreferencesCopyAppValue... no
  142. checking for CFLocaleCopyCurrent... no
  143. checking for CFLocaleCopyPreferredLanguages... no
  144. checking for flexible array members... yes
  145. checking for x86_64-lfs-linux-gnu-ar... (cached) x86_64-lfs-linux-gnu-ar
  146. checking for ptrdiff_t... yes
  147. checking for features.h... yes
  148. checking for stddef.h... yes
  149. checking for stdlib.h... (cached) yes
  150. checking for string.h... (cached) yes
  151. checking for asprintf... yes
  152. checking for fwprintf... yes
  153. checking for newlocale... yes
  154. checking for putenv... yes
  155. checking for setenv... yes
  156. checking for setlocale... yes
  157. checking for snprintf... (cached) yes
  158. checking for strnlen... yes
  159. checking for uselocale... (cached) yes
  160. checking for wcslen... yes
  161. checking for wcsnlen... yes
  162. checking for mbrtowc... yes
  163. checking for wcrtomb... yes
  164. checking whether _snprintf is declared... no
  165. checking whether _snwprintf is declared... no
  166. checking whether getc_unlocked is declared... yes
  167. checking for nl_langinfo and CODESET... yes
  168. checking for LC_MESSAGES... yes
  169. checking for CFPreferencesCopyAppValue... (cached) no
  170. checking for CFLocaleCopyCurrent... (cached) no
  171. checking for CFLocaleCopyPreferredLanguages... (cached) no
  172. checking whether included gettext is requested... no
  173. checking for GNU gettext in libc... yes
  174. checking whether to use NLS... yes
  175. checking where the gettext function comes from... libc
  176. checking for dirent.h that defines DIR... yes
  177. checking for library containing opendir... none required
  178. checking for sys/mkdev.h... no
  179. checking for sys/sysmacros.h... yes
  180. checking for inttypes.h... (cached) yes
  181. checking for unistd.h... (cached) yes
  182. checking for stdlib.h... (cached) yes
  183. checking for stdarg.h... yes
  184. checking for varargs.h... no
  185. checking for limits.h... (cached) yes
  186. checking for string.h... (cached) yes
  187. checking for memory.h... yes
  188. checking for locale.h... yes
  189. checking for termcap.h... yes
  190. checking for termio.h... yes
  191. checking for termios.h... yes
  192. checking for dlfcn.h... yes
  193. checking for stdbool.h... yes
  194. checking for stddef.h... (cached) yes
  195. checking for stdint.h... (cached) yes
  196. checking for netdb.h... yes
  197. checking for pwd.h... yes
  198. checking for grp.h... yes
  199. checking for strings.h... (cached) yes
  200. checking for regex.h... yes
  201. checking for syslog.h... yes
  202. checking for ulimit.h... yes
  203. checking for sys/pte.h... no
  204. checking for sys/stream.h... no
  205. checking for sys/select.h... yes
  206. checking for sys/file.h... yes
  207. checking for sys/ioctl.h... yes
  208. checking for sys/mman.h... yes
  209. checking for sys/param.h... (cached) yes
  210. checking for sys/random.h... yes
  211. checking for sys/socket.h... yes
  212. checking for sys/stat.h... (cached) yes
  213. checking for sys/time.h... (cached) yes
  214. checking for sys/times.h... yes
  215. checking for sys/types.h... (cached) yes
  216. checking for sys/wait.h... yes
  217. checking for netinet/in.h... yes
  218. checking for arpa/inet.h... yes
  219. checking for sys/ptem.h... no
  220. checking for sys/resource.h... yes
  221. checking for working alloca.h... (cached) yes
  222. checking for alloca... (cached) checking for uid_t in sys/types.h... yes
  223. checking for working chown... yes
  224. checking whether getpgrp requires zero arguments... yes
  225. checking for working strcoll... yes
  226. checking for __setostype... no
  227. checking for wait3... yes
  228. checking for mkfifo... yes
  229. checking for dup2... yes
  230. checking for eaccess... yes
  231. checking for fcntl... yes
  232. checking for getdtablesize... yes
  233. checking for getentropy... yes
  234. checking for getgroups... yes
  235. checking for gethostname... yes
  236. checking for getpagesize... (cached) yes
  237. checking for getpeername... yes
  238. checking for getrandom... yes
  239. checking for getrlimit... yes
  240. checking for getrusage... yes
  241. checking for gettimeofday... yes
  242. checking for kill... yes
  243. checking for killpg... yes
  244. checking for lstat... yes
  245. checking for pselect... yes
  246. checking for readlink... yes
  247. checking for select... yes
  248. checking for setdtablesize... no
  249. checking for setitimer... yes
  250. checking for tcgetpgrp... yes
  251. checking for uname... yes
  252. checking for ulimit... yes
  253. checking for waitpid... yes
  254. checking for rename... yes
  255. checking for bcopy... yes
  256. checking for bzero... yes
  257. checking for confstr... yes
  258. checking for faccessat... yes
  259. checking for fnmatch... yes
  260. checking for getaddrinfo... yes
  261. checking for gethostbyname... yes
  262. checking for getservbyname... yes
  263. checking for getservent... yes
  264. checking for inet_aton... yes
  265. checking for imaxdiv... yes
  266. checking for memmove... yes
  267. checking for pathconf... yes
  268. checking for putenv... (cached) yes
  269. checking for raise... yes
  270. checking for random... yes
  271. checking for regcomp... yes
  272. checking for regexec... yes
  273. checking for setenv... (cached) yes
  274. checking for setlinebuf... yes
  275. checking for setlocale... (cached) yes
  276. checking for setvbuf... yes
  277. checking for siginterrupt... yes
  278. checking for strchr... yes
  279. checking for sysconf... yes
  280. checking for syslog... yes
  281. checking for tcgetattr... yes
  282. checking for times... yes
  283. checking for ttyname... yes
  284. checking for tzset... yes
  285. checking for unsetenv... yes
  286. checking for vasprintf... yes
  287. checking for asprintf... (cached) yes
  288. checking for isascii... yes
  289. checking for isblank... yes
  290. checking for isgraph... yes
  291. checking for isprint... yes
  292. checking for isspace... yes
  293. checking for isxdigit... yes
  294. checking for getpwent... yes
  295. checking for getpwnam... yes
  296. checking for getpwuid... yes
  297. checking for mkstemp... yes
  298. checking for mkdtemp... yes
  299. checking for arc4random... yes
  300. checking for getcwd... (cached) yes
  301. checking for memset... yes
  302. checking for strcasecmp... (cached) yes
  303. checking for strcasestr... yes
  304. checking for strerror... yes
  305. checking for strftime... yes
  306. checking for strnlen... (cached) yes
  307. checking for strpbrk... yes
  308. checking for strstr... yes
  309. checking for strtod... yes
  310. checking for strtol... yes
  311. checking for strtoul... (cached) yes
  312. checking for strtoll... yes
  313. checking for strtoull... yes
  314. checking for strtoumax... yes
  315. checking for dprintf... yes
  316. checking for strchrnul... yes
  317. checking for strdup... (cached) yes
  318. checking for libaudit.h... no
  319. checking whether AUDIT_USER_TTY is declared... yes
  320. checking whether confstr is declared... yes
  321. checking whether printf is declared... yes
  322. checking whether sbrk is declared... yes
  323. checking whether setregid is declared... yes
  324. checking whether strcpy is declared... yes
  325. checking whether strsignal is declared... yes
  326. checking for setresuid... yes
  327. checking for setresgid... yes
  328. checking whether strtold is declared... yes
  329. checking for broken strtold... no
  330. checking whether strtol is declared... yes
  331. checking whether strtoll is declared... yes
  332. checking whether strtoul is declared... yes
  333. checking whether strtoull is declared... yes
  334. checking whether strtoumax is declared... yes
  335. checking for working mktime... no
  336. checking for argz.h... (cached) yes
  337. checking for errno.h... yes
  338. checking for fcntl.h... yes
  339. checking for malloc.h... yes
  340. checking for stdio_ext.h... yes
  341. checking for working mmap... (cached) yes
  342. checking for __argz_count... yes
  343. checking for __argz_next... yes
  344. checking for __argz_stringify... yes
  345. checking for dcgettext... yes
  346. checking for mempcpy... (cached) yes
  347. checking for munmap... (cached) yes
  348. checking for mremap... yes
  349. checking for stpcpy... (cached) yes
  350. checking for strcspn... yes
  351. checking for wctype.h... yes
  352. checking for wchar.h... (cached) yes
  353. checking for langinfo.h... yes
  354. checking for mbstr.h... no
  355. checking for mbrlen... yes
  356. checking for mbscasecmp... no
  357. checking for mbscmp... no
  358. checking for mbsnrtowcs... yes
  359. checking for mbsrtowcs... yes
  360. checking for mbschr... no
  361. checking for wcrtomb... (cached) yes
  362. checking for wcscoll... yes
  363. checking for wcsdup... yes
  364. checking for wcwidth... yes
  365. checking for wctype... yes
  366. checking for wcswidth... yes
  367. checking whether mbrtowc and mbstate_t are properly declared... (cached) yes
  368. checking for iswlower... yes
  369. checking for iswupper... yes
  370. checking for towlower... yes
  371. checking for towupper... yes
  372. checking for iswctype... yes
  373. checking for wchar_t in wchar.h... yes
  374. checking for wctype_t in wctype.h... yes
  375. checking for wint_t in wctype.h... yes
  376. checking for wcwidth broken with unicode combining characters... no
  377. checking for locale_charset... no
  378. checking size of wchar_t... 4
  379. checking for dlopen in -ldl... yes
  380. checking for dlopen... yes
  381. checking for dlclose... yes
  382. checking for dlsym... yes
  383. checking type of array argument to getgroups... gid_t
  384. checking for off_t... yes
  385. checking for mode_t... yes
  386. checking for uid_t in sys/types.h... (cached) yes
  387. checking for pid_t... yes
  388. checking for size_t... (cached) yes
  389. checking for uintptr_t... yes
  390. checking for ssize_t... yes
  391. checking for time_t... yes
  392. checking for long long int... (cached) yes
  393. checking for unsigned long long int... (cached) yes
  394. checking for sig_atomic_t in signal.h... yes
  395. checking size of char... 1
  396. checking size of short... 2
  397. checking size of int... 4
  398. checking size of long... 8
  399. checking size of char *... 8
  400. checking size of size_t... 8
  401. checking size of double... 8
  402. checking size of long long... 8
  403. checking for u_int... yes
  404. checking for u_long... yes
  405. checking for bits16_t... no
  406. checking for u_bits16_t... no
  407. checking for bits32_t... no
  408. checking for u_bits32_t... no
  409. checking for bits64_t... no
  410. checking for ptrdiff_t... (cached) yes
  411. checking whether stat file-mode macros are broken... no
  412. checking whether #! works in shell scripts... yes
  413. checking if dup2 fails to clear the close-on-exec flag... configure: WARNING: cannot check dup2 if cross compiling -- defaulting to no
  414. no
  415. checking whether pgrps need synchronization... configure: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no
  416. no
  417. checking for type of signal functions... posix
  418. checking for sys_errlist and sys_nerr... yes
  419. checking whether sys_siglist is declared... no
  420. checking for sys_siglist in system C library... configure: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no
  421. no
  422. checking for _sys_siglist in signal.h or unistd.h... no
  423. checking for _sys_siglist in system C library... configure: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no
  424. no
  425. checking for clock_t... yes
  426. checking for sigset_t... yes
  427. checking for socklen_t... yes
  428. checking for quad_t... yes
  429. checking for type of struct rlimit fields... rlim_t
  430. checking for intmax_t... yes
  431. checking for uintmax_t... yes
  432. checking size of intmax_t... 8
  433. checking for struct termios.c_line... yes
  434. checking for struct termio.c_line... yes
  435. checking for struct dirent.d_ino... checking for struct dirent.d_ino... yes
  436. yes
  437. checking for struct dirent.d_fileno... checking for struct dirent.d_fileno... yes
  438. yes
  439. checking for struct dirent.d_namlen... checking for struct dirent.d_namlen... no
  440. no
  441. checking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.h
  442. checking for struct timeval in sys/time.h and time.h... yes
  443. checking for struct stat.st_blocks... yes
  444. checking whether struct tm is in sys/time.h or time.h... time.h
  445. checking for struct tm.tm_zone... yes
  446. checking for struct timezone in sys/time.h and time.h... yes
  447. checking for offset of exit status in return status from wait... configure: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0
  448. 0
  449. checking for struct timespec in <time.h>... yes
  450. checking for struct stat.st_atim.tv_nsec... yes
  451. checking whether struct stat.st_atim is of type struct timespec... yes
  452. checking for sbrk... yes
  453. checking for working sbrk... configure: WARNING: cannot check working sbrk if cross-compiling
  454. yes
  455. checking for the existence of strsignal... yes
  456. checking if opendir() opens non-directories... configure: WARNING: cannot check opendir if cross compiling -- defaulting to no
  457. no
  458. checking whether ulimit can substitute for getdtablesize... configure: WARNING: cannot check ulimit if cross compiling -- defaulting to no
  459. no
  460. checking whether fpurge is declared... no
  461. checking to see if getenv can be redefined... configure: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes
  462. yes
  463. checking if getcwd() will dynamically allocate memory with 0 size... configure: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no
  464. no
  465. checking for presence of POSIX-style sigsetjmp/siglongjmp... configure: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to yes
  466. present
  467. checking whether or not strcoll and strcmp differ... configure: WARNING: cannot check strcoll if cross compiling -- defaulting to no
  468. no
  469. checking for standard-conformant snprintf... configure: WARNING: cannot check standard snprintf if cross-compiling
  470. yes
  471. checking for standard-conformant vsnprintf... configure: WARNING: cannot check standard vsnprintf if cross-compiling
  472. yes
  473. checking for usable strtoimax... checking for strtoimax... yes
  474. checking whether strtoimax is declared... yes
  475. yes
  476. checking for standard-conformant putenv declaration... yes
  477. checking for standard-conformant unsetenv declaration... yes
  478. checking for printf floating point output in hex notation... configure: WARNING: cannot check printf if cross compiling -- defaulting to no
  479. no
  480. checking whether fnmatch can be used to check bracket equivalence classes... configure: WARNING: cannot check fnmatch if cross compiling -- defaulting to no
  481. no
  482. checking if signal handlers must be reinstalled when invoked... configure: WARNING: cannot check signal handling if cross compiling -- defaulting to no
  483. no
  484. checking for presence of necessary job control definitions... present
  485. checking for presence of named pipes... configure: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing
  486. missing
  487. checking whether termios.h defines TIOCGWINSZ... no
  488. checking whether sys/ioctl.h defines TIOCGWINSZ... yes
  489. checking for TIOCSTAT in sys/ioctl.h... no
  490. checking for FIONREAD in sys/ioctl.h... yes
  491. checking whether WCONTINUED flag to waitpid is unavailable or available but broken... configure: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no
  492. no
  493. checking for speed_t in sys/types.h... no
  494. checking whether getpw functions are declared in pwd.h... yes
  495. checking for unusable real-time signals due to large values... configure: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes
  496. yes
  497. checking for tgetent... no
  498. checking for tgetent in -ltermcap... no
  499. checking for tgetent in -ltinfo... no
  500. checking for tgetent in -lcurses... no
  501. checking for tgetent in -lncurses... yes
  502. checking which library has the termcap functions... using libncurses
  503. checking whether /dev/fd is available... standard
  504. checking whether /dev/stdin stdout stderr are available... present
  505. checking for default mail directory... /var/mail
  506. checking shared object configuration for loadable builtins... supported
  507. configure: creating ./config.status
  508. config.status: creating Makefile
  509. config.status: creating builtins/Makefile
  510. config.status: creating lib/readline/Makefile
  511. config.status: creating lib/glob/Makefile
  512. config.status: creating lib/intl/Makefile
  513. config.status: creating lib/malloc/Makefile
  514. config.status: creating lib/sh/Makefile
  515. config.status: creating lib/termcap/Makefile
  516. config.status: creating lib/tilde/Makefile
  517. config.status: creating doc/Makefile
  518. config.status: creating support/Makefile
  519. config.status: creating po/Makefile.in
  520. config.status: creating examples/loadables/Makefile
  521. config.status: creating examples/loadables/Makefile.inc
  522. config.status: creating examples/loadables/Makefile.sample
  523. config.status: creating examples/loadables/perl/Makefile
  524. config.status: creating support/bash.pc
  525. config.status: creating support/bashbug.sh
  526. config.status: creating config.h
  527. config.status: executing po-directories commands
  528. config.status: creating po/POTFILES
  529. config.status: creating po/Makefile
  530. config.status: executing stamp-h commands
  531. lfs:/mnt/lfs/sources/bash-5.2.37$ make
  532. rm -f mksyntax
  533. rm -f mksignames.o
  534. make[1]: Entering directory '/mnt/lfs/sources/bash-5.2.37/builtins'
  535. make[1]: warning: -j4 forced in submake: resetting jobserver mode.
  536. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -rdynamic -g -DCROSS_COMPILING -o mksyntax ./mksyntax.c
  537. rm -f buildsignames.o
  538. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -DBUILDTOOL -c ./support/mksignames.c
  539. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -DBUILDTOOL -o buildsignames.o -c ./support/signames.c
  540. rm -f mkbuiltins.o
  541. gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING mkbuiltins.c
  542. mkbuiltins.c: In function 'main':
  543. mkbuiltins.c:232:1: warning: old-style function definition [-Wold-style-definition]
  544. 232 | main (argc, argv)
  545. | ^~~~
  546. mkbuiltins.c:267:29: error: too many arguments to function 'xmalloc'; expected 0, have 1
  547. 267 | error_directory = xmalloc (2 + strlen (argv[arg_index]));
  548. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  549. mkbuiltins.c:62:14: note: declared here
  550. 62 | static char *xmalloc (), *xrealloc ();
  551. | ^~~~~~~
  552. mkbuiltins.c:307:34: error: too many arguments to function 'xmalloc'; expected 0, have 1
  553. 307 | temp_struct_filename = xmalloc (15);
  554. | ^~~~~~~ ~~
  555. mkbuiltins.c:62:14: note: declared here
  556. 62 | static char *xmalloc (), *xrealloc ();
  557. | ^~~~~~~
  558. mkbuiltins.c:312:13: error: too many arguments to function 'file_error'; expected 0, have 1
  559. 312 | file_error (temp_struct_filename);
  560. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
  561. mkbuiltins.c:206:6: note: declared here
  562. 206 | void file_error ();
  563. | ^~~~~~~~~~
  564. mkbuiltins.c:320:13: error: too many arguments to function 'file_error'; expected 0, have 1
  565. 320 | file_error (extern_filename);
  566. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~
  567. mkbuiltins.c:206:6: note: declared here
  568. 206 | void file_error ();
  569. | ^~~~~~~~~~
  570. mkbuiltins.c:324:7: error: too many arguments to function 'write_file_headers'; expected 0, have 2
  571. 324 | write_file_headers (structfile, externfile);
  572. | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
  573. mkbuiltins.c:209:6: note: declared here
  574. 209 | void write_file_headers ();
  575. | ^~~~~~~~~~~~~~~~~~
  576. mkbuiltins.c:341:7: error: too many arguments to function 'extract_info'; expected 0, have 3
  577. 341 | extract_info (arg, structfile, externfile);
  578. | ^~~~~~~~~~~~ ~~~
  579. mkbuiltins.c:204:6: note: declared here
  580. 204 | void extract_info ();
  581. | ^~~~~~~~~~~~
  582. mkbuiltins.c:348:7: error: too many arguments to function 'write_file_footers'; expected 0, have 2
  583. 348 | write_file_footers (structfile, externfile);
  584. | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
  585. mkbuiltins.c:210:6: note: declared here
  586. 210 | void write_file_footers ();
  587. | ^~~~~~~~~~~~~~~~~~
  588. mkbuiltins.c:352:11: error: too many arguments to function 'write_longdocs'; expected 0, have 2
  589. 352 | write_longdocs (structfile, saved_builtins);
  590. | ^~~~~~~~~~~~~~ ~~~~~~~~~~
  591. mkbuiltins.c:214:6: note: declared here
  592. 214 | void write_longdocs ();
  593. | ^~~~~~~~~~~~~~
  594. mkbuiltins.c: In function 'array_create':
  595. mkbuiltins.c:387:1: warning: old-style function definition [-Wold-style-definition]
  596. 387 | array_create (width)
  597. | ^~~~~~~~~~~~
  598. mkbuiltins.c:392:20: error: too many arguments to function 'xmalloc'; expected 0, have 1
  599. 392 | array = (ARRAY *)xmalloc (sizeof (ARRAY));
  600. | ^~~~~~~ ~~~~~~~~~~~~~~
  601. mkbuiltins.c:62:14: note: declared here
  602. 62 | static char *xmalloc (), *xrealloc ();
  603. | ^~~~~~~
  604. mkbuiltins.c: In function 'copy_string_array':
  605. mkbuiltins.c:407:1: warning: old-style function definition [-Wold-style-definition]
  606. 407 | copy_string_array (array)
  607. | ^~~~~~~~~~~~~~~~~
  608. mkbuiltins.c:422:26: error: too many arguments to function 'xmalloc'; expected 0, have 1
  609. 422 | copy->array = (char **)xmalloc ((1 + array->sindex) * sizeof (char *));
  610. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  611. mkbuiltins.c:62:14: note: declared here
  612. 62 | static char *xmalloc (), *xrealloc ();
  613. | ^~~~~~~
  614. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  615. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  616. | ^~~~~~~ ~~~~~~~~~~~~~~
  617. mkbuiltins.c:425:22: note: in expansion of macro 'savestring'
  618. 425 | copy->array[i] = savestring (array->array[i]);
  619. | ^~~~~~~~~~
  620. mkbuiltins.c:62:14: note: declared here
  621. 62 | static char *xmalloc (), *xrealloc ();
  622. | ^~~~~~~
  623. mkbuiltins.c: In function 'array_add':
  624. mkbuiltins.c:434:1: warning: old-style function definition [-Wold-style-definition]
  625. 434 | array_add (element, array)
  626. | ^~~~~~~~~
  627. mkbuiltins.c:439:29: error: too many arguments to function 'xrealloc'; expected 0, have 2
  628. 439 | array->array = (char **)xrealloc
  629. | ^~~~~~~~
  630. 440 | (array->array, (array->size += array->growth_rate) * array->width);
  631. | ~~~~~~~~~~~~
  632. mkbuiltins.c:62:27: note: declared here
  633. 62 | static char *xmalloc (), *xrealloc ();
  634. | ^~~~~~~~
  635. mkbuiltins.c: In function 'array_free':
  636. mkbuiltins.c:448:1: warning: old-style function definition [-Wold-style-definition]
  637. 448 | array_free (array)
  638. | ^~~~~~~~~~
  639. mkbuiltins.c: In function 'find_directive':
  640. mkbuiltins.c:497:1: warning: old-style function definition [-Wold-style-definition]
  641. 497 | find_directive (directive)
  642. | ^~~~~~~~~~~~~~
  643. mkbuiltins.c: In function 'extract_info':
  644. mkbuiltins.c:527:1: warning: old-style function definition [-Wold-style-definition]
  645. 527 | extract_info (filename, structfile, externfile)
  646. | ^~~~~~~~~~~~
  647. mkbuiltins.c:530:1: error: number of arguments doesn't match prototype
  648. 530 | {
  649. | ^
  650. mkbuiltins.c:204:6: error: prototype declaration
  651. 204 | void extract_info ();
  652. | ^~~~~~~~~~~~
  653. mkbuiltins.c:539:5: error: too many arguments to function 'file_error'; expected 0, have 1
  654. 539 | file_error (filename);
  655. | ^~~~~~~~~~ ~~~~~~~~
  656. mkbuiltins.c:206:6: note: declared here
  657. 206 | void file_error ();
  658. | ^~~~~~~~~~
  659. mkbuiltins.c:544:5: error: too many arguments to function 'file_error'; expected 0, have 1
  660. 544 | file_error (filename);
  661. | ^~~~~~~~~~ ~~~~~~~~
  662. mkbuiltins.c:206:6: note: declared here
  663. 206 | void file_error ();
  664. | ^~~~~~~~~~
  665. mkbuiltins.c:547:12: error: too many arguments to function 'xmalloc'; expected 0, have 1
  666. 547 | buffer = xmalloc (1 + file_size);
  667. | ^~~~~~~ ~~~~~~~~~~~~~
  668. mkbuiltins.c:62:14: note: declared here
  669. 62 | static char *xmalloc (), *xrealloc ();
  670. | ^~~~~~~
  671. mkbuiltins.c:550:5: error: too many arguments to function 'file_error'; expected 0, have 1
  672. 550 | file_error (filename);
  673. | ^~~~~~~~~~ ~~~~~~~~
  674. mkbuiltins.c:206:6: note: declared here
  675. 206 | void file_error ();
  676. | ^~~~~~~~~~
  677. mkbuiltins.c:566:22: error: too many arguments to function 'xmalloc'; expected 0, have 1
  678. 566 | defs = (DEF_FILE *)xmalloc (sizeof (DEF_FILE));
  679. | ^~~~~~~ ~~~~~~~~~~~~~~~~~
  680. mkbuiltins.c:62:14: note: declared here
  681. 62 | static char *xmalloc (), *xrealloc ();
  682. | ^~~~~~~
  683. mkbuiltins.c:603:23: error: too many arguments to function 'xmalloc'; expected 0, have 1
  684. 603 | directive = xmalloc (j);
  685. | ^~~~~~~ ~
  686. mkbuiltins.c:62:14: note: declared here
  687. 62 | static char *xmalloc (), *xrealloc ();
  688. | ^~~~~~~
  689. mkbuiltins.c:612:15: error: too many arguments to function 'line_error'; expected 0, have 3
  690. 612 | line_error (defs, "Unknown directive `%s'", directive);
  691. | ^~~~~~~~~~ ~~~~
  692. ./mksyntax.c: In function 'cdesc':
  693. ./mksyntax.c:108:1: warning: old-style function definition [-Wold-style-definition]
  694. 108 | cdesc (i)
  695. | ^~~~~
  696. mkbuiltins.c:207:6: note: declared here
  697. 207 | void line_error ();
  698. | ^~~~~~~~~~
  699. mkbuiltins.c:630:13: error: too many arguments to function 'add_documentation'; expected 0, have 2
  700. 630 | add_documentation (defs, line);
  701. | ^~~~~~~~~~~~~~~~~ ~~~~
  702. mkbuiltins.c:220:6: note: declared here
  703. 220 | void add_documentation ();
  704. | ^~~~~~~~~~~~~~~~~
  705. ./mksyntax.c: In function 'getcstr':
  706. ./mksyntax.c:152:1: warning: old-style function definition [-Wold-style-definition]
  707. 152 | getcstr (f)
  708. | ^~~~~~~
  709. ./mksyntax.c: In function 'addcstr':
  710. ./mksyntax.c:164:1: warning: old-style function definition [-Wold-style-definition]
  711. 164 | addcstr (str, flag)
  712. | ^~~~~~~
  713. mkbuiltins.c:660:3: error: too many arguments to function 'write_builtins'; expected 0, have 3
  714. 660 | write_builtins (defs, structfile, externfile);
  715. | ^~~~~~~~~~~~~~ ~~~~
  716. ./mksyntax.c: In function 'addcchar':
  717. ./mksyntax.c:186:1: warning: old-style function definition [-Wold-style-definition]
  718. 186 | addcchar (c, flag)
  719. | ^~~~~~~~
  720. mkbuiltins.c:215:6: note: declared here
  721. 215 | void write_builtins ();
  722. | ^~~~~~~~~~~~~~
  723. mkbuiltins.c:663:3: error: too many arguments to function 'free_defs'; expected 0, have 1
  724. 663 | free_defs (defs);
  725. | ^~~~~~~~~ ~~~~
  726. mkbuiltins.c:219:6: note: declared here
  727. 219 | void free_defs ();
  728. | ^~~~~~~~~
  729. mkbuiltins.c: In function 'free_builtin':
  730. ./mksyntax.c: In function 'dump_lflags':
  731. ./mksyntax.c:255:1: warning: old-style function definition [-Wold-style-definition]
  732. 255 | dump_lflags (fp, ind)
  733. | ^~~~~~~~~~~
  734. mkbuiltins.c:669:1: warning: old-style function definition [-Wold-style-definition]
  735. 669 | free_builtin (builtin)
  736. | ^~~~~~~~~~~~
  737. ./mksyntax.c: In function 'wcomment':
  738. mkbuiltins.c: In function 'free_defs':
  739. ./mksyntax.c:281:1: warning: old-style function definition [-Wold-style-definition]
  740. 281 | wcomment (fp, i)
  741. | ^~~~~~~~
  742. mkbuiltins.c:692:1: warning: old-style function definition [-Wold-style-definition]
  743. 692 | free_defs (defs)
  744. | ^~~~~~~~~
  745. mkbuiltins.c:694:1: error: number of arguments doesn't match prototype
  746. 694 | {
  747. | ^
  748. ./mksyntax.c: In function 'dump_lsyntax':
  749. ./mksyntax.c:293:1: warning: old-style function definition [-Wold-style-definition]
  750. 293 | dump_lsyntax (fp)
  751. | ^~~~~~~~~~~~
  752. mkbuiltins.c:219:6: error: prototype declaration
  753. 219 | void free_defs ();
  754. | ^~~~~~~~~
  755. ./mksyntax.c: In function 'main':
  756. ./mksyntax.c:314:1: warning: old-style function definition [-Wold-style-definition]
  757. 314 | main(argc, argv)
  758. | ^~~~
  759. mkbuiltins.c: In function 'strip_whitespace':
  760. mkbuiltins.c:725:1: warning: old-style function definition [-Wold-style-definition]
  761. 725 | strip_whitespace (string)
  762. | ^~~~~~~~~~~~~~~~
  763. mkbuiltins.c:731:3: error: too many arguments to function 'remove_trailing_whitespace'; expected 0, have 1
  764. 731 | remove_trailing_whitespace (string);
  765. | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  766. mkbuiltins.c:223:6: note: declared here
  767. 223 | void remove_trailing_whitespace ();
  768. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  769. mkbuiltins.c: In function 'remove_trailing_whitespace':
  770. mkbuiltins.c:737:1: warning: old-style function definition [-Wold-style-definition]
  771. 737 | remove_trailing_whitespace (string)
  772. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  773. mkbuiltins.c:739:1: error: number of arguments doesn't match prototype
  774. 739 | {
  775. | ^
  776. mkbuiltins.c:223:6: error: prototype declaration
  777. 223 | void remove_trailing_whitespace ();
  778. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  779. mkbuiltins.c: In function 'get_arg':
  780. mkbuiltins.c:755:1: warning: old-style function definition [-Wold-style-definition]
  781. 755 | get_arg (for_whom, defs, string)
  782. | ^~~~~~~
  783. mkbuiltins.c:764:5: error: too many arguments to function 'line_error'; expected 0, have 3
  784. 764 | line_error (defs, "%s requires an argument", for_whom);
  785. | ^~~~~~~~~~ ~~~~
  786. mkbuiltins.c:207:6: note: declared here
  787. 207 | void line_error ();
  788. | ^~~~~~~~~~
  789. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  790. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  791. | ^~~~~~~ ~~~~~~~~~~~~~~
  792. mkbuiltins.c:766:11: note: in expansion of macro 'savestring'
  793. 766 | return (savestring (new));
  794. | ^~~~~~~~~~
  795. mkbuiltins.c:62:14: note: declared here
  796. 62 | static char *xmalloc (), *xrealloc ();
  797. | ^~~~~~~
  798. mkbuiltins.c: In function 'must_be_building':
  799. mkbuiltins.c:771:1: warning: old-style function definition [-Wold-style-definition]
  800. 771 | must_be_building (directive, defs)
  801. | ^~~~~~~~~~~~~~~~
  802. mkbuiltins.c:774:1: error: number of arguments doesn't match prototype
  803. 774 | {
  804. | ^
  805. mkbuiltins.c:222:6: error: prototype declaration
  806. 222 | void must_be_building ();
  807. | ^~~~~~~~~~~~~~~~
  808. mkbuiltins.c:776:5: error: too many arguments to function 'line_error'; expected 0, have 3
  809. 776 | line_error (defs, "%s must be inside of a $BUILTIN block", directive);
  810. | ^~~~~~~~~~ ~~~~
  811. mkbuiltins.c:207:6: note: declared here
  812. 207 | void line_error ();
  813. | ^~~~~~~~~~
  814. mkbuiltins.c: In function 'current_builtin':
  815. mkbuiltins.c:781:1: warning: old-style function definition [-Wold-style-definition]
  816. 781 | current_builtin (directive, defs)
  817. | ^~~~~~~~~~~~~~~
  818. mkbuiltins.c:785:3: error: too many arguments to function 'must_be_building'; expected 0, have 2
  819. 785 | must_be_building (directive, defs);
  820. | ^~~~~~~~~~~~~~~~ ~~~~~~~~~
  821. mkbuiltins.c:771:1: note: declared here
  822. 771 | must_be_building (directive, defs)
  823. | ^~~~~~~~~~~~~~~~
  824. ./support/mksignames.c: In function 'write_signames':
  825. ./support/mksignames.c:48:1: warning: old-style function definition [-Wold-style-definition]
  826. 48 | write_signames (stream)
  827. | ^~~~~~~~~~~~~~
  828. mkbuiltins.c: In function 'add_documentation':
  829. mkbuiltins.c:795:1: warning: old-style function definition [-Wold-style-definition]
  830. 795 | add_documentation (defs, line)
  831. | ^~~~~~~~~~~~~~~~~
  832. ./support/mksignames.c: In function 'main':
  833. ./support/mksignames.c:74:1: warning: old-style function definition [-Wold-style-definition]
  834. 74 | main (argc, argv)
  835. | ^~~~
  836. mkbuiltins.c:798:1: error: number of arguments doesn't match prototype
  837. 798 | {
  838. | ^
  839. mkbuiltins.c:220:6: error: prototype declaration
  840. 220 | void add_documentation ();
  841. | ^~~~~~~~~~~~~~~~~
  842. mkbuiltins.c:803:3: error: too many arguments to function 'remove_trailing_whitespace'; expected 0, have 1
  843. 803 | remove_trailing_whitespace (line);
  844. | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
  845. mkbuiltins.c:737:1: note: declared here
  846. 737 | remove_trailing_whitespace (string)
  847. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  848. mkbuiltins.c: In function 'builtin_handler':
  849. mkbuiltins.c:816:1: warning: old-style function definition [-Wold-style-definition]
  850. 816 | builtin_handler (self, defs, arg)
  851. | ^~~~~~~~~~~~~~~
  852. mkbuiltins.c:827:7: error: too many arguments to function 'line_error'; expected 0, have 3
  853. 827 | line_error (defs, "%s found before $END", self);
  854. | ^~~~~~~~~~ ~~~~
  855. mkbuiltins.c:207:6: note: declared here
  856. 207 | void line_error ();
  857. | ^~~~~~~~~~
  858. mkbuiltins.c:840:25: error: too many arguments to function 'xmalloc'; expected 0, have 1
  859. 840 | new = (BUILTIN_DESC *)xmalloc (sizeof (BUILTIN_DESC));
  860. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
  861. mkbuiltins.c:62:14: note: declared here
  862. 62 | static char *xmalloc (), *xrealloc ();
  863. | ^~~~~~~
  864. mkbuiltins.c:849:7: error: too many arguments to function 'is_special_builtin'; expected 0, have 1
  865. 849 | if (is_special_builtin (name))
  866. | ^~~~~~~~~~~~~~~~~~ ~~~~
  867. mkbuiltins.c:194:12: note: declared here
  868. 194 | static int is_special_builtin ();
  869. | ^~~~~~~~~~~~~~~~~~
  870. mkbuiltins.c:851:7: error: too many arguments to function 'is_assignment_builtin'; expected 0, have 1
  871. 851 | if (is_assignment_builtin (name))
  872. | ^~~~~~~~~~~~~~~~~~~~~ ~~~~
  873. mkbuiltins.c:195:12: note: declared here
  874. 195 | static int is_assignment_builtin ();
  875. | ^~~~~~~~~~~~~~~~~~~~~
  876. mkbuiltins.c:853:7: error: too many arguments to function 'is_localvar_builtin'; expected 0, have 1
  877. 853 | if (is_localvar_builtin (name))
  878. | ^~~~~~~~~~~~~~~~~~~ ~~~~
  879. mkbuiltins.c:196:12: note: declared here
  880. 196 | static int is_localvar_builtin ();
  881. | ^~~~~~~~~~~~~~~~~~~
  882. mkbuiltins.c:855:7: error: too many arguments to function 'is_posix_builtin'; expected 0, have 1
  883. 855 | if (is_posix_builtin (name))
  884. | ^~~~~~~~~~~~~~~~ ~~~~
  885. mkbuiltins.c:197:12: note: declared here
  886. 197 | static int is_posix_builtin ();
  887. | ^~~~~~~~~~~~~~~~
  888. mkbuiltins.c:857:7: error: too many arguments to function 'is_arrayvar_builtin'; expected 0, have 1
  889. 857 | if (is_arrayvar_builtin (name))
  890. | ^~~~~~~~~~~~~~~~~~~ ~~~~
  891. mkbuiltins.c:198:12: note: declared here
  892. 198 | static int is_arrayvar_builtin ();
  893. | ^~~~~~~~~~~~~~~~~~~
  894. mkbuiltins.c: In function 'function_handler':
  895. mkbuiltins.c:868:1: warning: old-style function definition [-Wold-style-definition]
  896. 868 | function_handler (self, defs, arg)
  897. | ^~~~~~~~~~~~~~~~
  898. mkbuiltins.c:879:7: error: too many arguments to function 'line_error'; expected 0, have 2
  899. 879 | line_error (defs, "syntax error: no current builtin for $FUNCTION directive");
  900. | ^~~~~~~~~~ ~~~~
  901. mkbuiltins.c:207:6: note: declared here
  902. 207 | void line_error ();
  903. | ^~~~~~~~~~
  904. mkbuiltins.c:883:5: error: too many arguments to function 'line_error'; expected 0, have 4
  905. 883 | line_error (defs, "%s already has a function (%s)",
  906. | ^~~~~~~~~~ ~~~~
  907. mkbuiltins.c:207:6: note: declared here
  908. 207 | void line_error ();
  909. | ^~~~~~~~~~
  910. mkbuiltins.c: In function 'docname_handler':
  911. mkbuiltins.c:893:1: warning: old-style function definition [-Wold-style-definition]
  912. 893 | docname_handler (self, defs, arg)
  913. | ^~~~~~~~~~~~~~~
  914. mkbuiltins.c:903:5: error: too many arguments to function 'line_error'; expected 0, have 4
  915. 903 | line_error (defs, "%s already had a docname (%s)",
  916. | ^~~~~~~~~~ ~~~~
  917. mkbuiltins.c:207:6: note: declared here
  918. 207 | void line_error ();
  919. | ^~~~~~~~~~
  920. mkbuiltins.c: In function 'short_doc_handler':
  921. mkbuiltins.c:913:1: warning: old-style function definition [-Wold-style-definition]
  922. 913 | short_doc_handler (self, defs, arg)
  923. | ^~~~~~~~~~~~~~~~~
  924. mkbuiltins.c:923:5: error: too many arguments to function 'line_error'; expected 0, have 4
  925. 923 | line_error (defs, "%s already has short documentation (%s)",
  926. | ^~~~~~~~~~ ~~~~
  927. mkbuiltins.c:207:6: note: declared here
  928. 207 | void line_error ();
  929. | ^~~~~~~~~~
  930. mkbuiltins.c: In function 'comment_handler':
  931. mkbuiltins.c:933:1: warning: old-style function definition [-Wold-style-definition]
  932. 933 | comment_handler (self, defs, arg)
  933. | ^~~~~~~~~~~~~~~
  934. mkbuiltins.c: In function 'depends_on_handler':
  935. mkbuiltins.c:943:1: warning: old-style function definition [-Wold-style-definition]
  936. 943 | depends_on_handler (self, defs, arg)
  937. | ^~~~~~~~~~~~~~~~~~
  938. mkbuiltins.c: In function 'produces_handler':
  939. mkbuiltins.c:964:1: warning: old-style function definition [-Wold-style-definition]
  940. 964 | produces_handler (self, defs, arg)
  941. | ^~~~~~~~~~~~~~~~
  942. mkbuiltins.c:977:5: error: too many arguments to function 'line_error'; expected 0, have 4
  943. 977 | line_error (defs, "%s already has a %s definition", defs->filename, self);
  944. | ^~~~~~~~~~ ~~~~
  945. mkbuiltins.c:207:6: note: declared here
  946. 207 | void line_error ();
  947. | ^~~~~~~~~~
  948. mkbuiltins.c:988:9: error: too many arguments to function 'file_error'; expected 0, have 1
  949. 988 | file_error (defs->production);
  950. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
  951. mkbuiltins.c:206:6: note: declared here
  952. 206 | void file_error ();
  953. | ^~~~~~~~~~
  954. mkbuiltins.c: In function 'end_handler':
  955. mkbuiltins.c:998:1: warning: old-style function definition [-Wold-style-definition]
  956. 998 | end_handler (self, defs, arg)
  957. | ^~~~~~~~~~~
  958. mkbuiltins.c:1003:3: error: too many arguments to function 'must_be_building'; expected 0, have 2
  959. 1003 | must_be_building (self, defs);
  960. | ^~~~~~~~~~~~~~~~ ~~~~
  961. mkbuiltins.c:771:1: note: declared here
  962. 771 | must_be_building (directive, defs)
  963. | ^~~~~~~~~~~~~~~~
  964. mkbuiltins.c: In function 'line_error':
  965. mkbuiltins.c:1016:1: warning: old-style function definition [-Wold-style-definition]
  966. 1016 | line_error (defs, format, arg1, arg2)
  967. | ^~~~~~~~~~
  968. mkbuiltins.c:1019:1: error: number of arguments doesn't match prototype
  969. 1019 | {
  970. | ^
  971. mkbuiltins.c:207:6: error: prototype declaration
  972. 207 | void line_error ();
  973. | ^~~~~~~~~~
  974. mkbuiltins.c: In function 'file_error':
  975. mkbuiltins.c:1030:1: warning: old-style function definition [-Wold-style-definition]
  976. 1030 | file_error (filename)
  977. | ^~~~~~~~~~
  978. mkbuiltins.c:1032:1: error: number of arguments doesn't match prototype
  979. 1032 | {
  980. | ^
  981. mkbuiltins.c:206:6: error: prototype declaration
  982. 206 | void file_error ();
  983. | ^~~~~~~~~~
  984. mkbuiltins.c: In function 'xmalloc':
  985. mkbuiltins.c:1046:1: warning: old-style function definition [-Wold-style-definition]
  986. 1046 | xmalloc (bytes)
  987. | ^~~~~~~
  988. mkbuiltins.c: In function 'xrealloc':
  989. mkbuiltins.c:1057:1: warning: old-style function definition [-Wold-style-definition]
  990. 1057 | xrealloc (pointer, bytes)
  991. | ^~~~~~~~
  992. mkbuiltins.c: In function 'copy_builtin':
  993. mkbuiltins.c:1090:1: warning: old-style function definition [-Wold-style-definition]
  994. 1090 | copy_builtin (builtin)
  995. | ^~~~~~~~~~~~
  996. mkbuiltins.c:1095:25: error: too many arguments to function 'xmalloc'; expected 0, have 1
  997. 1095 | new = (BUILTIN_DESC *)xmalloc (sizeof (BUILTIN_DESC));
  998. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
  999. mkbuiltins.c:1046:1: note: declared here
  1000. 1046 | xmalloc (bytes)
  1001. | ^~~~~~~
  1002. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1003. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  1004. | ^~~~~~~ ~~~~~~~~~~~~~~
  1005. mkbuiltins.c:1097:15: note: in expansion of macro 'savestring'
  1006. 1097 | new->name = savestring (builtin->name);
  1007. | ^~~~~~~~~~
  1008. mkbuiltins.c:1046:1: note: declared here
  1009. 1046 | xmalloc (bytes)
  1010. | ^~~~~~~
  1011. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1012. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  1013. | ^~~~~~~ ~~~~~~~~~~~~~~
  1014. mkbuiltins.c:1098:19: note: in expansion of macro 'savestring'
  1015. 1098 | new->shortdoc = savestring (builtin->shortdoc);
  1016. | ^~~~~~~~~~
  1017. mkbuiltins.c:1046:1: note: declared here
  1018. 1046 | xmalloc (bytes)
  1019. | ^~~~~~~
  1020. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1021. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  1022. | ^~~~~~~ ~~~~~~~~~~~~~~
  1023. mkbuiltins.c:1103:25: note: in expansion of macro 'savestring'
  1024. 1103 | builtin->function ? savestring (builtin->function) : (char *)NULL;
  1025. | ^~~~~~~~~~
  1026. mkbuiltins.c:1046:1: note: declared here
  1027. 1046 | xmalloc (bytes)
  1028. | ^~~~~~~
  1029. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1030. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  1031. | ^~~~~~~ ~~~~~~~~~~~~~~
  1032. mkbuiltins.c:1105:25: note: in expansion of macro 'savestring'
  1033. 1105 | builtin->docname ? savestring (builtin->docname) : (char *)NULL;
  1034. | ^~~~~~~~~~
  1035. mkbuiltins.c:1046:1: note: declared here
  1036. 1046 | xmalloc (bytes)
  1037. | ^~~~~~~
  1038. mkbuiltins.c: In function 'save_builtin':
  1039. mkbuiltins.c:1112:1: warning: old-style function definition [-Wold-style-definition]
  1040. 1112 | save_builtin (builtin)
  1041. | ^~~~~~~~~~~~
  1042. mkbuiltins.c: In function 'write_file_headers':
  1043. mkbuiltins.c:1190:1: warning: old-style function definition [-Wold-style-definition]
  1044. 1190 | write_file_headers (structfile, externfile)
  1045. | ^~~~~~~~~~~~~~~~~~
  1046. mkbuiltins.c:1192:1: error: number of arguments doesn't match prototype
  1047. 1192 | {
  1048. | ^
  1049. mkbuiltins.c:209:6: error: prototype declaration
  1050. 209 | void write_file_headers ();
  1051. | ^~~~~~~~~~~~~~~~~~
  1052. mkbuiltins.c: In function 'write_file_footers':
  1053. mkbuiltins.c:1217:1: warning: old-style function definition [-Wold-style-definition]
  1054. 1217 | write_file_footers (structfile, externfile)
  1055. | ^~~~~~~~~~~~~~~~~~
  1056. mkbuiltins.c:1219:1: error: number of arguments doesn't match prototype
  1057. 1219 | {
  1058. | ^
  1059. mkbuiltins.c:210:6: error: prototype declaration
  1060. 210 | void write_file_footers ();
  1061. | ^~~~~~~~~~~~~~~~~~
  1062. mkbuiltins.c: In function 'write_builtins':
  1063. mkbuiltins.c:1233:1: warning: old-style function definition [-Wold-style-definition]
  1064. 1233 | write_builtins (defs, structfile, externfile)
  1065. | ^~~~~~~~~~~~~~
  1066. mkbuiltins.c:1236:1: error: number of arguments doesn't match prototype
  1067. 1236 | {
  1068. | ^
  1069. mkbuiltins.c:215:6: error: prototype declaration
  1070. 215 | void write_builtins ();
  1071. | ^~~~~~~~~~~~~~
  1072. mkbuiltins.c:1253:19: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  1073. 1253 | write_ifdefs (externfile, builtin->dependencies->array);
  1074. | ^~~~~~~~~~~~ ~~~~~~~~~~
  1075. mkbuiltins.c:211:6: note: declared here
  1076. 211 | void write_ifdefs ();
  1077. | ^~~~~~~~~~~~
  1078. mkbuiltins.c:1254:19: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  1079. 1254 | write_ifdefs (structfile, builtin->dependencies->array);
  1080. | ^~~~~~~~~~~~ ~~~~~~~~~~
  1081. mkbuiltins.c:211:6: note: declared here
  1082. 211 | void write_ifdefs ();
  1083. | ^~~~~~~~~~~~
  1084. mkbuiltins.c:1320:21: error: too many arguments to function 'write_endifs'; expected 0, have 2
  1085. 1320 | write_endifs (externfile, builtin->dependencies->array);
  1086. | ^~~~~~~~~~~~ ~~~~~~~~~~
  1087. mkbuiltins.c:212:6: note: declared here
  1088. 212 | void write_endifs ();
  1089. | ^~~~~~~~~~~~
  1090. mkbuiltins.c:1323:21: error: too many arguments to function 'write_endifs'; expected 0, have 2
  1091. 1323 | write_endifs (structfile, builtin->dependencies->array);
  1092. | ^~~~~~~~~~~~ ~~~~~~~~~~
  1093. mkbuiltins.c:212:6: note: declared here
  1094. 212 | void write_endifs ();
  1095. | ^~~~~~~~~~~~
  1096. mkbuiltins.c:1330:15: error: too many arguments to function 'write_documentation'; expected 0, have 4
  1097. 1330 | write_documentation
  1098. | ^~~~~~~~~~~~~~~~~~~
  1099. 1331 | (documentation_file, builtin->longdoc->array, 0, TEXINFO);
  1100. | ~~~~~~~~~~~~~~~~~~
  1101. mkbuiltins.c:213:6: note: declared here
  1102. 213 | void write_documentation ();
  1103. | ^~~~~~~~~~~~~~~~~~~
  1104. mkbuiltins.c: In function 'write_longdocs':
  1105. mkbuiltins.c:1339:1: warning: old-style function definition [-Wold-style-definition]
  1106. 1339 | write_longdocs (stream, builtins)
  1107. | ^~~~~~~~~~~~~~
  1108. mkbuiltins.c:1342:1: error: number of arguments doesn't match prototype
  1109. 1342 | {
  1110. | ^
  1111. mkbuiltins.c:214:6: error: prototype declaration
  1112. 214 | void write_longdocs ();
  1113. | ^~~~~~~~~~~~~~
  1114. mkbuiltins.c:1353:9: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  1115. 1353 | write_ifdefs (stream, builtin->dependencies->array);
  1116. | ^~~~~~~~~~~~ ~~~~~~
  1117. mkbuiltins.c:211:6: note: declared here
  1118. 211 | void write_ifdefs ();
  1119. | ^~~~~~~~~~~~
  1120. mkbuiltins.c:1362:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1121. 1362 | sarray[0] = (char *)xmalloc (l + 1);
  1122. | ^~~~~~~ ~~~~~
  1123. mkbuiltins.c:1046:1: note: declared here
  1124. 1046 | xmalloc (bytes)
  1125. | ^~~~~~~
  1126. mkbuiltins.c:1365:11: error: too many arguments to function 'write_documentation'; expected 0, have 4
  1127. 1365 | write_documentation (stream, sarray, 0, STRING_ARRAY|HELPFILE);
  1128. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  1129. mkbuiltins.c:213:6: note: declared here
  1130. 213 | void write_documentation ();
  1131. | ^~~~~~~~~~~~~~~~~~~
  1132. mkbuiltins.c:1369:9: error: too many arguments to function 'write_documentation'; expected 0, have 4
  1133. 1369 | write_documentation (stream, builtin->longdoc->array, 0, STRING_ARRAY);
  1134. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  1135. mkbuiltins.c:213:6: note: declared here
  1136. 213 | void write_documentation ();
  1137. | ^~~~~~~~~~~~~~~~~~~
  1138. mkbuiltins.c:1372:9: error: too many arguments to function 'write_endifs'; expected 0, have 2
  1139. 1372 | write_endifs (stream, builtin->dependencies->array);
  1140. | ^~~~~~~~~~~~ ~~~~~~
  1141. mkbuiltins.c:212:6: note: declared here
  1142. 212 | void write_endifs ();
  1143. | ^~~~~~~~~~~~
  1144. mkbuiltins.c: In function 'write_dummy_declarations':
  1145. mkbuiltins.c:1378:1: warning: old-style function definition [-Wold-style-definition]
  1146. 1378 | write_dummy_declarations (stream, builtins)
  1147. | ^~~~~~~~~~~~~~~~~~~~~~~~
  1148. mkbuiltins.c: In function 'write_ifdefs':
  1149. mkbuiltins.c:1404:1: warning: old-style function definition [-Wold-style-definition]
  1150. 1404 | write_ifdefs (stream, defines)
  1151. | ^~~~~~~~~~~~
  1152. mkbuiltins.c:1407:1: error: number of arguments doesn't match prototype
  1153. 1407 | {
  1154. | ^
  1155. mkbuiltins.c:211:6: error: prototype declaration
  1156. 211 | void write_ifdefs ();
  1157. | ^~~~~~~~~~~~
  1158. mkbuiltins.c: In function 'write_endifs':
  1159. mkbuiltins.c:1435:1: warning: old-style function definition [-Wold-style-definition]
  1160. 1435 | write_endifs (stream, defines)
  1161. | ^~~~~~~~~~~~
  1162. mkbuiltins.c:1438:1: error: number of arguments doesn't match prototype
  1163. 1438 | {
  1164. | ^
  1165. mkbuiltins.c:212:6: error: prototype declaration
  1166. 212 | void write_endifs ();
  1167. | ^~~~~~~~~~~~
  1168. mkbuiltins.c: In function 'write_documentation':
  1169. mkbuiltins.c:1462:1: warning: old-style function definition [-Wold-style-definition]
  1170. 1462 | write_documentation (stream, documentation, indentation, flags)
  1171. | ^~~~~~~~~~~~~~~~~~~
  1172. mkbuiltins.c:1466:1: error: number of arguments doesn't match prototype
  1173. 1466 | {
  1174. | ^
  1175. mkbuiltins.c:213:6: error: prototype declaration
  1176. 213 | void write_documentation ();
  1177. | ^~~~~~~~~~~~~~~~~~~
  1178. mkbuiltins.c: In function 'write_helpfiles':
  1179. mkbuiltins.c:1593:1: warning: old-style function definition [-Wold-style-definition]
  1180. 1593 | write_helpfiles (builtins)
  1181. | ^~~~~~~~~~~~~~~
  1182. mkbuiltins.c:1595:1: error: number of arguments doesn't match prototype
  1183. 1595 | {
  1184. | ^
  1185. mkbuiltins.c:217:5: error: prototype declaration
  1186. 217 | int write_helpfiles ();
  1187. | ^~~~~~~~~~~~~~~
  1188. mkbuiltins.c:1614:26: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1189. 1614 | helpfile = (char *)xmalloc (hdlen + strlen (bname) + 1);
  1190. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1191. mkbuiltins.c:1046:1: note: declared here
  1192. 1046 | xmalloc (bytes)
  1193. | ^~~~~~~
  1194. mkbuiltins.c:1625:7: error: too many arguments to function 'write_documentation'; expected 0, have 4
  1195. 1625 | write_documentation (helpfp, builtin->longdoc->array, 4, PLAINTEXT);
  1196. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  1197. mkbuiltins.c:1462:1: note: declared here
  1198. 1462 | write_documentation (stream, documentation, indentation, flags)
  1199. | ^~~~~~~~~~~~~~~~~~~
  1200. mkbuiltins.c: In function '_find_in_table':
  1201. mkbuiltins.c:1635:1: warning: old-style function definition [-Wold-style-definition]
  1202. 1635 | _find_in_table (name, name_table)
  1203. | ^~~~~~~~~~~~~~
  1204. mkbuiltins.c: In function 'is_special_builtin':
  1205. mkbuiltins.c:1647:1: warning: old-style function definition [-Wold-style-definition]
  1206. 1647 | is_special_builtin (name)
  1207. | ^~~~~~~~~~~~~~~~~~
  1208. mkbuiltins.c: In function 'is_assignment_builtin':
  1209. mkbuiltins.c:1654:1: warning: old-style function definition [-Wold-style-definition]
  1210. 1654 | is_assignment_builtin (name)
  1211. | ^~~~~~~~~~~~~~~~~~~~~
  1212. mkbuiltins.c: In function 'is_localvar_builtin':
  1213. mkbuiltins.c:1661:1: warning: old-style function definition [-Wold-style-definition]
  1214. 1661 | is_localvar_builtin (name)
  1215. | ^~~~~~~~~~~~~~~~~~~
  1216. mkbuiltins.c: In function 'is_posix_builtin':
  1217. mkbuiltins.c:1668:1: warning: old-style function definition [-Wold-style-definition]
  1218. 1668 | is_posix_builtin (name)
  1219. | ^~~~~~~~~~~~~~~~
  1220. mkbuiltins.c: In function 'is_arrayvar_builtin':
  1221. mkbuiltins.c:1675:1: warning: old-style function definition [-Wold-style-definition]
  1222. 1675 | is_arrayvar_builtin (name)
  1223. | ^~~~~~~~~~~~~~~~~~~
  1224. rm -f input.o
  1225. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c input.c
  1226. rm -f unwind_prot.o
  1227. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c unwind_prot.c
  1228. make[1]: *** [Makefile:223: mkbuiltins.o] Error 1
  1229. make[1]: Leaving directory '/mnt/lfs/sources/bash-5.2.37/builtins'
  1230. make: *** [Makefile:762: builtins/builtext.h] Error 1
  1231. make: *** Waiting for unfinished jobs....
  1232. lfs:/mnt/lfs/sources/bash-5.2.37$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement