Bug 241125 - lang/gcc9: Fails to build on 32-bit 12.1-BETA2/powerpc: error: integer constant is too large for 'long' type
Summary: lang/gcc9: Fails to build on 32-bit 12.1-BETA2/powerpc: error: integer consta...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Some People
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-08 06:15 UTC by Ari Suutari
Modified: 2019-10-10 12:51 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gerald)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ari Suutari 2019-10-08 06:15:48 UTC
gcc 9.2.0 port doesn't compile on powerpc platform:

c++ -std=gnu++98 -fno-PIE -c   -g -DIN_GCC    -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../include -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libcpp/include -I/usr/local/include  -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libbacktrace  -DLIBICONV_PLUG -o insn-emit.o -MT insn-emit.o -MMD -MP -MF ./.deps/insn-emit.TPo insn-emit.c
/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/config/rs6000/rs6000.md:5933: error: integer constant is too large for 'long' type

Tried on 12.1-BETA2:
FreeBSD applejuice 12.1-BETA2 FreeBSD 12.1-BETA2 GENERIC  powerpc
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-10-08 06:21:41 UTC
Is this on literal "powerpc" (32-bit) or "powerpc64" (64-bit), or one of the other variants instead?
Comment 2 Ari Suutari 2019-10-08 06:48:15 UTC
This is old Mac Mini so 32-bit:

kernel: cpu0: Motorola PowerPC 7447A revision 1.2, 1249.10 MHz
kernel: cpu0: Features 9c000000<PPC32,ALTIVEC,FPU,MMU>
kernel: cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
Comment 3 canardo 2019-10-10 12:51:01 UTC
Same error also present in FreeBSD 12.0-RELEASE

I don't know if the bug title should be updated/edited accordingly, or if a new ticket should be created.

On my machine, Powerbook G4 17, same error when compiling gcc-9.2.0

gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
c++ -std=gnu++98 -fno-PIE -c   -g -DIN_GCC    -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../include -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libcpp/include -I/usr/local/include  -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libbacktrace  -DLIBICONV_PLUG -o insn-emit.o -MT insn-emit.o -MMD -MP -MF ./.deps/insn-emit.TPo insn-emit.c
/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/config/rs6000/rs6000.md:5933: error: integer constant is too large for 'long' type
gmake[5]: *** [Makefile:1116: insn-emit.o] Error 1



uname -mrs
FreeBSD 12.0-RELEASE powerpc

getconf LONG_BIT
32

sysctl -a hw.model
hw.model: Motorola PowerPC 7447A