Opened 7 years ago

Closed 6 years ago

#54639 closed defect (duplicate)

nss @3.32 does not build on PPC Tiger, Mac OS X 10.4.11, because of a "Parameter error: r0 not allowed for parameter %lu (code as 0 not r0) (parameter 2)"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: tiger Cc: ryandesign (Ryan Carsten Schmidt)
Port: nss

Description

/opt/local/bin/clang-mp-3.3 -arch ppc -o Output.OBJD/Darwin_SINGLE_SHLIB/ecl_gf.o -c -Os -fPIC -Dppc -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -Wall -DNSS_NO_GCC48 -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DMP_API_COMPATIBLE -I/opt/local/include/nspr -I../../../dist/Output.OBJD/include -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl  ecl/ecl_gf.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/.tmp/ecl_gf-DBOm12.s:831:Parameter error: r0 not allowed for parameter %lu (code as 0 not r0) (parameter 2)
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/.tmp/ecl_gf-DBOm12.s:885:Parameter error: r0 not allowed for parameter %lu (code as 0 not r0) (parameter 2)
clang: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Output.OBJD/Darwin_SINGLE_SHLIB/ecl_gf.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.32/nss/lib/freebl'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.32/nss/lib/freebl'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.32/nss/lib'
make: *** [libs] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.32/nss'

Attachments (1)

main.log (127.7 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 7 years ago by kencu (Ken)

Hi Pete -- You know you'll never get it to build right with clang-3.3 on PPC -- just bad compiler selection logic for 10.4/PPC in the Portfile; try apple-gcc-4.2 or gcc6 maybe.

Someday we should find a way to blacklist all clangs up to 3.7 on PPC for all ports so they are never selected as the build compiler. clang-3.8 is the first one that is halfway usable, and that's only if you go through my hoops to get it.

comment:2 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

It builds with configure.compiler=macports-gcc-6.

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Resolution: duplicate
Status: newclosed

I believe this bug only arose because you were building with clang on PowerPC, which does not work, so let's call this a duplicate of #55473.

Note: See TracTickets for help on using tickets.