tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libgcc not built?



Thanks for your help Matthew,

I was able, with your adivces, to build libgcc.a and also libc.a.

But some symbols are missing and I need to work more on this.

I also spent some time to rebase my work on top of
https://github.com/netbsd/src

It's there: https://github.com/fallen/NetBSD (I forked the repo)

But here is one I don't understand that I got on the freshly rebased
port, some build system understanding issue I guess:

dependall-paxctl ===> .
dependall ===> paxctl
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/lm32--netbsd-install
-d
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/lm32--netbsd-install
-d
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/sys
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/lm32--netbsd-install
-d
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/ufs
cd /home/fallen/src/tools/paxctl/../../sys/arch && 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/nbpax -s
/include\\/// -rw      ./aarch64/include/disklabel.h
./aarch64/include/elf_machdep.h ./acorn32/include/disklabel.h
./acorn32/include/elf_machdep.h ./algor/include/disklabel.h
./algor/include/elf_machdep.h ./alpha/include/disklabel.h
./alpha/include/elf_machdep.h ./amd64/include/disklabel.h
./amd64/include/elf_machdep.h ./amiga/include/disklabel.h
./amiga/include/elf_machdep.h ./amigappc/include/disklabel.h
./amigappc/include/elf_machdep.h ./arc/include/disklabel.h
./arc/include/elf_machdep.h ./arm/include/disklabel.h
./arm/include/elf_machdep.h ./atari/include/disklabel.h
./atari/include/elf_machdep.h ./bebox/include/disklabel.h
./bebox/include/elf_machdep.h ./cats/include/disklabel.h
./cats/include/elf_machdep.h ./cesfic/include/disklabel.h
./cesfic/include/elf_machdep.h ./cobalt/include/disklabel.h
./cobalt/include/elf_machdep.h ./dreamcast/include/disklabel.h
./dreamcast/include/elf_machdep.h ./emips/include/disklabel.h
./emips/include/elf_machdep.h ./epoc32/include/disklabel.h
./epoc32/include/elf_machdep.h ./evbarm/include/disklabel.h
./evbarm/include/elf_machdep.h ./evbcf/include/disklabel.h
./evbcf/include/elf_machdep.h ./evbmips/include/disklabel.h
./evbmips/include/elf_machdep.h ./evbppc/include/disklabel.h
./evbppc/include/elf_machdep.h ./evbsh3/include/disklabel.h
./evbsh3/include/elf_machdep.h ./ews4800mips/include/disklabel.h
./ews4800mips/include/elf_machdep.h ./hp300/include/disklabel.h
./hp300/include/elf_machdep.h ./hpc/stand/hpcboot/arm/elf_machdep.h
./hpc/stand/hpcboot/mips/elf_machdep.h
./hpc/stand/hpcboot/sh3/elf_machdep.h
./hpc/stand/include/machine/disklabel.h
./hpc/stand/include/machine/elf_machdep.h ./hpcarm/include/disklabel.h
./hpcarm/include/elf_machdep.h ./hpcmips/include/disklabel.h
./hpcmips/include/elf_machdep.h
./hpcmips/stand/include/machine/disklabel.h
./hpcmips/stand/include/machine/elf_machdep.h
./hpcmips/stand/include/mips/elf_machdep.h ./hpcsh/include/disklabel.h
./hpcsh/include/elf_machdep.h ./hppa/include/disklabel.h
./hppa/include/elf_machdep.h ./i386/include/disklabel.h
./i386/include/elf_machdep.h ./ia64/include/disklabel.h
./ia64/include/elf_machdep.h ./ibmnws/include/disklabel.h
./ibmnws/include/elf_machdep.h ./iyonix/include/disklabel.h
./iyonix/include/elf_machdep.h ./landisk/include/disklabel.h
./landisk/include/elf_machdep.h ./luna68k/include/disklabel.h
./luna68k/include/elf_machdep.h ./m68k/include/elf_machdep.h
./mac68k/include/disklabel.h ./mac68k/include/elf_machdep.h
./macppc/include/disklabel.h ./macppc/include/elf_machdep.h
./mips/include/elf_machdep.h ./mipsco/include/disklabel.h
./mipsco/include/elf_machdep.h ./mmeye/include/disklabel.h
./mmeye/include/elf_machdep.h ./mvme68k/include/disklabel.h
./mvme68k/include/elf_machdep.h ./mvmeppc/include/disklabel.h
./mvmeppc/include/elf_machdep.h ./netwinder/include/disklabel.h
./netwinder/include/elf_machdep.h ./news68k/include/disklabel.h
./news68k/include/elf_machdep.h ./newsmips/include/disklabel.h
./newsmips/include/elf_machdep.h ./next68k/include/disklabel.h
./next68k/include/elf_machdep.h ./ofppc/include/disklabel.h
./ofppc/include/elf_machdep.h ./or1k/include/disklabel.h
./or1k/include/elf_machdep.h ./playstation2/include/disklabel.h
./playstation2/include/elf_machdep.h ./pmax/include/disklabel.h
./pmax/include/elf_machdep.h ./powerpc/include/elf_machdep.h
./prep/include/disklabel.h ./prep/include/elf_machdep.h
./riscv/include/disklabel.h ./riscv/include/elf_machdep.h
./rs6000/include/disklabel.h ./rs6000/include/elf_machdep.h
./sandpoint/include/disklabel.h ./sandpoint/include/elf_machdep.h
./sbmips/include/disklabel.h ./sbmips/include/elf_machdep.h
./sgimips/include/disklabel.h ./sgimips/include/elf_machdep.h
./sh3/include/disklabel.h ./sh3/include/elf_machdep.h
./shark/include/disklabel.h ./shark/include/elf_machdep.h
./sparc/include/disklabel.h ./sparc/include/elf_machdep.h
./sparc64/include/disklabel.h ./sparc64/include/elf_machdep.h
./sun2/include/disklabel.h ./sun2/include/elf_machdep.h
./sun3/include/disklabel.h ./sun3/include/elf_machdep.h
./sun68k/include/disklabel.h ./usermode/include/disklabel.h
./usermode/include/elf_machdep.h ./vax/include/disklabel.h
./vax/include/elf_machdep.h ./x68k/include/disklabel.h
./x68k/include/elf_machdep.h ./zaurus/include/disklabel.h
./zaurus/include/elf_machdep.h ews4800mips/include/pdinfo.h
ews4800mips/include/vtoc.h dreamcast/include/endian_machdep.h
evbsh3/include/endian_machdep.h hpcsh/include/endian_machdep.h
landisk/include/endian_machdep.h mmeye/include/endian_machdep.h
sh3/include/endian_machdep.h 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
cd /home/fallen/src/tools/paxctl/../../include && 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/nbpax
-rw disktab.h
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
cd /home/fallen/src/tools/paxctl/../../sys/sys && 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/nbpax
-rw bootblock.h  disklabel.h disklabel_acorn.h disklabel_gpt.h
disklabel_rdb.h  dkbad.h  exec_elf.h exec_ecoff.h
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/sys
cd /home/fallen/src/tools/paxctl/../../sys/ufs && 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/nbpax
-rw ffs/ffs_extern.h ffs/fs.h ufs/ufs_extern.h ufs/ufs_quota.h
ufs/quota.h ufs/dir.h ufs/dinode.h ufs/quota1.h ufs/quota2.h
ufs/extattr.h ufs/ufs_bswap.h ufs/ufsmount.h ufs/dirhash.h ufs/inode.h
ufs/ufs_wapbl.h
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/ufs
cd
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
&& rm -f machine && 
/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/bin/lm32--netbsd-install
-l s -r milkymist machine
#   compile  paxctl/paxctl.lo
cc -O 
-I/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
-I/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include
-I/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
-I/home/fallen/src/obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/compat
-I/home/fallen/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -D_KERNTYPES -c -o paxctl.lo.o   
/home/fallen/src/tools/paxctl/../../usr.sbin/paxctl/paxctl.c
In file included from
/home/fallen/src/tools/paxctl/../../usr.sbin/paxctl/paxctl.c:43:0:
/home/fallen/src/tools/paxctl/../../usr.sbin/paxctl/../../sys/sys/exec_elf.h:51:10:
fatal error: nbinclude/machine/elf_machdep.h: No such file or directory
 #include <nbinclude/machine/elf_machdep.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

The "machine" symbolic link is created, and it points to "milkymist".

But the "milkymist" directory is not created.

fallen@fallen-ThinkPad-X260:~/src$ ls -l
obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/lm32
ls: cannot access
'obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/lm32': No
such file or directory
fallen@fallen-ThinkPad-X260:~/src$ ls -l
obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/milkymist
ls: cannot access
'obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/milkymist':
No such file or directory
fallen@fallen-ThinkPad-X260:~/src$ ls -l
obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/machine
lrwxrwxrwx 1 fallen fallen 9 Apr 29 09:03
obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude/machine ->
milkymist

fallen@fallen-ThinkPad-X260:~/src$ ls
obj/tooldir.Linux-4.18.0-17-generic-x86_64/include/nbinclude
aarch64  amiga     bebox      dreamcast  evbmips      hpc      i386    
luna68k  mips     netwinder  or1k          riscv      sh3      sun3      vax
acorn32  amigappc  cats       emips      evbppc       hpcarm   ia64    
m68k     mipsco   news68k    playstation2  rs6000     shark    sun68k   
x68k
algor    arc       cesfic     epoc32     evbsh3       hpcmips  ibmnws  
mac68k   mmeye    newsmips   pmax          sandpoint  sparc    sys      
zaurus
alpha    arm       cobalt     evbarm     ews4800mips  hpcsh    iyonix  
machine  mvme68k  next68k    powerpc       sbmips     sparc64  ufs
amd64    atari     disktab.h  evbcf      hp300        hppa     landisk 
macppc   mvmeppc  ofppc      prep          sgimips    sun2     usermode

I've read a few Makefiles around without understanding why it is missing.

Any idea?

Le 02/04/2019 à 23:37, matthew green a écrit :
> hmm, since you don't actually want native GCC, can you see
> what happens if you work from now?  ie, the bootstrap-libgcc
> phase should be sufficient, and the majority of it is about
> the other commands.
>
>
> for the actual error, is libgcc installed anywhere in your
> $DESTDIR?  step 6 should have done this:
>
>> 6. In src/external/gpl3/gcc/lib/libgcc, do
>>    "nbmake-MACHINE obj includes dependall install".
> did the 'install' not do anything here?
>
>
>
> .mrg.
>
> ps: i see you are using an extremely old netbsd, that has
> GCC 4.5?  that's netbsd-6, which we stopped maintaining
> a while ago now.  any chance you can update your tree to
> something newer?  -current has GCC 7 (and will be in the
> netbsd 9 release), -8 has GCC 5, and -7 has GCC 4.8.



Home | Main Index | Thread Index | Old Index