Opened 12 years ago

Closed 12 years ago

Last modified 5 years ago

#1179 closed defect (fixed)

Warnings building Premake on OS X

Reported by: historic_bruno Owned by: leper
Priority: Nice to Have Milestone: Alpha 11
Component: Build & Packages Keywords: osx, ld
Cc: Yves Patch:

Description (last modified by elexis)

I get the following warnings running ./update-workspaces.sh with Apple's Command Line Tools for Xcode - February 2012:

Linking Premake4
clang: warning: argument unused during compilation: '-rdynamic'
ld: warning: option -s is obsolete and being ignored

The ld warning is not new, but seems the more serious, if that option gets removed in the future it would turn into an error. I don't know if that will happen since it would break compatibility. From the ld manpage on OSX:

     -s          Completely strip the output, including removing the sym-
                 bol table.  This file format variant is no longer sup-
                 ported.  This option is obsolete.

Doesn't seem like an especially useful option anyway :)

Is it possible to generate the contents of premake4\build\gmake.unix for each OS? FreeBSD even encounters an error building Premake, as there's no libdl (the -ldl linker flag causes an error). It seems best if we don't assume a single "Unix" build is good enough because there are a variety of conflicting situations.

Change History (4)

comment:1 by historic_bruno, 12 years ago

Description: modified (diff)

comment:2 by leper, 12 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 11995:

Fix premake build on OS X by linking with the CoreServices framework. Fixes #1505.
Remove obsolete and unused parameters. Fixes #1179.

comment:3 by leper, 12 years ago

Milestone: BacklogAlpha 11

I went with some sed magic instead of completely separate makefiles (as they only differ in some aspects) and we would need some additional OS specific logic in each case (the BSD -ldl thing is handled in the same way).

comment:4 by elexis, 5 years ago

Description: modified (diff)

clang: warning: argument unused during compilation: '-rdynamic'

I get that one when compiling with clang 8 on linux: #5582.

Note: See TracTickets for help on using tickets.