[Clfs-support] Compilation error for SPARC v9 Multilib

Joe Ciccone jciccone at gmail.com
Mon Jan 21 15:00:17 PST 2008


boz283 wrote:
>
>  
>
> -----Original Message-----
> *From:* clfs-support-bounces at lists.cross-lfs.org
> [mailto:clfs-support-bounces at lists.cross-lfs.org] *On Behalf Of *boz283
> *Sent:* Saturday, January 19, 2008 10:04 PM
> *To:* clfs-support at lists.cross-lfs.org
> *Subject:* [Clfs-support] Compilation error for SPARC v9 Multilib
>
>  
>
> At section 5.9 of SPARC Cross-Compiled Linux From Scratch - Version
> SVN-20080119-Sparc64-Multilib
>
> http://cross-lfs.org/view/svn/sparc64/cross-tools/glibc.html
>
> When I say make, I get the following error. I have googled for it, and
> I didn’t find any error. I looked at the code and deleted “1” from one
> of the parameters. But then I got to the second error which is shown
> under =====.
>
>  
>
>  
>
> /clfs/sources/glibc-build/nptl/pthread_cond_signal.o.dt -MT
> /home/sparc/clfs/sources/glibc-build/nptl/pthread_cond_signal.o
>
> pthread_cond_signal.c:51:19: error: macro "lll_futex_wake_unlock"
> passed 5 arguments, but takes just 4
>
> pthread_cond_signal.c: In function '__pthread_cond_signal':
>
> pthread_cond_signal.c:49: error: 'lll_futex_wake_unlock' undeclared
> (first use in this function)
>
> pthread_cond_signal.c:49: error: (Each undeclared identifier is
> reported only once
>
> pthread_cond_signal.c:49: error: for each function it appears in.)
>
> make[2]: ***
> [/home/sparc/clfs/sources/glibc-build/nptl/pthread_cond_signal.o] Error 1
>
> make[2]: Leaving directory `/home/sparc/clfs/sources/glibc-2.7/nptl'
>
> make[1]: *** [nptl/subdir_lib] Error 2
>
> make[1]: Leaving directory `/home/sparc/clfs/sources/glibc-2.7'
>
> make: *** [all] Error 2
>
>  
>
> ../nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: In function
> '__old_sem_wait':
>
> ../nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c:158: error:
> 'futex' undeclared (first use in this function)
>
> ../nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c:158: error:
> (Each undeclared identifier is reported only once
>
> ../nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c:158: error:
> for each function it appears in.)
>
> make[2]: *** [/home/sparc/clfs/sources/glibc-build/nptl/sem_wait.os]
> Error 1
>
> make[2]: Leaving directory `/home/sparc/clfs/sources/glibc-2.7/nptl'
>
> make[1]: *** [nptl/subdir_lib] Error 2
>
> make[1]: Leaving directory
>
>  
>
>  
>
>  
>
> I have added this to sem_wait.c at tht ebeginning of the function
>
> Int *futex = (int *) sem;
>
> As I have seen from this website
>
> http://www.koders.com/c/fid292BACA000810CF10A513A9A4E400B574BA2BD1D.aspx.
>
>  
>
> Glibc finished compiling without errors.
>
> Am I doing something that is correct?
>
>
I can confirm that it's broken, Looking into the fix that you posted.



More information about the Clfs-support mailing list