Opened 7 years ago

Closed 6 years ago

#55473 closed defect (fixed)

nss @3.33 does not build on PPC Tiger, Mac OS X 10.4.11, because compiler selection leads to build with clang-3.3, which is not functional on PPC

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: tiger Cc:
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 -Iverified  -std=gnu99 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-e0wYsT.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-e0wYsT.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.33/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.33/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.33/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.33/nss'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.33/nss" && /usr/bin/make -w all NSS_DISABLE_GTESTS=1 NSS_ENABLE_WERROR=0 CC="/opt/local/bin/clang-mp-3.3 -arch ppc" CCC="/opt/local/bin/clang++-mp-3.3 -arch ppc" NSPR_INCLUDE_DIR=/opt/local/include/nspr NSPR_LIB_DIR=/opt/local/lib/nspr NSS_USE_SYSTEM_SQLITE=1 USE_SYSTEM_ZLIB=1 BUILD_OPT=1 OPTIMIZER="-Os" OBJDIR_NAME="Output.OBJD" 
Exit code: 2
Error: Failed to build nss: command execution failed

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

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 ballapete (Peter "Pete" Dyballa)

Interestingly when I build with configure.compiler=macports-gcc-6 the file ecl/ecl_gf.c never gets compiled…

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

Peter, as we know, MacPorts compiler selection code for PPC is just plain broken.

Nothing, ever, never, ever should be compiled on PPC with any version of clang available to MacPorts.

it's either gcc-4.2 (apple-gcc42 on Tiger), or gcc6.

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

Summary: nss @3.33 does not build on PPC Tiger, Mac OS X 10.4.11, because of parameter error in Clang Assembler codenss @3.33 does not build on PPC Tiger, Mac OS X 10.4.11, because compiler selection leads to build with clang-3.3, which is not functional on PPC

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

Owner: set to ryandesign
Status: newaccepted

Has duplicates #54065, #54639, #56104.

comment:5 in reply to:  2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

Replying to kencu:

Peter, as we know, MacPorts compiler selection code for PPC is just plain broken.

Nothing, ever, never, ever should be compiled on PPC with any version of clang available to MacPorts.

PowerPC compiler selection was fixed in [7cf76ecd34ea1d78f918f2f026003161cc439a4e/macports-base] and [15a4eeb3618d289b3d92093186b5f20a60e43ff0/macports-base] which was released in MacPorts 2.5.0.

Note: See TracTickets for help on using tickets.