[ GOMP ] cross compilation ..

Ghassan Almaless ghassan.almaless@gmail.com
Sat Apr 10 14:58:00 GMT 2010


Dear devloppers,

I'm encountering trouble to get my gcc cross compiler to interpret 
#pragma omp directives even with -fopenmp compilation flag.

Leaking of full libC, I compiled a cross gcc and binutils  for mipsel. 
Than i separately compiled libgomp which i found in gcc sources, so I 
dispose of mipsel-unknown-gcc &  libgomp.a

My question is how enabling omp's pragm ?
Put it in another way, how can i generate a gcc for mipsel which 
generates calls to gomp functions so i can link with my static libgomp.a ?

Here you output of my  mipsel-unknown-elf-gcc -v

Using built-in specs.
Target: mipsel-unknown-elf
Configured with: 
/home/almaless/linux/crosstool-ng-1.3.2/mipsel-unknown-elf/src/gcc-4.3.2/configure 
--build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu 
--target=mipsel-unknown-elf 
--prefix=/home/almaless/linux/crosstool-ng-1.2.3/mipsel-unknown-elf 
--with-local-prefix=/home/almaless/linux/crosstool-ng-1.2.3/mipsel-unknown-elf/mipsel-unknown-elf/sys-root 
--disable-multilib 
--with-sysroot=/home/almaless/linux/crosstool-ng-1.2.3/mipsel-unknown-elf/mipsel-unknown-elf/sys-root 
--with-newlib --enable-threads=no --disable-shared --with-arch=mips32 
--with-float=soft 
--with-gmp=/home/almaless/linux/crosstool-ng-1.2.3/mipsel-unknown-elf 
--with-mpfr=/home/almaless/linux/crosstool-ng-1.2.3/mipsel-unknown-elf 
--disable-__cxa_atexit --disable-nls --enable-symvers=gnu 
--enable-languages=c --enable-target-optspace
Thread model: single
gcc version 4.3.2 (GCC)


Many thanks in advance,
G.A



More information about the Gcc-help mailing list