This is the mail archive of the mailing list for the newlib project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: error building gcc w/ newlib

>> ../gcc-6.1.0/configure --target=$TARGET --prefix=$PREFIX --with-system-zlib --disable-shared --enable-languages=c,c++
>> make
> I believe you still need to pass --with-newlib to the second gcc invocation.
> If you provide the libstdc++-v3 config.log, it should show exactly why
> link tests are being disabled.

Thanks for the suggestion. If I configure the second gcc invocation with "--with-newlib", I get an earlier compile-time error complaining that "typeof" is not declared:

../../../gcc-6.1.0/libquadmath/strtod/strtod_l.c:127:24: warning: implicit declaration of function 'typeof' [-Wimplicit-function-declaration]
 #define SWAP(x, y)  ({ typeof(x) _tmp = x; x = y; y = _tmp; })
../../../gcc-6.1.0/libquadmath/strtod/strtod_l.c:1240:12: note: in expansion of macro 'SWAP'
     (void) SWAP (psrc, pdest);
../../../gcc-6.1.0/libquadmath/strtod/strtod_l.c:127:34: error: expected ';' before '_tmp'
 #define SWAP(x, y)  ({ typeof(x) _tmp = x; x = y; y = _tmp; })

The libstdc++v3 config.log file (from a build configured without "--with-newlib") is attached. There are a number of errors for unrecognized command line options with xgcc, for example:

configure:3952: $? = 0
configure:3941: /proj/microflex/users/jwilkes/gnu/build-gcc/./gcc/xgcc -B/proj/microflex/users/jwilkes/gnu/build-gcc/./gcc/ -B/proj/microflex/tools/sw/x86_64-elf/bin/ -B/proj/microflex/tools/sw/x86_64-elf/lib/ -isystem /proj/microflex/tools/sw/x86_64-elf/include -isystem /proj/microflex/tools/sw/x86_64-elf/sys-include 
   -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.

It also complains about missing "ac_nonexistent.h" file, "memory.h", "dlfcn.h", files.

One of the errors is from "ld" complaining that it can't find crt0.o. I intend to use this tool chain (if I can ever get it to build and install) for FreeRTOS development, and crt0 is neither needed nor used by FreeRTOS, which is why I don't have one.

The last reported error in config.log is:

configure:11376: checking for shl_load
configure:11376: error: Link tests are not allowed after GCC_NO_EXECUTABLES.


John Wilkes | AMD Research |Â | office: +1 425.586.6412 (x26412)

Attachment: config.log
Description: config.log

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]