[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    [Pcc]  build failure on macOS 10.13.6 (High Sierra)
From:       "Nelson H. F. Beebe" <beebe () math ! utah ! edu>
Date:       2020-04-28 18:16:31
Message-ID: CMM.0.95.0.1588097791.beebe () gamma ! math ! utah ! edu
[Download RAW message or body]

Yesterday, I pulled down the pcc-20200427.tar.gz and
pcc-libs-20200427.tgz snapshots, and successfully installed them on
our CentOS 6 and 7 (x86_64) servers.  Today, I built that snapshot on
Ubuntu 20.04 (x86_64); I just had to set CC=gcc, because the default
of CC=pcc cannot handle Ubuntu header files that expose the type
__float128.

I created a wrapper script on Ubuntu that looks like this:

	% cat $prefix/bin/pcc
	#! /bin/sh -
	CFLAGS='-I/usr/lib/gcc/x86_64-redhat-linux/7/include -D__CHAR_BIT__=8 -DMB_LEN_MAX=16'
	PCC=/usr/uumath/ashare/pcc/pcc-20200427/bin/pcc

	$PCC $CFLAGS "$@"

However, on macOS 10.13.6 (High Sierra), multiple attempts at building
32-bit and 64-bit pcc compilers failed with this error in the
pcc-libs-20200427 tree:

	==> csu
	if test -f ./darwin/Makefile; then                      \
			(cd ./darwin && exec /Applications/Xcode.app/Contents/Developer/usr/bin/make
	CC="gcc" MACH="amd64"
	PCCLIBDIR="/usr/uumath/ashare/pcc/pcc-20200427/lib/pcc/x86_64-apple-darwin17.7.0/1.2.0.DEVEL/lib"
	all) \
			    || exit $?;                                 \
	fi

I then ran this command

	% find . -name crt0.c
	./csu/darwin/i386/crt0.c
	./csu/darwin/powerpc/crt0.c
	./csu/linux/amd64/crt0.c
	./csu/linux/i386/crt0.c

The issue is clearly that pcc-libs wants a csu/darwin/amd64 directory,
but that does not exist.

With the latest macOS release, 10.15 (Catalina), all support for a
32-bit world has been removed, so developers should focus on 64-bit
builds on macOS, for all versions from 10.5 (Leopard), introduced in
fall 2007, forward.

What are the prospects for pcc builds on macOS?  Because the CPU
architecture is the same as on Linux systems, I suspect that the
changes for pcc are relatively minor, but are best done by a developer
who is familiar with the coding practices in the pcc work.


-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic