2015-10-26 21:13 GMT+01:00 Antti Kantee <[email protected]>: > On 26/10/15 14:55, Vincent Schwarzer wrote: > >> Hey, >> >> I have compiled OpenMP from source using following options: >> >> ./configure --target=x86_64-rumprun-netbsd --disable-multilib >> --disable-shared >> >> I want to test the library with a simple OMP program i.e. >> https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c . >> I compile and link the program in two separate steps: >> >> x86_64-rumprun-netbsd-gcc -pedantic -I <Path to omp.h> omp_hello.c -c >> > > Ok, that looks correct, but please copypaste unedited commands. That way > there's no chance of human error. I can easily filter irrelevant paths > out, but I can't filter in data which was accidentally removed during > copypaste edit.
Here the full commands and I will keep it in mind for the future. x86_64-rumprun-netbsd-gcc -pedantic -I /tmp/thesis_vs/gcc-build/ omp_hello.c -c x86_64-rumprun-netbsd-gcc -pedantic omp_hello.o -lgomp -o omp_hello.bin /tmp/thesis_vs/gcc-build/.libs/libgomp.a -pthread After reading this from https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html: If build, host, and target are all the same, this is called a native. If > build and host are the same but target is different, this is called a > cross. If build, host, and target are all different this is called a > canadian (for obscure reasons dealing with Canada's political party and > the background of the person working on the build at that time). If host > and target are the same, but build is different, you are using a > cross-compiler to build a native for a different system. Some people call > this a host-x-host, crossed native, or cross-built native. If build and > target are the same, but host is different, you are using a cross compiler > to build a cross compiler that produces code for the machine you're > building on. This is rare, so there is no common way of describing it. > There is a proposal to call this a crossback. > I wonder If I should specify --host=x86_64-netbsd-rumprun additional to the current configure arguments since I cross-compile the library for netbsd environment? > > Depending on the Link command I run into two different erros: >> >> x86_64-rumprun-netbsd-gcc -pedantic omp_hello.o -o omp_hello.bin <path to >> OMP>/libgomp.a -pthread >> >> mp_hello.bin: In function `gomp_verror': >> >> /tmp/gcc-build/../gcc/libgomp/error.c:41: undefined reference to `stderr' >> omp_hello.bin: In function `vfprintf': >> /usr/include/x86_64-linux-gnu/bits/stdio2.h:127: undefined reference to >> `stderr' >> /usr/include/x86_64-linux-gnu/bits/stdio2.h:127: undefined reference to >> `__vfprintf_chk' >> > [etc] > > That looks like the libgomp you are trying to link was built against > Linux, not against Rumprun. Maybe you can paste the complete output for > building libgomp. > I executed the make script with x86_64-rumprun-netbsd-make. Sure , here we go : make all-recursive make[1]: Entering directory `/tmp/thesis_vs/gcc-build' Making all in testsuite make[2]: Entering directory `/tmp/thesis_vs/gcc-build/testsuite' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/thesis_vs/gcc-build/testsuite' make[2]: Entering directory `/tmp/thesis_vs/gcc-build' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c -o alloc.lo ../gcc/libgomp/alloc.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../gcc/libgomp/alloc.c -o alloc.o mv -f .deps/alloc.Tpo .deps/alloc.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c -o barrier.lo ../gcc/libgomp/barrier.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c ../gcc/libgomp/barrier.c -o barrier.o mv -f .deps/barrier.Tpo .deps/barrier.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT critical.lo -MD -MP -MF .deps/critical.Tpo -c -o critical.lo ../gcc/libgomp/critical.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT critical.lo -MD -MP -MF .deps/critical.Tpo -c ../gcc/libgomp/critical.c -o critical.o mv -f .deps/critical.Tpo .deps/critical.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT env.lo -MD -MP -MF .deps/env.Tpo -c -o env.lo ../gcc/libgomp/env.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT env.lo -MD -MP -MF .deps/env.Tpo -c ../gcc/libgomp/env.c -o env.o mv -f .deps/env.Tpo .deps/env.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo ../gcc/libgomp/error.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT error.lo -MD -MP -MF .deps/error.Tpo -c ../gcc/libgomp/error.c -o error.o mv -f .deps/error.Tpo .deps/error.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT iter.lo -MD -MP -MF .deps/iter.Tpo -c -o iter.lo ../gcc/libgomp/iter.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT iter.lo -MD -MP -MF .deps/iter.Tpo -c ../gcc/libgomp/iter.c -o iter.o mv -f .deps/iter.Tpo .deps/iter.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT iter_ull.lo -MD -MP -MF .deps/iter_ull.Tpo -c -o iter_ull.lo ../gcc/libgomp/iter_ull.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT iter_ull.lo -MD -MP -MF .deps/iter_ull.Tpo -c ../gcc/libgomp/iter_ull.c -o iter_ull.o mv -f .deps/iter_ull.Tpo .deps/iter_ull.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT loop.lo -MD -MP -MF .deps/loop.Tpo -c -o loop.lo ../gcc/libgomp/loop.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT loop.lo -MD -MP -MF .deps/loop.Tpo -c ../gcc/libgomp/loop.c -o loop.o mv -f .deps/loop.Tpo .deps/loop.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT loop_ull.lo -MD -MP -MF .deps/loop_ull.Tpo -c -o loop_ull.lo ../gcc/libgomp/loop_ull.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT loop_ull.lo -MD -MP -MF .deps/loop_ull.Tpo -c ../gcc/libgomp/loop_ull.c -o loop_ull.o mv -f .deps/loop_ull.Tpo .deps/loop_ull.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT ordered.lo -MD -MP -MF .deps/ordered.Tpo -c -o ordered.lo ../gcc/libgomp/ordered.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT ordered.lo -MD -MP -MF .deps/ordered.Tpo -c ../gcc/libgomp/ordered.c -o ordered.o mv -f .deps/ordered.Tpo .deps/ordered.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c -o parallel.lo ../gcc/libgomp/parallel.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c ../gcc/libgomp/parallel.c -o parallel.o mv -f .deps/parallel.Tpo .deps/parallel.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT sections.lo -MD -MP -MF .deps/sections.Tpo -c -o sections.lo ../gcc/libgomp/sections.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT sections.lo -MD -MP -MF .deps/sections.Tpo -c ../gcc/libgomp/sections.c -o sections.o mv -f .deps/sections.Tpo .deps/sections.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT single.lo -MD -MP -MF .deps/single.Tpo -c -o single.lo ../gcc/libgomp/single.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT single.lo -MD -MP -MF .deps/single.Tpo -c ../gcc/libgomp/single.c -o single.o mv -f .deps/single.Tpo .deps/single.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT task.lo -MD -MP -MF .deps/task.Tpo -c -o task.lo ../gcc/libgomp/task.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT task.lo -MD -MP -MF .deps/task.Tpo -c ../gcc/libgomp/task.c -o task.o mv -f .deps/task.Tpo .deps/task.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT team.lo -MD -MP -MF .deps/team.Tpo -c -o team.lo ../gcc/libgomp/team.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT team.lo -MD -MP -MF .deps/team.Tpo -c ../gcc/libgomp/team.c -o team.o mv -f .deps/team.Tpo .deps/team.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT work.lo -MD -MP -MF .deps/work.Tpo -c -o work.lo ../gcc/libgomp/work.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT work.lo -MD -MP -MF .deps/work.Tpo -c ../gcc/libgomp/work.c -o work.o mv -f .deps/work.Tpo .deps/work.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT lock.lo -MD -MP -MF .deps/lock.Tpo -c -o lock.lo ../gcc/libgomp/config/posix/lock.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT lock.lo -MD -MP -MF .deps/lock.Tpo -c ../gcc/libgomp/config/posix/lock.c -o lock.o mv -f .deps/lock.Tpo .deps/lock.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c -o mutex.lo ../gcc/libgomp/config/posix/mutex.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c ../gcc/libgomp/config/posix/mutex.c -o mutex.o mv -f .deps/mutex.Tpo .deps/mutex.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT proc.lo -MD -MP -MF .deps/proc.Tpo -c -o proc.lo ../gcc/libgomp/config/posix/proc.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT proc.lo -MD -MP -MF .deps/proc.Tpo -c ../gcc/libgomp/config/posix/proc.c -o proc.o mv -f .deps/proc.Tpo .deps/proc.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT sem.lo -MD -MP -MF .deps/sem.Tpo -c -o sem.lo ../gcc/libgomp/config/posix/sem.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT sem.lo -MD -MP -MF .deps/sem.Tpo -c ../gcc/libgomp/config/posix/sem.c -o sem.o mv -f .deps/sem.Tpo .deps/sem.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT bar.lo -MD -MP -MF .deps/bar.Tpo -c -o bar.lo ../gcc/libgomp/config/posix/bar.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT bar.lo -MD -MP -MF .deps/bar.Tpo -c ../gcc/libgomp/config/posix/bar.c -o bar.o mv -f .deps/bar.Tpo .deps/bar.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT ptrlock.lo -MD -MP -MF .deps/ptrlock.Tpo -c -o ptrlock.lo ../gcc/libgomp/config/posix/ptrlock.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT ptrlock.lo -MD -MP -MF .deps/ptrlock.Tpo -c ../gcc/libgomp/config/posix/ptrlock.c -o ptrlock.o mv -f .deps/ptrlock.Tpo .deps/ptrlock.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT time.lo -MD -MP -MF .deps/time.Tpo -c -o time.lo ../gcc/libgomp/config/posix/time.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT time.lo -MD -MP -MF .deps/time.Tpo -c ../gcc/libgomp/config/posix/time.c -o time.o mv -f .deps/time.Tpo .deps/time.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT fortran.lo -MD -MP -MF .deps/fortran.Tpo -c -o fortran.lo ../gcc/libgomp/fortran.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT fortran.lo -MD -MP -MF .deps/fortran.Tpo -c ../gcc/libgomp/fortran.c -o fortran.o mv -f .deps/fortran.Tpo .deps/fortran.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT affinity.lo -MD -MP -MF .deps/affinity.Tpo -c -o affinity.lo ../gcc/libgomp/config/posix/affinity.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT affinity.lo -MD -MP -MF .deps/affinity.Tpo -c ../gcc/libgomp/config/posix/affinity.c -o affinity.o mv -f .deps/affinity.Tpo .deps/affinity.Plo /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -Werror -Wc,-pthread -g -O2 -pthread -MT target.lo -MD -MP -MF .deps/target.Tpo -c -o target.lo ../gcc/libgomp/target.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc/libgomp -I../gcc/libgomp/config/posix -I../gcc/libgomp -Wall -pthread -Werror -g -O2 -pthread -MT target.lo -MD -MP -MF .deps/target.Tpo -c ../gcc/libgomp/target.c -o target.o mv -f .deps/target.Tpo .deps/target.Plo /bin/sh ./libtool --tag CC --mode=link gcc -Wall -Werror -Wc,-pthread -g -O2 -pthread -Wl,-O1 -o libgomp.la -version-info 1:0:0 -rpath /usr/local/lib/ alloc.lo barrier.lo critical.lo env.lo error.lo iter.lo iter_ull.lo loop.lo loop_ull.lo ordered.lo parallel.lo sections.lo single.lo task.lo team.lo work.lo lock.lo mutex.lo proc.lo sem.lo bar.lo ptrlock.lo time.lo fortran.lo affinity.lo target.lo libtool: link: ar cru .libs/libgomp.a alloc.o barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o ordered.o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o target.o libtool: link: ranlib .libs/libgomp.a libtool: link: ( cd ".libs" && rm -f "libgomp.la" && ln -s "../libgomp.la" " libgomp.la" ) true DO=all multi-do # make make[2]: Leaving directory `/tmp/thesis_vs/gcc-build' make[1]: Leaving directory `/tmp/thesis_vs/gcc-build' I also attached the Makefile generated by the autoconf script and the full error log. > >> My guess at the first error would be that I have to link the rumprun >> libc.a. But which one is the correct one? I found 4 different libc.a in >> the >> rumprun source folder. >> > > Linking libc is done automatically by the toolchain. > > But, to answer your question, the correct one is the one in the > destination directory. How did you determine that the libc.a files are > *different*? The others are most likely identical copies in the object > directory and installation staging area (not sure what the fourth one is). > > I found following libc.a files in my rumprun directory ./rumprun/lib/libc.a ./obj-xen-amd64/buildrump.sh/lib/libc/libc.a ./obj-xen-amd64/dest.stage/lib/libc.a ./platform/xen/rumpobj/lib/libc/libc.a ./platform/xen/rump/lib/libc.a And you are right I should have been more precise and said different locations because the first three locations are identical copies only the last two libc.a files differ from the first three. I used vimdiff <(nm ./platform/xen/rumpobj/lib/libc/libc.a) <(nm ./rumprun/lib/libc.a).
omp_hello.bin: In function `gomp_verror': /tmp/thesis_vs/gcc-build/../gcc/libgomp/error.c:41: undefined reference to `stderr' omp_hello.bin: In function `vfprintf': /usr/include/x86_64-linux-gnu/bits/stdio2.h:127: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:127: undefined reference to `__vfprintf_chk' omp_hello.bin: In function `gomp_verror': /tmp/thesis_vs/gcc-build/../gcc/libgomp/error.c:43: undefined reference to `stderr' omp_hello.bin: In function `parse_boolean': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:856: undefined reference to `__ctype_b_loc' omp_hello.bin: In function `parse_unsigned_long': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:170: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:178: undefined reference to `__errno_location' omp_hello.bin: In function `parse_one_place': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:430: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:448: undefined reference to `__errno_location' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:523: undefined reference to `__errno_location' omp_hello.bin: In function `parse_stacksize': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:723: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:731: undefined reference to `__errno_location' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:740: undefined reference to `__ctype_tolower_loc' omp_hello.bin: In function `parse_schedule': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:89: undefined reference to `__ctype_b_loc' omp_hello.bin: In function `parse_unsigned_long_list': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:226: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:234: undefined reference to `__errno_location' omp_hello.bin: In function `parse_bind_var': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:329: undefined reference to `__ctype_b_loc' omp_hello.bin: In function `parse_places_var': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:557: undefined reference to `__ctype_b_loc' omp_hello.bin: In function `parse_affinity': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:926: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:926: undefined reference to `__errno_location' omp_hello.bin: In function `parse_wait_policy': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:889: undefined reference to `__ctype_b_loc' omp_hello.bin: In function `handle_omp_display_env': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1024: undefined reference to `__ctype_b_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1055: undefined reference to `stderr' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1057: undefined reference to `stderr' omp_hello.bin: In function `fprintf': /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' omp_hello.bin: In function `handle_omp_display_env': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1066: undefined reference to `stderr' omp_hello.bin: In function `fprintf': /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' omp_hello.bin: In function `handle_omp_display_env': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1084: undefined reference to `stderr' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1087: undefined reference to `stderr' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1089: undefined reference to `stderr' omp_hello.bin:/tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1105: more undefined references to `stderr' follow omp_hello.bin: In function `fprintf': /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' omp_hello.bin: In function `handle_omp_display_env': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1159: undefined reference to `stderr' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1118: undefined reference to `stderr' omp_hello.bin: In function `parse_schedule': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:132: undefined reference to `__errno_location' omp_hello.bin: In function `parse_places_var': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:592: undefined reference to `__errno_location' omp_hello.bin: In function `handle_omp_display_env': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:1148: undefined reference to `stderr' omp_hello.bin: In function `fprintf': /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `stderr' /usr/include/x86_64-linux-gnu/bits/stdio2.h:97: undefined reference to `__fprintf_chk' omp_hello.bin: In function `parse_spincount': /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:800: undefined reference to `__errno_location' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:809: undefined reference to `__ctype_tolower_loc' /tmp/thesis_vs/gcc-build/../gcc/libgomp/env.c:784: undefined reference to `__ctype_b_loc' collect2: error: ld returned 1 exit status
Makefile
Description: Binary data
