Re: clang: error: unsupported argument 'gnu2' to option '-mtls-dialect=' for target 'x86_64-redhat-linux-gnu'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 15, 2024 at 06:49:54AM -0700, Tom Stellard wrote:
> On 4/15/24 02:55, Richard W.M. Jones wrote:
> >
> >Anyone got any idea about this build failure?
> >
> >https://koji.fedoraproject.org/koji/taskinfo?taskID=116395331
> >
> >[+] All set and ready to build.
> >clang: warning: -Wl,-z,relro: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -Wl,-z,pack-relative-relocs: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -Wl,-z,now: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -Wl,--build-id=sha1: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -lrt: 'linker' input unused [-Wunused-command-line-argument]
> >clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
> >clang: error: unsupported argument 'gnu2' to option '-mtls-dialect=' for target 'x86_64-redhat-linux-gnu'
> >
> >AFAICT -mtls-dialect=gnu2 is not added by anything in the spec file or
> >in AFL++ sources, so it must be coming from RPM macros?
> >
> 
> Are you building with both gcc and clang?  If you are only building with clang, you
> should use the toolchain macro which will ensure you get the correct flags;
> 
> %global toolchain clang

Unfortunately the AFL "build system" (which would be more accurately
described as "big pile of semi-documented Makefiles") is rather
obtuse.  However it does need to build for both GCC and Clang so I
don't think this will work.

Also builds differently on x86_64 and !x86_64, although I disabled
!x86_64 for now as it was too much trouble.  And it doesn't work
upstream with LLVM18, so I am having to use LLVM17 in Rawhide.

If you want to take a look and suggest improvements please be my guest:

https://src.fedoraproject.org/rpms/american-fuzzy-lop/tree/rawhide

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux