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]

undefined reference to `__gmon_start__' (for target sparc64-linux)


Hi all,

I am trying to compile cross compiler (3.1) for target sparc64-linux, host 
sparc-linux.  I build binutils and bootstrapped gcc.  When I try to compile 
glibc (2.2.5) I get this error:


/mnt/lfs/BUILD/glibc-build/csu/crti.o: In function `call_gmon_start':
/mnt/lfs/BUILD/glibc-build/csu/crti.S:21: undefined reference to 
`__gmon_start__'
/mnt/lfs/BUILD/glibc-build/csu/crti.S:22: undefined reference to 
`__gmon_start__'
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/BUILD/glibc-build/nscd/nscd] Error 1
make[2]: Leaving directory `/mnt/lfs/BUILD/glibc-2.2.5/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/mnt/lfs/BUILD/glibc-2.2.5'
make: *** [all] Error 2

When I do make -k the build finishes shortly with only one other error, the 
same as above.

What am I doing wrong?  I'm guessing the linker is using the host's library 
somewhere?

Thanks,
IvanK.

------
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]