Skip to content

flang-new: error: unknown argument: --gcc-toolchain, --rocm-path, -frtlib-add-rpath #82553

Closed
@dpalermo

Description

@dpalermo

There are a few driver flags missing from flang-new that are needed for selecting components from alternate paths:

flang-new: error: unknown argument: '--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9'
flang-new: error: unknown argument: '--rocm-path=/opt/rocm'
flang-new: error: unknown argument: '-frtlib-add-rpath'

As clang accepts these, flang-new should as well.

The above can be reproduced with:

$ cat hello.f
        program hello
             print *, 'Hello World!'
        end program hello
$ flang-new  hello.f --gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9
flang-new: error: unknown argument: '--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9'
$ flang-new  hello.f --rocm-path=/opt/rocm
flang-new: error: unknown argument: '--rocm-path=/opt/rocm'
$ flang-new  hello.f  -frtlib-add-rpath
flang-new: error: unknown argument: '-frtlib-add-rpath'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions