LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Glibc-2.17 not compiling on section 6.9 of LFS SVN-20130419 (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-2-17-not-compiling-on-section-6-9-of-lfs-svn-20130419-a-4175459368/)

blackv1rus 04-23-2013 09:45 PM

Glibc-2.17 not compiling on section 6.9 of LFS SVN-20130419
 
Funny thing happening. on the first time, I could compile it without any problem, then now I restarted from beginning and for the seventh time, when I reach this point of the build I get this this

Code:

/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /sources/glibc-build/libc_pic.os: relocation R_X86_64_PC32 against undefined hidden symbol `__strcasecmp_avx' can not be used when making a shared object
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/sources/glibc-build/libc.so] Error 1
make[2]: Leaving directory `/sources/glibc-2.17/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/sources/glibc-2.17'
make: *** [all] Error 2

My host system is Slackware current 64 and I 'm building also a 64 LFS version as of SVN-20130419.

I keep reusing the environment that I build before, also SVN-20130419 to compile my LFS.

I heard about something that binutils could be the problem... any help?

Thanks

spiky0011 04-24-2013 11:33 AM

Hi

Quote:

I keep reusing the environment that I build before,
not sure what this means!!!
I hope you have removed the glibc dir and glibc-build dir each time?

blackv1rus 04-24-2013 03:41 PM

Sorry for the unclear sentence. I meant I keep using the same Temporary System as in section 5, to create the current LFS... And yes the directories are removed after each attempt.

Funny is it worked once.

stoat 04-26-2013 03:45 PM

Quote:

Originally Posted by blackv1rus

I keep reusing the environment that I build before, also SVN-20130419 to compile my LFS.

Quote:

Originally Posted by blackv1rus

I meant I keep using the same Temporary System as in section 5, to create the current LFS...

I guess I would feel sort of compelled to start over and build a new tool chain. Also consider building the stable 7.3 version. I had no issues with it. And there have been no errata published for it so far.

blackv1rus 04-26-2013 07:31 PM

After I rebooted my machine and entered the build environment again, everything went fine. FInished the LFS part already, everything works great so far, now I'm on my way to get Xorg installed in BLFS :-)

Fiendish_Dr_W00 07-11-2020 02:22 PM

Fix: reinstall from source
 
Hi, I recently came across this issue while compiling gettext0.20 for LFS (dev v) on aarch64. It was a bit worrying at first as the error message suggested it needed to compile with
Code:

-fpic
but was doing so already. After some digging, I realised that I had compiled gettext with the older host Glibc version while preparing the temporary environment. Simply re-extracting and recompiling gettext did the trick (or got it compiled past the error point at least, it's still building).


All times are GMT -5. The time now is 05:12 PM.