Skip to content

Instantly share code, notes, and snippets.

@j-marjanovic
Created April 13, 2015 15:50
Show Gist options
  • Save j-marjanovic/fb9e834c0ca4a220fade to your computer and use it in GitHub Desktop.
Save j-marjanovic/fb9e834c0ca4a220fade to your computer and use it in GitHub Desktop.
Jan@Jan-PC /tmp
$ nios2-newlib-gen --custom "-O3" --verbose ./build ./lib
Building Newlib may take a few minutes... Please be patient.
Newlib Source Dir: /cygdrive/c/altera/14.1/nios2eds/bin/gnu/src/newlib-1.18
Newlib Build Dir: /tmp/build
Newlib Install Dir: /tmp/lib
Configuring newlib to build a smallc C library in /tmp/build/smallc...
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... nios2-unknown-elf
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking to see if cat works as expected... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for version 0.10 (or later revision) of PPL... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libelf.h usability... no
checking libelf.h presence... no
checking for libelf.h... no
checking gelf.h usability... no
checking gelf.h presence... no
checking for gelf.h... no
checking libelf/libelf.h usability... no
checking libelf/libelf.h presence... no
checking for libelf/libelf.h... no
checking libelf/gelf.h usability... no
checking libelf/gelf.h presence... no
checking for libelf/gelf.h... no
checking for default BUILD_CONFIG...
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... windres
checking for windmc... windmc
checking for objcopy... objcopy
checking for objdump... objdump
checking for nios2-elf-cc... no
checking for nios2-elf-gcc... nios2-elf-gcc
checking for nios2-elf-c++... nios2-elf-c++
checking for nios2-elf-gcc... nios2-elf-gcc
checking for nios2-elf-gcj... no
checking for nios2-elf-gfortran... no
checking for nios2-elf-ar... nios2-elf-ar
checking for nios2-elf-as... nios2-elf-as
checking for nios2-elf-dlltool... no
checking for nios2-elf-ld... nios2-elf-ld
checking for nios2-elf-lipo... no
checking for nios2-elf-nm... nios2-elf-nm
checking for nios2-elf-objdump... nios2-elf-objdump
checking for nios2-elf-ranlib... nios2-elf-ranlib
checking for nios2-elf-strip... nios2-elf-strip
checking for nios2-elf-windres... no
checking for nios2-elf-windmc... no
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
Configure smallc newlib -> COMPLETE.
Compiling newlib for a smallc C library...
N2GNU_BUILD_NEWLIB=smallc STAGE_AS_WRAPPER=/tmp/build/build-newlib-stage-wrapper STAGE_AR_WRAPPER=/tmp/build/b
uild-newlib-stage-wrapper STAGE_CC_WRAPPER=/tmp/build/build-newlib-stage-wrapper STAGE_RANLIB_WRAPPER=/tmp/bui
ld/build-newlib-stage-wrapper make -j 1 all-target
Checking multilib configuration for newlib...
mkdir -p -- nios2-elf/newlib
Configuring in nios2-elf/newlib
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-cygwin
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for nios2-elf-strip... nios2-elf-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking host system type... nios2-unknown-elf
checking for gcc... /tmp/build/build-newlib-stage-wrapper nios2-elf-gcc -B/tmp/build/smallc/nios2-elf/newlib/
-isystem /tmp/build/smallc/nios2-elf/newlib/targ-include -isystem /cygdrive/c/altera/14.1/nios2eds/bin/gnu/src
/newlib-1.18/newlib/libc/include -B/tmp/build/smallc/nios2-elf/libgloss/nios2 -L/tmp/build/smallc/nios2-elf/li
bgloss/libnosys -L/cygdrive/c/altera/14.1/nios2eds/bin/gnu/src/newlib-1.18/libgloss/nios2
checking dependency style of /tmp/build/build-newlib-stage-wrapper nios2-elf-gcc -B/tmp/build/smallc/nios2-elf
/newlib/ -isystem /tmp/build/smallc/nios2-elf/newlib/targ-include -isystem /cygdrive/c/altera/14.1/nios2eds/bi
n/gnu/src/newlib-1.18/newlib/libc/include -B/tmp/build/smallc/nios2-elf/libgloss/nios2 -L/tmp/build/smallc/nio
s2-elf/libgloss/libnosys -L/cygdrive/c/altera/14.1/nios2eds/bin/gnu/src/newlib-1.18/libgloss/nios2 ... gcc3
checking whether we are using GNU C... yes
checking whether /tmp/build/build-newlib-stage-wrapper nios2-elf-gcc -B/tmp/build/smallc/nios2-elf/newlib/ -is
ystem /tmp/build/smallc/nios2-elf/newlib/targ-include -isystem /cygdrive/c/altera/14.1/nios2eds/bin/gnu/src/ne
wlib-1.18/newlib/libc/include -B/tmp/build/smallc/nios2-elf/libgloss/nios2 -L/tmp/build/smallc/nios2-elf/libgl
oss/libnosys -L/cygdrive/c/altera/14.1/nios2eds/bin/gnu/src/newlib-1.18/libgloss/nios2 accepts -g... no
checking for nios2-elf-as... /tmp/build/build-newlib-stage-wrapper nios2-elf-as
checking for nios2-elf-ar... /tmp/build/build-newlib-stage-wrapper nios2-elf-ar
checking for nios2-elf-ranlib... /tmp/build/build-newlib-stage-wrapper nios2-elf-ranlib
checking for nios2-elf-readelf... nios2-elf-readelf
checking for a BSD-compatible install... /bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a sed that does not truncate output... /bin/sed
checking how to print strings... printf
checking for gawk... (cached) gawk
checking for .preinit_array/.init_array/.fini_array support... (cached) no
checking whether long double type exists... yes
checking whether long double equals double... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
gawk: ./confT52KGo/subs.awk:1: BEGIN {\r
gawk: ./confT52KGo/subs.awk:1: ^ backslash not last character on line
gawk: ./confT52KGo/subs.awk:1: BEGIN {\r
gawk: ./confT52KGo/subs.awk:1: ^ syntax error
config.status: error: could not create Makefile
Makefile:9527: recipe for target 'configure-target-newlib' failed
make: *** [configure-target-newlib] Error 1
nios2-newlib-gen: Unable to Compile smallc newlib
See log file /tmp/build-newlib.2015-04-13-17-49-01 for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment