You are not logged in.
Pages: 1
I have rebuilt glibc, but now I'm facing problems compiling other software:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
This is what I get all the time. How can this issue be solved?
I've tried to compile it with the following flags:
-march=athlon-xp -O2 -pipe -fomit-frame-pointer
DIY: Doom-It-Yourself
Offline
did you rebuild gcc and your kernel with your new options and glibc?
AKA uknowme
I am not your friend
Offline
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
Umm, read the error: no such file or directory. You are missing a file, or have your include paths pointing to the wrong place. Run "find / -name errno.h" and point your include path whereever you find it.
Offline
I've rebuilt gcc and my kernel with my optimization flags now, and I made sure the path specified in the PKGBUILD points to my kernel headers now. Now it won't compile at all :?
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x149): In function `pthread_initialize':
: undefined reference to `_res'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x10ed): In function `__pthread_reset_main_thread':
: undefined reference to `_h_errno'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x10fc): In function `__pthread_reset_main_thread':
: undefined reference to `_errno'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1102): In function `__pthread_reset_main_thread':
: undefined reference to `_res'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1b8): undefined reference to `_errno'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c0): undefined reference to `_h_errno'
/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c8): undefined reference to `_res'
collect2: ld returned 1 exit status
make[2]: *** [/var/abs/base/glibc/src/glibc-build/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory `/var/abs/base/glibc/src/glibc-2.3.3/linuxthreads'
make[1]: *** [linuxthreads/others] Error 2
make[1]: Leaving directory `/var/abs/base/glibc/src/glibc-2.3.3'
make: *** [all] Error 2
DIY: Doom-It-Yourself
Offline
Could you provide us with what kernel you're using, what you changed, etc?
Building glibc against 2.6 kernelheaders is a bit tricky, since all kinds of things can, and will go wrong. You have to get a set of sanitized kernelheaders and build against those instead. The PKGBUILD for glibc in testing does that.
Offline
Could you provide us with what kernel you're using, what you changed, etc?
Building glibc against 2.6 kernelheaders is a bit tricky, since all kinds of things can, and will go wrong. You have to get a set of sanitized kernelheaders and build against those instead. The PKGBUILD for glibc in testing does that.
I'm using a customized version of the 2.6(.8.1)-scsi kernel, I just ripped out stuff I don't need for my setup like filesystems, device modules, smp support, speed stepping and other stuff.
I'll give the PKGBUILD from testing a tryand let you know what my experiences are. Thanks for the help you all
DIY: Doom-It-Yourself
Offline
Aaaah, the glibc PKGBUILD worked great!
Thanks alot!
DIY: Doom-It-Yourself
Offline
Pages: 1