Open vmlemon opened 5 years ago
lspci
reports:
tyson@G4Buntu:~$ sudo lspci -vvvv
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 16, Cache Line Size: 32 bytes
Capabilities: [80] AGP version 1.0
Status: RQ=8 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
Kernel driver in use: agpgart-uninorth
Kernel modules: uninorth-agp
0000:00:10.0 VGA compatible controller: ATI Technologies Inc M9+ 5C63 [Radeon Mobility 9200 (AGP)] (rev 01)
Subsystem: ATI Technologies Inc M9+ 5C63 [Radeon Mobility 9200 (AGP)]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 255 (2000ns min), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 48
Region 0: Memory at 98000000 (32-bit, prefetchable) [size=128M]
Region 1: I/O ports at 0400 [disabled] [size=256]
Region 2: Memory at 90000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at f1000000 [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Status: RQ=80 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- Rate=<none>
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 16, Cache Line Size: 32 bytes
Kernel modules: uninorth-agp
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 16, Cache Line Size: 32 bytes
Region 0: Memory at 80000000 (32-bit, non-prefetchable) [size=512K]
Kernel driver in use: macio
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 27
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 28
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 16 (750ns min, 21500ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 29
Region 0: Memory at 80083000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10)
Subsystem: NEC Corporation USB
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 16 (250ns min, 10500ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 63
Region 0: Memory at 80082000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME+
Kernel driver in use: ohci_hcd
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10)
Subsystem: NEC Corporation USB
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 16 (250ns min, 10500ns max), Cache Line Size: 32 bytes
Interrupt: pin B routed to IRQ 63
Region 0: Memory at 80081000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME+
Kernel driver in use: ohci_hcd
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if 20)
Subsystem: NEC Corporation USB 2.0
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 16 (4000ns min, 8500ns max), Cache Line Size: 32 bytes
Interrupt: pin C routed to IRQ 63
Region 0: Memory at 80080000 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: ehci_hcd
0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 16, Cache Line Size: 32 bytes
Kernel modules: uninorth-agp
0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
Latency: 32, Cache Line Size: 32 bytes
Interrupt: pin ? routed to IRQ 39
Region 0: Memory at f5004000 (32-bit, non-prefetchable) [size=16K]
Kernel driver in use: ide-pmac
0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81) (prog-if 10)
Subsystem: Apple Computer Inc. Device 5811
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64 (3000ns min, 6000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 40
Region 0: Memory at f5000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME+
Kernel driver in use: ohci1394
Kernel modules: ohci1394
0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
Latency: 16 (16000ns min, 16000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 41
Region 0: Memory at f5200000 (32-bit, non-prefetchable) [size=2M]
Expansion ROM at f5100000 [disabled] [size=1M]
Kernel driver in use: gem
Kernel modules: sungem
Worth pointing out that the main Ubuntu repositories don't provide packages for this release, anymore, but https://newit.co.uk/forum/index.php?topic=2329.0 mentions alternatives.
In case that page ever goes away, those are:
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
So, the current status of trying to build on Ubuntu 9.04 PPC 32-bit is:
If I manually edit contrib/cml2/cmlcompile.py
, and contrib/cmlconfigure.py
to manually use Python 2.6, instead of Python 2.7, I can run make menuconfig
, and see the configuration menu, but trying to build the kernel fails, since it's trying to use a bunch of GCC flags, that aren't available, for gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
, on this platform:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/kernel/p32# make
gcc: unrecognized option '-no-pie'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32'
===> src/generic/lib.cc
cd src/generic/ && gcc -nostdinc -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32/include -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/src -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include/ -Uia32 -Up4 -Upc99 -Uv4 -Urr -D__ARCH__=ia32 -D__CPU__=p4 -D__PLATFORM__=pc99 -D__API__=v4 -D__SCHED__=rr -imacros /home/tyson/Canvio/OrionPPC32/Orion/kernel/p32/config/config.h -imacros /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/macros.h -include /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/config.h -include /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/types.h -fno-rtti -fno-builtin -fomit-frame-pointer -fno-exceptions -Wall -Wno-non-virtual-dtor -Wno-format -O2 -m32 -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -fno-pie -no-pie -Wno-narrowing -fno-stack-protector -march=pentium4 -Wno-conversion -fno-stack-protector -c /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/lib.cc
gcc: unrecognized option '-no-pie'
cc1plus: error: unrecognized command line option "-mpreferred-stack-boundary=2"
cc1plus: error: unrecognized command line option "-mno-mmx"
cc1plus: error: unrecognized command line option "-mno-sse"
cc1plus: error: unrecognized command line option "-mno-sse2"
cc1plus: error: unrecognized command line option "-mno-sse3"
cc1plus: error: unrecognized command line option "-march=pentium4"
cc1plus: warning: unrecognized command line option "-Wno-narrowing"
make[1]: *** [src/generic/lib.o] Error 1
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32'
make: *** [all] Error 2
Trying to build the userland results in:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure
configure: error: Unknown hardware architecture: ppc.
Please specify hardware architecture using --host=ARCH.
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# autoreconf
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 188.
Use of uninitialized value $libtoolize in pattern match (m//) at /usr/bin/autoreconf line 188.
After installing libtool
, I was able to re-run autoreconf
, which produced no output, but we still see:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure
configure: error: Unknown hardware architecture: ppc.
Please specify hardware architecture using --host=ARCH.
Trying something else:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure --host=powerpc
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for powerpc-gcc... no
checking for powerpc-elf-gcc... no
checking for powerpc-unknown-elf-gcc... no
checking for powerpc-linux-gcc... no
checking for powerpc-unknown-linux-gcc... no
checking for powerpc-unknown-linux-gnu-gcc... no
checking for powerpc-pc-linux-gnu-gcc... no
checking for powerpc-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for gawk... gawk
checking location of libgcc.a... /usr/lib/gcc/powerpc-linux-gnu/4.3.3
checking location of stdarg.h... /usr/lib/gcc/powerpc-linux-gnu/4.3.3/include
checking kernel build directory... $(top_builddir)
configure: creating ./config.status
config.status: creating config.mk
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/l4/Makefile
config.status: creating lib/io/Makefile
config.status: creating serv/Makefile
config.status: creating serv/sigma0/Makefile
config.status: creating apps/Makefile
config.status: creating apps/bench/Makefile
config.status: creating apps/bench/pingpong/Makefile
config.status: creating apps/grabmem/Makefile
config.status: creating apps/l4test/Makefile
config.status: creating util/Makefile
config.status: creating util/kickstart/Makefile
config.status: creating util/grubdisk/Makefile
config.status: creating util/piggybacker/Makefile
config.status: creating util/piggybacker/ofppc/Makefile
config.status: creating util/piggybacker/ofppc64/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/elf-loader/Makefile
config.status: creating config.h
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ppc
ppc ppc32 ppc64
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/po
policykit/ powerpc-linux-gnu/
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/po
policykit/ powerpc-linux-gnu/
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/powerpc-linux-gnu/
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user#
If I force ./configure --host=powerpc
, and do make clean
, in user
, I can actually get this far:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# make
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> debug.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c debug.cc -o debug.o
In file included from ../../include/l4/kip.h:35,
from debug.cc:31:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from ../../include/l4/kip.h:35,
from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./libl4.a
ar cru libl4.a debug.o powerpc.o
ranlib libl4.a
cp libl4.a ../../lib/libl4.a
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Warning: File `.depend' has modification time 0.1 s in the future
===> get_hex.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c get_hex.cc -o get_hex.o
In file included from get_hex.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> print.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c print.cc -o print.o
In file included from print.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from powerpc.cc:52:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
powerpc.cc: In function ‘void io_init()’:
powerpc.cc:156: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:159: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:166: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:177: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:181: warning: unused variable ‘comport_phys’
===> 1275tree.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c 1275tree.cc -o 1275tree.o
In file included from 1275tree.h:36,
from 1275tree.cc:37:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> fdt.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c fdt.cc -o fdt.o
In file included from ../../include/l4io.h:35,
from fdt.cc:33:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from fdt.cc:34:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
===> Linking ./libio.a
ar cru libio.a get_hex.o print.o powerpc.o 1275tree.o fdt.o
ranlib libio.a
cp libio.a ../../lib/libio.a
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
===> crt0-powerpc.S
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -c crt0-powerpc.S -o crt0-powerpc.o
===> sigma0.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c sigma0.cc -o sigma0.o
In file included from ../../include/l4/kip.h:35,
from sigma0.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> sigma0_mem.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c sigma0_mem.cc -o sigma0_mem.o
In file included from ../../include/l4/kip.h:35,
from sigma0_mem.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> region.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c region.cc -o region.o
In file included from ../../include/l4/message.h:36,
from region.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./sigma0
ld -e_start -N -L../../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3 -nostdlib -Ttext=00500000 crt0-powerpc.o sigma0.o sigma0_mem.o region.o -ll4 -lio -lgcc -o sigma0
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(_fixunsdfsi.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(floatunsidf.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(gedf2.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(ledf2.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(muldf3.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(subdf3.o) uses hard float, sigma0 uses soft float
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench'
make[3]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
===> Making dependencies in .
make[3]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[3]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[3]: Warning: File `.depend' has modification time 0.22 s in the future
===> crt0-powerpc.S
gcc -I../../../include -I../../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -fno-builtin -msoft-float -Wno-conversion -c crt0-powerpc.S -o crt0-powerpc.o
===> pingpong.cc
gcc -x c++ -I../../../include -I../../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -fno-builtin -msoft-float -Wno-conversion -fno-exceptions -fno-stack-protector -c pingpong.cc -o pingpong.o
In file included from ../../../include/l4/kip.h:35,
from pingpong.cc:34:
../../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./pingpong
ld -e_start -N -L../../../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3 -nostdlib -Ttext=00600000 -fno-stack-protector -lssp crt0-powerpc.o pingpong.o -ll4 -lio -lgcc -o pingpong
ld: -f may not be used without -shared
make[3]: *** [pingpong] Error 1
make[3]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[2]: *** [subdirs-all] Error 2
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench'
make[1]: *** [subdirs-all] Error 2
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps'
make: *** [subdirs-all] Error 2
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user#
Doing a make clean
, and updating the MakeFiles for user/lib
gets us to this stage:
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# make
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> debug.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c debug.cc -o debug.o
In file included from ../../include/l4/kip.h:35,
from debug.cc:31:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from ../../include/l4/kip.h:35,
from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./libl4.a
ar cru libl4.a debug.o powerpc.o
ranlib libl4.a
cp libl4.a ../../lib/libl4.a
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Warning: File `.depend' has modification time 0.11 s in the future
===> get_hex.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c get_hex.cc -o get_hex.o
In file included from get_hex.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> print.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c print.cc -o print.o
In file included from print.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from powerpc.cc:52:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
powerpc.cc: In function ‘void io_init()’:
powerpc.cc:156: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:159: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:166: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:177: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:181: warning: unused variable ‘comport_phys’
===> 1275tree.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c 1275tree.cc -o 1275tree.o
In file included from 1275tree.h:36,
from 1275tree.cc:37:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> fdt.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -c fdt.cc -o fdt.o
In file included from ../../include/l4io.h:35,
from fdt.cc:33:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from fdt.cc:34:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
===> Linking ./libio.a
ar cru libio.a get_hex.o print.o powerpc.o 1275tree.o fdt.o
ranlib libio.a
cp libio.a ../../lib/libio.a
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
===> Rebuilding ./Makefile
config.status: creating ./Makefile
config.status: creating config.h
config.status: config.h is unchanged
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
===> Rebuilding ./Makefile
config.status: creating ./Makefile
config.status: creating config.h
config.status: config.h is unchanged
===> liballoc_hooks.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -fno-exceptions -fno-stack-protector -D_WANT_FREEBSD11_STAT -c liballoc_hooks.cc -o liballoc_hooks.o
In file included from ../../include/l4/space.h:35,
from liballoc_hooks.cc:2:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
liballoc_hooks.cc: In function ‘void* liballoc_alloc(int)’:
liballoc_hooks.cc:84: warning: comparison between signed and unsigned integer expressions
===> apicore.c
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -std=c99 -c apicore.c -o apicore.o
===> assert.c
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float -mno-regnames -meabi -msdata=none -mno-toc -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wno-conversion -std=c99 -c assert.c -o assert.o
In file included from ../../include/sys/_types.h:35,
from ../../include/sys/types.h:47,
from stand.h:3,
from assert.c:32:
../../include/machine/_types.h:85: error: redefinition of typedef ‘__uintptr_t’
../../include/machine/_types.h:52: error: previous declaration of ‘__uintptr_t’ was here
../../include/machine/_types.h:109: error: redefinition of typedef ‘__uint_least16_t’
../../include/machine/_types.h:40: error: previous declaration of ‘__uint_least16_t’ was here
../../include/machine/_types.h:110: error: redefinition of typedef ‘__uint_least32_t’
../../include/machine/_types.h:41: error: previous declaration of ‘__uint_least32_t’ was here
In file included from ../../include/sys/types.h:65,
from stand.h:3,
from assert.c:32:
../../include/sys/_stdint.h:51: error: redefinition of typedef ‘int64_t’
../../include/machine/_types.h:33: error: previous declaration of ‘int64_t’ was here
../../include/sys/_stdint.h:71: error: redefinition of typedef ‘uint64_t’
../../include/machine/_types.h:34: error: previous declaration of ‘uint64_t’ was here
In file included from ../../include/sys/types.h:376,
from stand.h:3,
from assert.c:32:
../../include/sys/select.h:105: warning: ‘struct timeval’ declared inside parameter list
../../include/sys/select.h:105: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from assert.c:32:
stand.h:17: warning: ‘struct open_file’ declared inside parameter list
stand.h:18: warning: ‘struct open_file’ declared inside parameter list
stand.h:20: warning: ‘struct open_file’ declared inside parameter list
stand.h:22: warning: ‘struct open_file’ declared inside parameter list
stand.h:23: warning: ‘struct open_file’ declared inside parameter list
stand.h:24: warning: ‘struct stat’ declared inside parameter list
stand.h:24: warning: ‘struct open_file’ declared inside parameter list
stand.h:25: warning: ‘struct dirent’ declared inside parameter list
stand.h:25: warning: ‘struct open_file’ declared inside parameter list
assert.c: In function ‘__assert’:
assert.c:38: warning: implicit declaration of function ‘panic’
make[2]: *** [assert.o] Error 1
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
make[1]: *** [subdirs-all] Error 2
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make: *** [subdirs-all] Error 2
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user#
After recently acquiring an iBook G4, it may be interesting to support it as a build/runtime target, for Orion.
(It originally shipped with Mac OS X 10.4.11, which I've made a backup of, and I've managed to install Ubuntu 9.04, which is now officially unsupported, but at least allows for installing a GNU toolchain).
dmesg
reports:/proc/cpuinfo
reports: