Shaun Jackman
2014-08-28 19:39:29 UTC
I'm seeing a strange error when compiling gcc --with-sysroot. So far
I've successfully (I think) installed the linux headers and compiled
and installed binutils and glibc for this sysroot. I'm working on GCC
now.
libiberty.h:110:38: error: expected declaration specifiers before
'ATTRIBUTE_RETURNS_NONNULL'
The configure line is as follows. Any thoughts? Here's the gist of
four log files:
https://gist.github.com/sjackman/cdc4961f0d6751d7e1c0
config.log configure.log libiberty-config.log make.log
Cheers,
Shaun
../configure --with-sysroot=/home/sjackman/.linuxbrew
--prefix=/Cellar/xgcc/4.9.1
--with-native-system-header-dir=/opt/xglibc/include
--with-build-time-tools=/opt/xbinutils/bin
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9
--with-gmp=/home/sjackman/.linuxbrew/opt/gmp
--with-mpfr=/home/sjackman/.linuxbrew/opt/mpfr
--with-mpc=/home/sjackman/.linuxbrew/opt/libmpc
--with-cloog=/home/sjackman/.linuxbrew/opt/cloog
--with-isl=/home/sjackman/.linuxbrew/opt/isl --with-system-zlib
--enable-libstdcxx-time=yes --enable-stage1-checking
--enable-checking=release --enable-lto --disable-werror
--with-pkgversion='Homebrew xgcc 4.9.1' --without-multilib
--with-bugurl='https://github.com/Homebrew/homebrew/issues'
--enable-plugin --disable-nls --disable-multilib
Cheers,
Shaun
/home/sjackman/.linuxbrew/bin/gcc-4.9 -c -DHAVE_CONFIG_H -g
-I/home/sjackman/.linuxbrew/opt/xglibc/include
-I/home/sjackman/.linuxbrew/opt/xbinutils/include
-isystem/home/sjackman/.linuxbrew/include -I.
-I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -pedantic -fpic ../../libiberty/cp-demangle.c -o
pic/cp-demangle.o; \
else true; fi
In file included from ../../libiberty/cp-demangle.c:128:0:
../../libiberty/../include/libiberty.h: In function 'basename':
../../libiberty/../include/libiberty.h:110:38: error: expected
declaration specifiers before 'ATTRIBUTE_RETURNS_NONNULL'
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
I've successfully (I think) installed the linux headers and compiled
and installed binutils and glibc for this sysroot. I'm working on GCC
now.
libiberty.h:110:38: error: expected declaration specifiers before
'ATTRIBUTE_RETURNS_NONNULL'
The configure line is as follows. Any thoughts? Here's the gist of
four log files:
https://gist.github.com/sjackman/cdc4961f0d6751d7e1c0
config.log configure.log libiberty-config.log make.log
Cheers,
Shaun
../configure --with-sysroot=/home/sjackman/.linuxbrew
--prefix=/Cellar/xgcc/4.9.1
--with-native-system-header-dir=/opt/xglibc/include
--with-build-time-tools=/opt/xbinutils/bin
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9
--with-gmp=/home/sjackman/.linuxbrew/opt/gmp
--with-mpfr=/home/sjackman/.linuxbrew/opt/mpfr
--with-mpc=/home/sjackman/.linuxbrew/opt/libmpc
--with-cloog=/home/sjackman/.linuxbrew/opt/cloog
--with-isl=/home/sjackman/.linuxbrew/opt/isl --with-system-zlib
--enable-libstdcxx-time=yes --enable-stage1-checking
--enable-checking=release --enable-lto --disable-werror
--with-pkgversion='Homebrew xgcc 4.9.1' --without-multilib
--with-bugurl='https://github.com/Homebrew/homebrew/issues'
--enable-plugin --disable-nls --disable-multilib
Cheers,
Shaun
/home/sjackman/.linuxbrew/bin/gcc-4.9 -c -DHAVE_CONFIG_H -g
-I/home/sjackman/.linuxbrew/opt/xglibc/include
-I/home/sjackman/.linuxbrew/opt/xbinutils/include
-isystem/home/sjackman/.linuxbrew/include -I.
-I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -pedantic -fpic ../../libiberty/cp-demangle.c -o
pic/cp-demangle.o; \
else true; fi
In file included from ../../libiberty/cp-demangle.c:128:0:
../../libiberty/../include/libiberty.h: In function 'basename':
../../libiberty/../include/libiberty.h:110:38: error: expected
declaration specifiers before 'ATTRIBUTE_RETURNS_NONNULL'
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);