Hi all,

I am facing build error, when I try to bootstrap GCC trunk for native
aarch64-unknown-linux-gnu configuration in openemedded/V8 model.

Linker error occurs while building stage 1 GCC.

(Snip)
/usr/lib/gcc/aarch64-oe-linux/4.7.3/../../../../aarch64-oe-linux/bin/ld:
gcov: hidden symbol `__deregister_frame_info' in
/usr/lib/gcc/aarch64-oe-linux/4.7.3/../../../aarch64-oe-linux/4.7.3/libgcc_eh.a(unwind-dw2-fde-dip.o)
is referenced by DSO
/usr/lib/gcc/aarch64-oe-linux/4.7.3/../../../../aarch64-oe-linux/bin/ld:
final link failed: Bad value
collect2: error: ld returned 1 exit status
(Snip)

The steps to reproduce the issue is attached.
Need some help to solve this.

regards,
Venkat.
Below are the steps to reproduce:

Step 1
------
Download the openembedded image and resize it by adding ~10GB. 

Steps to do that is described here.
https://wiki.linaro.org/WorkingGroups/ToolChain/IncreaseImageSize

I used latest image "vexpress64-openembedded_lamp-armv8_20130526-344.img" at 
http://www.linaro.org/engineering/armv8

Step 2
------ 
Check out GCC trunk
svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc199474

I used trunk revision 199474

Step 3
------
Mount and copy GCC source to /home/root

sudo mount -o loop,offset=54525952 -t ext4
vexpress64-openembedded_lamp-armv8_20130526-344.img  /mnt/temp2

copy the source to /mnt/temp2/home/root

Step 4
------
Start the V8 model and boot openembedded image

./Foundation_v8pkg/Foundation_v8 --image img-foundation.axf
--block-device vexpress64-openembedded_lamp-armv8_20130526-344.img
--network=nat --network-nat-ports=8022=22

Step 5
-------
In the xterm window go to /home/root, create a build directory, configure and 
run make.

mkdir build
cd build
../gcc199474/configure  --enable-languages=c,c++ --disable-threads
--disable-libssp --disable-libgomp --disable-libmudflap
--disable-libatomic --without-libquadmath --disable-libquadmath
--prefix=/home/root/install
make

_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to