This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: Hello, World issues


>>>>> "Josh" == Joshua Fitzgerald <josh@spcontrols.com> writes:

    Josh> I built eCOS for the Linux synthetic target using all of the
    Josh> default settings. I then wrote a very simple "Hello, World"
    Josh> C program and attempted to compile it with the following
    Josh> command line:

    Josh> i386-elf-gcc -I/home/josh/prj/smarthub/ecos_synth_install/include 
    Josh> HelloWorld.c -L/home/josh/prj/smarthub/ecos_synth_install/lib 
    Josh> -Ttarget.ld -nostdlib

    Josh> and I get an error from the linker complaining that it
    Josh> cannot find "libgcc_eh.a". I did a search for this file and
    Josh> could not find it in the project's buidl subdirectories or
    Josh> in the eCos GNU toolchain directories. Any ideas?

Why are you building with i386-elf-gcc? The default should be gcc,
i.e. the native Linux compiler, unless you are doing something very
unusual like cross-compiling the synthetic target under Windows. AFAIK
all recent versions of the native gcc should come with a libgcc_eh.a.

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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