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]

linux to net BSD cross compiler problems


I am attempting to make a Linux to net BSD cross compiler and I'm having
real problems.  Can anyone tell me what I am doing wrong?

I am using:
binutils-2.11
gcc-2.95.3
glibc-2.2.2
make-3.79.1

I am running it on Redhat 6.2, linux 2.2.14-5.0 on a i586

I have build a native tool suite (make, gcc, binutils, glibc) and have
(except for binutils) have their bins in my path.

I have build a cross compiled version of the binutils and have added it
to my path.

I have created a pair of directories containing the contents of a NetBSD
1.4.3 box's /usr/include and /usr/lib

I have used the following proceedure to try to build it:

export target=i386-pc-netbsd1.4.3
export binutils=binutils-2.11
export gcc=gcc-2.95.3
export glibc=glibc-2.2.2


cd <my build dir>
prefix=/tools/sw_build/$host/$target/$gcc

/tools/src/$gcc/configure  --target=$target --prefix=$prefix
--enable-cpp --with-headers=<dir with contents from NetBSD /usr/include>
--with-libs=<dir with contents from NetBSD /usr/lib>

 make LDFLAGS=-static


I get :

...
do \
  echo ${name}; \

/.automount/vol/tools/src/build/host_linux_TEST/i386-pc-netbsd1.4.3/gcc-2.95.3/gcc/xgcc
-B/.automount/vol/tools/src/build/host_linux_TEST/i386-pc-netbsd1.4.3/gcc-2.95.3/gcc/
-B/tools/sw_build/host_linux_TEST/i386-pc-netbsd1.4.3/gcc-2.95.3/i386-pc-netbsd1.4.3/bin/
-I/tools/sw_build/host_linux_TEST/i386-pc-netbsd1.4.3/gcc-2.95.3/i386-pc-netbsd1.4.3/include
-O2  -DCROSS_COMPILE -DIN_GCC     -g -O2
-I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I/tools/src/gcc-2.95.3/gcc -I/tools/src/gcc-2.95.3/gcc/config
-I/tools/src/gcc-2.95.3/gcc/../include -c -DL${name} \
      -DUSE_COLLECT2 /tools/src/gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \

  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i386-pc-netbsd1.4.3-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
/tmp/ccYihw1x.s: Assembler messages:
/tmp/ccYihw1x.s:125: Error: Alignment not a power of 2
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory
`/.automount/vol/tools/src/build/host_linux_TEST/i386-pc-netbsd1.4.3/gcc-2.95.3/gcc'

make: *** [all-gcc] Error 2


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


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