Ticket #43 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

New Arch - PA-RISC

Reported by: craigmjackson@gmail.com Assigned to: craigmjackson@gmail.com
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

06/18/06 06:46:15 changed by craigmjackson@gmail.com

  • owner changed from clfs-commits@lists.cross-lfs.org. to craigmjackson@gmail.com.
  • status changed from new to assigned.

06/18/06 07:32:03 changed by craigmjackson@gmail.com

  • reporter changed from jciccone to craigmjackson@gmail.com.

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.

06/18/06 07:42:29 changed by craigmjackson@gmail.com

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

06/18/06 07:46:38 changed by craigmjackson@gmail.com

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 /*

06/18/06 07:49:03 changed by craigmjackson@gmail.com

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

06/18/06 07:51:00 changed by craigmjackson@gmail.com

  • milestone changed from CLFS 2.0 to CLFS 1.0.

In section 5.7 - Cross GCC-4.1.1-Static

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

06/18/06 08:07:52 changed by craigmjackson@gmail.com

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.

06/18/06 18:03:10 changed by craigmjackson@gmail.com

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

06/20/06 01:32:59 changed by craigmjackson@gmail.com

In section 5.4 - Build Flags

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

06/20/06 03:08:34 changed by craigmjackson@gmail.com

In section 5.7 - Cross GCC-4.1.1-Static

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

06/23/06 22:08:01 changed by jim

  • milestone changed from CLFS 1.0 to CLFS 2.0.

06/23/06 22:08:28 changed by jim

  • version changed from unstable to 2.0.

06/26/06 18:35:55 changed by jim

  • version changed from 2.0 to 2.0.0.

07/12/06 06:25:47 changed by craigmjackson@gmail.com

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

07/13/06 06:07:00 changed by craigmjackson@gmail.com

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

07/14/06 17:28:08 changed by jciccone

02/02/07 18:08:46 changed by jciccone

  • status changed from assigned to closed.
  • resolution set to fixed.

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