Opened 5 years ago

Last modified 4 months ago

#44485 assigned defect

Compile Error in Open (GNU) Cobol when compiling in OS 10.9 Mavericks ( New Install )

Reported by: gregthrower@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: open-cobol

Description (last modified by mf2k (Frank Schima))

macbook-pro:tmp macbook$ cobc -x hello.cob
clang: error: unknown argument: '-R/opt/local/lib' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future.

Hard error. Does not create executable. Should I forget running this on my MAC and just create a Linux partition?

Change History (6)

comment:1 Changed 5 years ago by cooljeanius (Eric Gallager)

This was brought up on the mailing list previously:
Because the mailing list archives do not follow threads over month boundaries, the June portion of it starts here:

I am working on fixing this as part of an update of the open-cobol package to version 2.0, but then I ran into this bug which I filed upstream: (which apparently has received some comments since I last checked it... but that is something else)

Anyways, in the meantime, I fix the issue of clang being too strict by adding this block of code to the open-cobol Portfile:

if {[string match *clang* ${configure.compiler}]} {
    configure.args-append --disable-rpath
    configure.cppflags-append -std=gnu89
    pre-configure {
        ui_warn "${name} has issues with clang"

I am not sure if the --disable-rpath flag was around in the current version or if it was added in the version to which I am updating it though...

(also, since I am the maintainer of this port, you should have cc-ed me on it, but as I saw this in time, I will just cc myself. I would appreciate it if a committer could change that cc to an assignment...)

comment:2 Changed 5 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Cc: egall@… removed
Owner: changed from macports-tickets@… to egall@…
Port: open-cobol added

In the future, also use WikiFormatting and fill in the Port field.

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:5 Changed 5 years ago by cooljeanius (Eric Gallager)

I have an update ticket open that should fix this: #44501

comment:6 Changed 4 months ago by mf2k (Frank Schima)

Owner: cooljeanius deleted
Status: newassigned

See #56907

Note: See TracTickets for help on using tickets.