Opened 2 years ago

Closed 2 years ago

#64894 closed defect (fixed)

n2n @3.0: ld: -L must be immediately followed by a directory path (no space)

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, snowleopard, rosetta Cc:
Port: n2n

Description (last modified by barracuda156)

The build fails with gcc-4.2:

/usr/bin/gcc-4.2 -std=gnu99 -L/opt/local/libexec/openssl11/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -pthread -L .  src/supernode.o libn2n.a   -ln2n -lcrypto -lzstd  -o src/supernode
ld: -L must be immediately followed by a directory path (no space)
collect2: ld returned 1 exit status
make: *** [src/edge] Error 1
make: *** Waiting for unfinished jobs....
ld: -L must be immediately followed by a directory path (no space)
collect2: ld returned 1 exit status
make: *** [src/supernode] Error 1

Attachments (2)

main.log (24.7 KB) - added by barracuda156 2 years ago.
config.log (36.2 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by barracuda156

Attachment: main.log added

Changed 2 years ago by barracuda156

Attachment: config.log added

comment:1 Changed 2 years ago by barracuda156

Description: modified (diff)
Summary: n2n fails to build for ppc on 10.6.8 Rosettan2n fails to build for ppc on 10.6.8 Rosetta: Macports picks a wrong compiler

comment:2 Changed 2 years ago by barracuda156

With macports-gcc-11 it succeeds though:

macmini:~ svacchanda$ port -v installed n2n
The following ports are currently installed:
  n2n @3.0_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-03-27T18:10:02+0800'

No other changes, only specified the compiler.

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

it’s erroring due to the space between the L and the period:

 -pthread -L .

not sure why that space is there, or why changing the compiler would matter (presumably either the space doesn't happen any more or the compiler doesn't care any more).

Last edited 2 years ago by kencu (Ken) (previous) (diff)

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

Owner: set to ryandesign
Status: newaccepted
Summary: n2n fails to build for ppc on 10.6.8 Rosetta: Macports picks a wrong compilern2n @3.0: ld: -L must be immediately followed by a directory path (no space)

comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 83a70b23320cad948651be7e50d7971b52e8af6a/macports-ports (master):

n2n: Remove space after -L and -I

Fixes build failure with gcc-4.2.

Closes: #64894

Note: See TracTickets for help on using tickets.