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]

Re: glibc-2.3.5 addon for ColdFire trouble using crosstool


>> Ok, I've updated to crosstool-0.31 with some nasty changes(since I
>> need "m68k-linux" for the compiler/binutils, but "coldfire-linux" for
>> the glibc due to the add-on. 
>
>eww.   I don't suppose you could uniformly use m68k-coldfire-linux,
>or m68kcoldfire-linux, or something like that?

That creates it own rats-nest of problems.  I want to add
'coldfire-linux' as a config target for binutils and gcc so it will be
a global configure tuplet.

>> m68k-linux/gcc-3.4.3-glibc-2.3.5/lib/gcc/m68k-linux/3.4.3/../../../../m68k-linux/sys-include/sys/syscall.h:32:27: bits/syscall.h: No such file or directory
>
>Hrmph.  Dumb question: is there a coldfire-linux directory
>somewhere with the missing file in it?

Nope.  I do see from the log in build-glibc-headers that:

make[3]: Leaving directory `/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.28rc34/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/glibc-2.3.5/resource'
make  -C misc install-headers
make[3]: Entering directory `/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.28rc34/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/glibc-2.3.5/misc'
.././scripts/mkinstalldirs /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc
mkdir /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc
{ \
 echo '/* Generated at libc build time from kernel syscall list.  */';\
 echo ''; \
 echo '#ifndef _SYSCALL_H'; \
 echo '# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \
 echo '#endif'; \
 echo ''; \
 gcc -E -MD -MP -MF /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.d-t1 -MT '/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.d' \
       -x c -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.3/include -isystem /opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include ../sysdeps/unix/sysv/linux/sys/syscall.h  \
        -D_LIBC -dM | \
 sed -n 's@^#define __NR_\([^ ]*\) .*$@#define SYS_\1 __NR_\1@p' | \
 LC_ALL=C sort > /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32; \
 gcc -E -MD -MP -MF /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.d-t2 -MT '/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.d' \
       -x c -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.3/include -isystem /opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include ../sysdeps/unix/sysv/linux/sys/syscall.h  \
        -D_LIBC -dM | \
 sed -n 's@^#define __NR_\([^ ]*\) .*$@#define SYS_\1 __NR_\1@p' | \
 LC_ALL=C sort > /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; \
 if cmp -s /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; then \
   cat /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32; \
 else \
   echo '#include <bits/wordsize.h>'; \
   echo ''; \
   LC_ALL=C comm -12 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; \
   echo '#if __WORDSIZE == 64'; \
   LC_ALL=C comm -13 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; \
   echo '#else'; \
   LC_ALL=C comm -23 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; \
   echo '#endif'; \
 fi; \
 rm -f /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new32 /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new64; \
} > /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new
mv -f /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h.new /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc-headers/misc/syscall-list.h


Which means that build-glibc-headers/misc/syscall-list.h is created
that contains:

/* Generated at libc build time from kernel syscall list.  */

#ifndef _SYSCALL_H
# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
#endif

#define SYS__llseek __NR__llseek
#define SYS__newselect __NR__newselect
#define SYS__sysctl __NR__sysctl
#define SYS_access __NR_access
#define SYS_acct __NR_acct
#define SYS_adjtimex __NR_adjtimex
#define SYS_afs_syscall __NR_afs_syscall
#define SYS_alarm __NR_alarm
#define SYS_bdflush __NR_bdflush
...

Which is what is supposed to be installed in <bits/syscall.h>,
but looking at the install directory
/opt/logicpd/ColdFire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/sys-include/bits
and the nativ compilers /usr/include/bits, the only file missing is syscall.h.

Does anyone have an idea what triggers installing
build-glibc-headers/misc/syscall-list.h as
/opt/logicpd/ColdFire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/sys-include/bits/syscall.h?

I created this port by cloning sysdeps/m68k from glibc-2.3.5 into
ports/sysdeps/coldfire, so I should have the same Makefiles that m68k
uses(and I have to assume that m68k builds for glibc-2.3.5).

Again, any suggestions are *most* appreciated!

-- 
Peter Barada
peter@the-baradas.com

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