This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: building gcc-3.2.3 for x86_64


Andreas Plaß wrote:
I tried to compile crosstool-0.28-rc37 on a i686 host (Redhat Enterprise
Linux 3.0 WS) with the following configuration:

target: x86_64
gcc-3.2.3
glibc-2.3.2

what I did so far was:

downloaded the sources,
removed    patches/glibc-2.3.2/gcc-pr-9552-workaround.patch
and started 'demo-x86_64'

Then the compilation of gcc failed and stopped with the message

"gthr-posix.h:37:21: pthread.h: No such file or directory"

Please try with gcc-3.3.4 or gcc-3.4.2. gcc-3.2.3 is a bit old. Or do you have a particular reason you need that old version of gcc?

I have to build a static library which will be linked on the target platform with gcc-3.2.3 and glibc-2.3.2. I could build the lib with the gcc-3.4.0-glibc.2.3.2 cross compiler (binary from http://developer.osdl.org/dev/plm/cross_compile/). But I'm not sure if linking libraries compiled from different versions of gcc will correctly link. Probably we (our customer) have to try.

Yeah, probably want to match versions.


gcc-3.2.3 was early days for x86_64, though, so you might want
to find the source for the exact compiler used on your target,
and build that instead of vanilla gnu.org sources.  It may
have a patch for this problem.
- Dan


-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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