avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Compiling the avr-gcc cross compiler - error


From: Bob & Sabine von Knobloch
Subject: [avr-gcc-list] Compiling the avr-gcc cross compiler - error
Date: Mon, 26 Jan 2009 11:57:54 +0100
User-agent: Thunderbird 1.5.0.14 (X11/20060911)

I have a problem with my avr project and wish to use the latest
toolchain before I ask the avr-chat forum for help.
Sadly, I cannot seem to compile gcc for avr and get the following error:

checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.

I have searched for information on this error but found no relevant
information and must now ask the avr-gcc list for help.
Here are the relevant facts:
I want to compile gcc 4.3.2 for avr.

I have compiled and installed (before compiling gcc) binutils 2.19 and
am using:

     gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
    on Suse linux 10.2 (32-bit).

config.log does not show any (I think) relevant errors.

Some c++ related stuff:

    conftest.c:2: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'me'
    configure:3636: $? = 1
    configure: failed program was:
    | #ifndef __cplusplus
    |   choke me
    | #endif

and

    conftest.cc: In function 'int main()':
    conftest.cc:13: error: 'exit' was not declared in this scope
    configure:4088: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h.  */
    |
    | int
    | main ()
    | {
    | exit (42);
    |   ;
    |   return 0;
    | }

and, at the end

    configure: exit 0

which appears to me that configure is successful. A Makefile is built
and configure reported no errors.

my command line for gcc configure is:
    ../configure --prefix=/opt/cross --target=avr --enable-languages=c
--disable-nls --disable-libssp --with-dwarf2
and I am compiling in a subdirectory of gcc (as recommended in "Building
and installing the GNU tool chain on the avr-libc website.
The prefix conforms to the SUSE build as it expects these files here
(and adjusts the PATH accordingly).

Can anybody point me in the right direction ?

Many thanks,
Robert von Knobloch







reply via email to

[Prev in Thread] Current Thread [Next in Thread]