Since I've utterly failed to get pkgsrc to function, I'm trying out a new idea.
I'm following the Linux From Scratch build guides, adjusting it where necessary for IRIX.
I'm using Erno's latest gcc 8.2.0, and I'm trying to set up the /tools environment http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html .
I have this environment:
I get the following error:
Any suggestions?
I'm following the Linux From Scratch build guides, adjusting it where necessary for IRIX.
I'm using Erno's latest gcc 8.2.0, and I'm trying to set up the /tools environment http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html .
I have this environment:
Code:
set +h
umask 022
LC_ALL=POSIX
LFS=/
export MAKEFLAGS='-j 4'
export LC_ALL LFS
#_cdir="gcc-4.4.7"
_cdir="gcc-8.2.0"
export CC=/opt/local/$_cdir/bin/gcc
export CXX=/opt/local/$_cdir/bin/g++
#export CFLAGS="-std=gnu99 -g0 -O2 -mips4"
export CFLAGS="-std=gnu99 -g0 -O0 -mips4"
export CXXFLAGS="$common -FE:eliminate_duplicate_inline_copies:template_in_elf_section $namespace"
export CPPFLAGS="-I/usr/pkg/include"
export LDFLAGS="-Wl,-rpath,/usr/pkg/lib"
export LD_LIBRARY_PATH=/usr/pkg/lib:/opt/local/curl/lib:/opt/local/expat/lib:/opt/local/berkeley-db/lib:/opt/local/gmp/lib:/opt/local/mpc/lib:/o
pt/local/mpfr:/lib:/opt/local/mpfr/lib:/opt/local/$_cdir/lib32:/opt/local/$_cdir/lib
export LIBRARY_PATH=$LD_LIBRARY_PATH
export LD_LIBRARYN32_PATH=/usr/lib32:/usr/pkg/lib
export LD_LIBRARY64_PATH=/usr/lib64
export PATH=/tools/bin:/opt/local/$_cdir/bin::/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bsd:/usr/bin:/usr/nekoware/bin:/usr/nekoware/sbin:/usr/sbi
n:/sbin:/usr/bin/X11
I get the following error:
Code:
libtool: compile: /opt/local/gcc-8.2.0/bin/gcc -DHAVE_CONFIG_H -I. -I../../bfd "-DBINDIR=\"/tools/bin\"" -DIRIX_CORE -I. -I../../bfd -I../../bfd/../include -DHAVE_mips_elf32_n_be_vec -DHAVE_mips_elf32_n_le_vec -DHAVE_mips_elf32_be_vec -DHAVE_mips_elf32_le_vec -DHAVE_mips_elf64_be_vec -DHAVE_mips_elf64_le_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -I/usr/pkg/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../bfd/../zlib -std=gnu99 -g0 -O0 -mips4 -MT elf-properties.lo -MD -MP -MF .deps/elf-properties.Tpo -c ../../bfd/elf-properties.c -o elf-properties.o
In file included from ../../bfd/compress.c:21:
../../bfd/compress.c: In function 'bfd_get_full_section_contents':
../../bfd/compress.c:260:43: error: expected ')' before 'PRIx64'
(_("error: %pB(%pA) is too large (%#" PRIx64 " bytes)"),
^~~~~~
../../bfd/sysdep.h:222:21: note: in definition of macro '_'
# define _(String) (String)
^~~~~~
../../bfd/sysdep.h:222:20: note: to match this '('
# define _(String) (String)
^
../../bfd/compress.c:260:6: note: in expansion of macro '_'
(_("error: %pB(%pA) is too large (%#" PRIx64 " bytes)"),
^
../../bfd/sysdep.h:222:20: warning: conversion lacks type at end of format [-Wformat=]
# define _(String) (String)
../../bfd/compress.c:260:6: note: in expansion of macro '_'
(_("error: %pB(%pA) is too large (%#" PRIx64 " bytes)"),
^
../../bfd/sysdep.h:222:20: warning: too many arguments for format [-Wformat-extra-args]
# define _(String) (String)
../../bfd/compress.c:260:6: note: in expansion of macro '_'
(_("error: %pB(%pA) is too large (%#" PRIx64 " bytes)"),
^
make[4]: *** [Makefile:1598: compress.lo] Error 1
Code:
248 switch (sec->compress_status)
249 {
250 case COMPRESS_SECTION_NONE:
251 if (p == NULL)
252 {
253 p = (bfd_byte *) bfd_malloc (sz);
254 if (p == NULL)
255 {
256 /* PR 20801: Provide a more helpful error message. */
257 if (bfd_get_error () == bfd_error_no_memory)
258 _bfd_error_handler
259 /* xgettext:c-format */
260 (_("error: %pB(%pA) is too large (%#" PRIx64 " bytes)"),
261 abfd, sec, (uint64_t) sz);
262 return FALSE;
263 }
264 }
265
266 if (!bfd_get_section_contents (abfd, sec, p, 0, sz))
267 {
268 if (*ptr != p)
269 free (p);
270 return FALSE;
271 }
272 *ptr = p;
273 return TRUE;
Any suggestions?