Opened 2 years ago

Closed 2 years ago

#65944 closed defect (fixed)

gawk fails to update to 5.2.0 as ppc+ppc64 on 10.5.8: ld: unknown option: -no_pie

Reported by: barracuda156 Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, leopard, ppc64 Cc:
Port: gawk

Description

/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -arch ppc -arch ppc64 -DNDEBUG -pipe -Os -arch ppc -arch ppc64 -DNDEBUG -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -arch ppc64 -Xlinker -no_pie -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -arch ppc64 -Xlinker -no_pie -o gawk array.o awkgram.o builtin.o cint_array.o command.o debug.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o re.o replace.o str_array.o symbol.o version.o support/libsupport.a  -lintl -Wl,-framework -Wl,CoreFoundation    -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -arch ppc64 -Xlinker -no_pie 
ld: unknown option: -no_pie
collect2: ld returned 1 exit status
ld: unknown option: -no_pie
collect2: ld returned 1 exit status
fatal error: lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gawk/gawk/work/.tmp/ccC2cJ0i.out (No such file or directory)
make[2]: *** [gawk] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gawk/gawk/work/gawk-5.2.0'
make[1]: *** [all-recursive] Error 1

Attachments (1)

main.log (43.1 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

Summary: gawk fails to update as ppc+ppc64 on 10.5.8: ld: unknown option: -no_piegawk fails to update to 5.2.0 as ppc+ppc64 on 10.5.8: ld: unknown option: -no_pie

comment:2 Changed 2 years ago by Schamschula (Marius Schamschula)

I have no way of testing any fixes for this!

For a possible solution see #34064

comment:3 in reply to:  2 Changed 2 years ago by barracuda156

Replying to Schamschula:

I have no way of testing any fixes for this!

For a possible solution see #34064

Thanks, I will try if a similar thing works and submit a PR if it does.

comment:4 Changed 2 years ago by barracuda156

Yeah, this works:

platform darwin {
    if {${os.major} < 10} {
        post-patch {
            reinplace   "s:-Xlinker -no_pie::" ${worksrcpath}/configure
        }
    }
}

All tests pass successfully.

======== Starting PMA tests ========
/usr/bin/gcc-4.2 -std=gnu99 makepmafile.c -o makepmafile
pma
======== Done with PMA tests ========
======== Starting machine-specific tests ========
If any of these tests fail, don't worry too much.
double1
double2
inf-nan-torture
intformat
======== Done with machine-specific tests ========
ALL TESTS PASSED
36-249:~ svacchanda$

comment:5 Changed 2 years ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 05417dbf343d6033868fccb7c983754de602d224/macports-ports (master):

gawk: fix build for 10.5: do not use -no_pie ldflag
Fixes: #65944

Note: See TracTickets for help on using tickets.