Discussion:
[musl] ctype_base.h. Several errors "was not declared in this scope"
Daniel G.
2018-11-24 21:42:19 UTC
Permalink
Hi all,
I keep on trying to build a cross-compiler toolchain based in musl. I've
left the idea of a multilib one due to conflicting types error (I wrote a
few days ago about alltypes.h conflicting types for 'size_t').

Now, also during the second pass of gcc, I've found three make errors. I've
been able to patch two of them (one about the definition of PATH_MAX and
another regarding __GLIBC_PREREQ).

The third one seems to be more complicated, and affects the compilation of
libstdc++-v3. At the end of the mail you can find a bunch of errors on variables not
declared in the scope.

Any help will be welcomed, and again, thank you for your cooperation.

================
Daniel GutiƩrrez


make[4]: Entering directory
'/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include'
mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch
mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc/xgcc -shared-libgcc
-B/mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc -nostdinc++
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/cross-tools/x86_64-unknown-linux-gnu/bin/
-B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem
/cross-tools/x86_64-unknown-linux-gnu/include -isystem
/cross-tools/x86_64-unknown-linux-gnu/sys-include -x c++-header
-nostdinc++ -g -O2 -D_GNU_SOURCE
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/libsupc++ -O2 -g
-std=gnu++0x
/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/include/precompiled/stdc++.h
\
-o x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc/xgcc -shared-libgcc
-B/mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc -nostdinc++
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/cross-tools/x86_64-unknown-linux-gnu/bin/
-B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem
/cross-tools/x86_64-unknown-linux-gnu/include -isystem
/cross-tools/x86_64-unknown-linux-gnu/sys-include -x c++-header
-nostdinc++ -g -O2 -D_GNU_SOURCE
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/libsupc++ -O2 -g
/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/include/precompiled/stdc++.h
-o x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2g.gch
In file included from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:41,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_ios.h:37,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ios:44,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream:38,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/sstream:38,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/complex:45,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ccomplex:39,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/include/precompiled/stdc++.h:52:
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:49:35:
error: '_ISupper' was not declared in this scope
static const mask upper = _ISupper;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:49:35:
note: suggested alternative: '_toupper'
static const mask upper = _ISupper;
^~~~~~~~
_toupper
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:50:32:
error: '_ISlower' was not declared in this scope
static const mask lower = _ISlower;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:50:32:
note: suggested alternative: '_tolower'
static const mask lower = _ISlower;
^~~~~~~~
_tolower
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:51:32:
error: '_ISalpha' was not declared in this scope
static const mask alpha = _ISalpha;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:51:32:
note: suggested alternative: 'isalpha'
static const mask alpha = _ISalpha;
^~~~~~~~
isalpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:52:32:
error: '_ISdigit' was not declared in this scope
static const mask digit = _ISdigit;
^~~~~~~~
In file included from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:41,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_ios.h:37,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ios:44,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream:38,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/sstream:38,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/complex:45,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ccomplex:39,
from
/mnt/clfs_MUSL/sources/gcc-8.2.0/libstdc++-v3/include/precompiled/stdc++.h:52:
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:49:35:
error: '_ISupper' was not declared in this scope
static const mask upper = _ISupper;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:52:32:
note: suggested alternative: 'isxdigit'
static const mask digit = _ISdigit;
^~~~~~~~
isxdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:53:33:
error: '_ISxdigit' was not declared in this scope
static const mask xdigit = _ISxdigit;
^~~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:49:35:
note: suggested alternative: '_toupper'
static const mask upper = _ISupper;
^~~~~~~~
_toupper
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:53:33:
note: suggested alternative: 'isxdigit'
static const mask xdigit = _ISxdigit;
^~~~~~~~~
isxdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:50:32:
error: '_ISlower' was not declared in this scope
static const mask lower = _ISlower;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:54:32:
error: '_ISspace' was not declared in this scope
static const mask space = _ISspace;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:54:32:
note: suggested alternative: 'isspace'
static const mask space = _ISspace;
^~~~~~~~
isspace
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:50:32:
note: suggested alternative: '_tolower'
static const mask lower = _ISlower;
^~~~~~~~
_tolower
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:55:32:
error: '_ISprint' was not declared in this scope
static const mask print = _ISprint;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:51:32:
error: '_ISalpha' was not declared in this scope
static const mask alpha = _ISalpha;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:51:32:
note: suggested alternative: 'isalpha'
static const mask alpha = _ISalpha;
^~~~~~~~
isalpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:52:32:
error: '_ISdigit' was not declared in this scope
static const mask digit = _ISdigit;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:55:32:
note: suggested alternative: 'isprint'
static const mask print = _ISprint;
^~~~~~~~
isprint
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:32:
error: '_ISalpha' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:52:32:
note: suggested alternative: 'isxdigit'
static const mask digit = _ISdigit;
^~~~~~~~
isxdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:53:33:
error: '_ISxdigit' was not declared in this scope
static const mask xdigit = _ISxdigit;
^~~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:32:
note: suggested alternative: 'alpha'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
alpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:43:
error: '_ISdigit' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:53:33:
note: suggested alternative: 'isxdigit'
static const mask xdigit = _ISxdigit;
^~~~~~~~~
isxdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:54:32:
error: '_ISspace' was not declared in this scope
static const mask space = _ISspace;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:43:
note: suggested alternative: 'xdigit'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
xdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:54:
error: '_ISpunct' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:54:32:
note: suggested alternative: 'isspace'
static const mask space = _ISspace;
^~~~~~~~
isspace
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:55:32:
error: '_ISprint' was not declared in this scope
static const mask print = _ISprint;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:54:
note: suggested alternative: 'ispunct'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
ispunct
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:57:32:
error: '_IScntrl' was not declared in this scope
static const mask cntrl = _IScntrl;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:55:32:
note: suggested alternative: 'isprint'
static const mask print = _ISprint;
^~~~~~~~
isprint
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:32:
error: '_ISalpha' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:32:
note: suggested alternative: 'alpha'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
alpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:43:
error: '_ISdigit' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:57:32:
note: suggested alternative: 'iscntrl'
static const mask cntrl = _IScntrl;
^~~~~~~~
iscntrl
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:58:32:
error: '_ISpunct' was not declared in this scope
static const mask punct = _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:43:
note: suggested alternative: 'xdigit'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
xdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:54:
error: '_ISpunct' was not declared in this scope
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:58:32:
note: suggested alternative: 'ispunct'
static const mask punct = _ISpunct;
^~~~~~~~
ispunct
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:32:
error: '_ISalpha' was not declared in this scope
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:56:54:
note: suggested alternative: 'ispunct'
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
^~~~~~~~
ispunct
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:57:32:
error: '_IScntrl' was not declared in this scope
static const mask cntrl = _IScntrl;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:32:
note: suggested alternative: 'alpha'
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
alpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:43:
error: '_ISdigit' was not declared in this scope
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:43:
note: suggested alternative: 'xdigit'
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
xdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:61:31:
error: '_ISblank' was not declared in this scope
static const mask blank = _ISblank;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:57:32:
note: suggested alternative: 'iscntrl'
static const mask cntrl = _IScntrl;
^~~~~~~~
iscntrl
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:58:32:
error: '_ISpunct' was not declared in this scope
static const mask punct = _ISpunct;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:58:32:
note: suggested alternative: 'ispunct'
static const mask punct = _ISpunct;
^~~~~~~~
ispunct
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:32:
error: '_ISalpha' was not declared in this scope
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:61:31:
note: suggested alternative: 'isblank'
static const mask blank = _ISblank;
^~~~~~~~
isblank
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:32:
note: suggested alternative: 'alpha'
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
alpha
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:43:
error: '_ISdigit' was not declared in this scope
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:59:43:
note: suggested alternative: 'xdigit'
static const mask alnum = _ISalpha | _ISdigit;
^~~~~~~~
xdigit
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:61:31:
error: '_ISblank' was not declared in this scope
static const mask blank = _ISblank;
^~~~~~~~
/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/ctype_base.h:61:31:
note: suggested alternative: 'isblank'
static const mask blank = _ISblank;
^~~~~~~~
isblank
Makefile:1742: recipe for target
'x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch' failed
make[4]: *** [x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch]
Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:1747: recipe for target
'x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2g.gch' failed
make[4]: *** [x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2g.gch] Error 1
make[4]: Leaving directory
'/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3/include'
Makefile:511: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3'
Makefile:418: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/mnt/clfs_MUSL/sources/gcc-8.2.0/build/x86_64-unknown-linux-gnu/libstdc++-v3'
Makefile:10581: recipe for target 'all-target-libstdc++-v3' failed
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/mnt/clfs_MUSL/sources/gcc-8.2.0/build'
Makefile:906: recipe for target 'all' failed
make: *** [all] Error 2
Se ha producido un error
root [ /home/clfs/cross-compilador-dev/1-inst-cross-tools-multilib ]#
--
----------------------------
Daniel GutiƩrrez
Rich Felker
2018-11-25 23:19:55 UTC
Permalink
Post by Daniel G.
Hi all,
I keep on trying to build a cross-compiler toolchain based in musl. I've
left the idea of a multilib one due to conflicting types error (I wrote a
few days ago about alltypes.h conflicting types for 'size_t').
This is likely due to multilib, which needs to be disabled. musl does
not do the gcc multilib model of using the same set of headers for
pairs of 32- and 64-bit archs that correspond to each other. If you
want both you need completely separate toolchains for each. Use
--disable-multilib.
Post by Daniel G.
Now, also during the second pass of gcc, I've found three make errors. I've
been able to patch two of them (one about the definition of PATH_MAX and
another regarding __GLIBC_PREREQ).
This sounds like you're building gcc for a glibc target and not for
musl, but it's hard to know for sure with such a vague description.
Make sure you've specified x86_64-linux-musl (or whichever arch) on
the configure command line.

I'm confused why there's a second pass if you're building a cross
compiler, though. Multipass only makes sense for a native compiler.
Post by Daniel G.
The third one seems to be more complicated, and affects the compilation of
libstdc++-v3. At the end of the mail you can find a bunch of errors on variables not
declared in the scope.
This definitely indicates that you're building gcc for a glibc target
and not for musl. The files that the errors occurred in are only for
use with glibc.

Rich

Loading...