bugGNU MIX Development Kit - Bugs: bug #41097, ar: no archive members specified

 
 

bug #41097: ar: no archive members specified

Submitter:  Ryan Carsten Schmidt <ryandesign>
Submitted:  Sat 04 Jan 2014 02:32:11 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jao
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 21 Jul 2014 07:13:16 AM UTC, comment #6: 

Thanks. the latest version in the repository builds fine for me.

Ryan Carsten Schmidt <ryandesign>
Tue 20 May 2014 04:34:07 PM UTC, comment #5: 

OK, i just pushed a candidate fix for the problem. Please let me know whether it fixes the problem for you.

Jose Antonio Ortega Ruiz <jao>
Group administrator
Tue 20 May 2014 04:05:42 PM UTC, comment #4: 

Joel, i just managed to reproduce the error with libreadline 3.3, so nevermind about my previous mail... i'll try to fix things soonish....

Jose Antonio Ortega Ruiz <jao>
Group administrator
Tue 20 May 2014 03:54:16 PM UTC, comment #3: 

Joel, i think this is happening because you have an old version of libreadline installed in '/usr/local/include' and its header file is being read instead of the one in '/usr/local/Cellar/readline/6.3.3/include'... could that be the case?

Jose Antonio Ortega Ruiz <jao>
Group administrator
Sun 18 May 2014 08:37:31 PM UTC, comment #2: 

Hi.  I'm attempting to build current git head on OS X 10.9.  I can confirm that the archive problem no longer occurs (it occurred when I downloaded 1.2.7 and attempted to build it, Google search of the error led me here). 

Unfortunately there's also a compiler error later in the build:

gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -Wall -fno-strict-aliasing -D_THREAD_SAFE -I/usr/local/Cellar/guile/2.0.11/include/guile/2.0 -I/usr/local/Cellar/gmp/5.1.3/include -I/usr/local/Cellar/readline/6.3.3/include -I/usr/local/Cellar/bdw-gc/7.2e/include  -I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include  -DG_DISABLE_DEPRECATED -I/usr/local/include -I.. -DMAKE_GUILE  -g -O2 -MT mixvm_command.o -MD -MP -MF .deps/mixvm_command.Tpo -c -o mixvm_command.o mixvm_command.c
mixvm_command.c:83:20: error: use of undeclared identifier 'Function'
  { (char )NULL, (Function )NULL, (char *)NULL }
                   ^
mixvm_command.c:83:30: error: expected expression
  { (char )NULL, (Function )NULL, (char *)NULL }
                             ^
mixvm_command.c:220:39: error: use of undeclared identifier 'CPPFunction'
  rl_attempted_completion_function = (CPPFunction *)mixvm_cmd_completion_;
                                      ^
mixvm_command.c:220:52: error: expected expression
  rl_attempted_completion_function = (CPPFunction *)mixvm_cmd_completion_;
                                                   ^
4 errors generated.
make[2]: * [mixvm_command.o] Error 1
make[1]: * [all-recursive] Error 1
make: * [all] Error 2

Joel Heikkila <hxp>
Mon 06 Jan 2014 02:03:52 AM UTC, comment #1: 

Thanks for the report, Ryan.  I've commited to the git repo a candidate fix, but i cannot test it because i don't have an OS X system.  Could you try it, please?

Jose Antonio Ortega Ruiz <jao>
Group administrator
Sat 04 Jan 2014 02:32:11 PM UTC, original submission:  

Compilation of mdk fails on OS X v10.9:


Making all in lib
gnumake[2]: Entering directory `/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_mdk/mdk/work/mdk-1.2.7/lib'
rm -f libreplace.a
ar cru libreplace.a
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 ...]
gnumake[2]: *** [libreplace.a] Error 1
gnumake[2]: Leaving directory `/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_mdk/mdk/work/mdk-1.2.7/lib'


This problem was known to the MacPorts project when mdk 1.2.1 was initially added to MacPorts in 2005, but was apparently not reported to you because the problem remains with 1.2.7:

https://trac.macports.org/ticket/5090

It seems that libreplace.a is empty, and OS X's version of ar does not allow you to use empty libraries.

The workaround we committed was to add a dummy function to the library so that it is not empty:

https://trac.macports.org/browser/trunk/dports/lang/mdk/files/patch-lib-foo.c?rev=16880
https://trac.macports.org/browser/trunk/dports/lang/mdk/files/patch-lib-Makefile.am?rev=16880

Ryan Carsten Schmidt <ryandesign>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30184:  main.log added by ryandesign (53KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hxp (Posted a comment)
  • -email is unavailable- added by jao (Posted a comment)
  • -email is unavailable- added by ryandesign (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-02 jao StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-01-06 jao StatusNone Ready For Test
        Assigned toNone jao
    2014-01-04 ryandesign Attached File- Added main.log, #30184

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code