Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #207 (reopened defect)

Opened 16 years ago

Last modified 16 years ago

Cannot build lib on mac os x 10.5

Reported by: Anonymous Assigned to: Gregor
Priority: critical Milestone:
Component: DSSS Version:
Keywords: Cc:

Description

Trying build something as a lib with dsss 0.78 gives me this

ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
	ar -m [-TLsv] archive file ...
	ar -m [-abiTLsv] position archive file ...
	ar -p [-TLsv] archive [file ...]
	ar -q [-cTLsv] archive file ...
	ar -r [-cuTLsv] archive file ...
	ar -r [-abciuTLsv] position archive file ...
	ar -t [-TLsv] archive [file ...]
	ar -x [-ouTLsv] archive [file ...]
Command /usr/bin/rebuild returned with code 65280, aborting.
Error: Command failed, aborting.

Change History

10/14/08 02:10:27 changed by Jim Panic

  • status changed from new to closed.
  • resolution set to duplicate.

Same as #209

10/14/08 02:10:44 changed by Jim Panic

  • status changed from closed to reopened.
  • resolution deleted.

11/05/08 20:48:25 changed by kaarna

  • priority changed from major to critical.

I'm boosting this to critical as it's really stopping the usage of any D libraries on OS X. And as it's doing that I'm considering putting the priority to blocker, since it's really blocking me from doing anything serious on OS X. I heard from fawzi, that the correct way would be to use ranlib instead of ar. And it worked on 0.75, I'm told.

01/19/09 12:26:03 changed by afb

I use this workaround:

[liblink]
safe=yes
cmd=if [ ! -z "$o" ]; then ar rc $o $i; fi

03/13/09 15:18:28 changed by braver

Walter notes dmd can create archives itself; perhaps we should use it directly?

03/27/09 07:32:02 changed by revcompgeek

Adding a -n (to tell rebuild to display the commands) shows that rebuild is running ar twice. Once with all the required .o files, and once with only the .a file. The second run needs to be eliminated.