Opened 17 years ago

Closed 16 years ago

Last modified 13 years ago

#43 closed task (fixed)

New Arch - PA-RISC

Reported by: Craig Jackson Owned by: Craig Jackson
Priority: minor Milestone: CLFS Sysroot 1.0.0
Component: BOOK Version: CLFS Sysroot 1.0.0
Keywords: PA-RISC HPPA Cc:

Description

Any Notes about building on PA-RISC should be placed in this ticket.

Change History (18)

comment:1 Changed 17 years ago by Craig Jackson

Owner: changed from clfs-commits@… to Craig Jackson
Status: newassigned

comment:2 Changed 17 years ago by Craig Jackson

Reporter: changed from Joe Ciccone to Craig Jackson

The following are notes for the build when comparing to CLFS 1.0 MIPS. These are edits I would do to the book at this point, as well as issues I am running into along the way.

comment:3 Changed 17 years ago by Craig Jackson

In section 3.3 - Additional Packages for MIPS 64 Bit

Remove ArcLoad?-4.5

Not applicable to PA-RISC

Remove Colo-1.2.1

Not applicable to PA-RISC

Remove DVHtool-1.0.1

Not applicable to PA-RISC

Add PALO-1.14

Bootloader for PA-RISC systems. Latest version is 1.14-CVS20060409. Link: http://cvs.parisc-linux.org/download/palo-1.14-CVS20060409.tar.gz

comment:4 Changed 17 years ago by Craig Jackson

In section 5.3 - Build Variables

Change line

export LFS_TARGET="mips64el-unknown-linux-gnu"

to

export LFS_TARGET="hppa-unknown-linux-gnu"

remove the line

export LFS_TARGET="mips64-unknown-linux-gnu" /* orig. for different sub-arch of MIPS /*

comment:5 Changed 17 years ago by Craig Jackson

In section 5.5.1 - Installation of Linux-Headers

change: cp -Rv include/asm-mips /tools/include/asm to: cp -Rv include/asm-parisc /tools/include/asm

comment:6 Changed 17 years ago by Craig Jackson

Milestone: CLFS 2.0CLFS 1.0

In section 5.7 - Cross GCC-4.1.1-Static

remove from configure: --with-abi=64 (abi is a MIPS-specific feature)

comment:7 Changed 17 years ago by Craig Jackson

In section 5.7 - Cross GCC-4.1.1-Static:

The following error occurs when following the CLFS 1.0 MIPS-64 instructions:

/mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/cross-tools/hppa-unknown-linux-gnu/bin/ -B/cross-tools/hppa-unknown-linux-gnu/lib/ -isystem /cross-tools/hppa-unknown-linux-gnu/include -isystem /cross-tools/hppa-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -DELF=1 -DLINUX=1 -g -DIN_LIBGCC2 -DGCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include -fexceptions -c ../../gcc-4.1.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o In file included from ../../gcc-4.1.1/gcc/unwind-dw2.c:256: ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:32:20: error: signal.h: No such file or directory ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:33:26: error: sys/ucontext.h: No such file or directory In file included from ../../gcc-4.1.1/gcc/unwind-dw2.c:256: ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h: In function 'pa32_fallback_frame_state': ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:66: error: field 'info' has incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:67: error: field 'uc' has incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:113: error: dereferencing pointer to incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:120: error: dereferencing pointer to incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:127: error: dereferencing pointer to incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:130: error: dereferencing pointer to incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:133: error: dereferencing pointer to incomplete type ../../gcc-4.1.1/gcc/config/pa/linux-unwind.h:136: error: dereferencing pointer to incomplete type make[2]: * [libgcc/./unwind-dw2.o] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' make[1]: * [libgcc.a] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' make: * [all-gcc] Error 2


I find this strange, as it only occurs when compiling source in the gcc/config/pa directory. I have tried passing CPPFLAGS=-I/usr/include and CFLAGS=-I/usr/include and it still does not find it. If I modify line 32 of gcc/config/pa/linux-unwind.h to include </usr/include/signal.h> then it finds that one file just fine. I am wondering why it is not finding this signal.h which does exist in /usr/include. I have also installed build-essentials on this debian-3.1r1 host system. I have installed linux-libc-headers-2.6.12.0 per a thread on google, and the issue reproduces.

comment:8 Changed 17 years ago by Craig Jackson

Resolved above issue by adding CFLAGS and CPPFLAGS to the environment as opposed to the command line.

comment:9 Changed 17 years ago by Craig Jackson

In section 5.4 - Build Flags

Remove the line: export BUILD64="-mabi=64" # not compatible with this arch

comment:10 Changed 17 years ago by Craig Jackson

In section 5.7 - Cross GCC-4.1.1-Static

remove from configure: --disable-threads #required for glibc-2.4 to compile

comment:11 Changed 17 years ago by Jim Gifford

Milestone: CLFS 1.0CLFS 2.0

comment:12 Changed 17 years ago by Jim Gifford

Version: unstable2.0

comment:13 Changed 17 years ago by Jim Gifford

Version: 2.02.0.0

comment:14 Changed 17 years ago by Craig Jackson

Check for Gentoo Patches for toolchain. Any toolchain versions are ok for now.

comment:15 Changed 17 years ago by Craig Jackson

SCRAP 1.x branch for HPPA (for now at least)

Begin basing build off of 2.0 ARM for now. New changelog notes to follow...

comment:17 Changed 16 years ago by Joe Ciccone

Resolution: fixed
Status: assignedclosed

32bit PC-RISC (hppa) was added a while ago and nothing has been reported broken.

Note: See TracTickets for help on using tickets.