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

2024-04-15 Thread Richard W.M. Jones
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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


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

2024-04-15 Thread Tom Stellard

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

-Tom


Rich.


--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


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

2024-04-15 Thread Sérgio Basto
On Mon, 2024-04-15 at 10:55 +0100, Richard W.M. Jones wrote:
> 
> Anyone got any idea about this build failure?
> 

I think is this bug https://bugzilla.redhat.com/show_bug.cgi?id=2263180


> 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?
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog:
> http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> http://libguestfs.org/virt-builder.1.html
> --
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org
> Do not reply to spam, report it:
> https://pagure.io/fedora-infrastructure/new_issue

-- 
Sérgio M. B.
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


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

2024-04-15 Thread Dan Horák
On Mon, 15 Apr 2024 10:55:34 +0100
"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?

it comes from "x86-64 -mtls-dialect=gnu2 change landed in rawhide", see
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/M2SCED77ZDJQ7BHWU5LCRGMUSHV6L3CY/


Dan
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


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

2024-04-15 Thread Neal Gompa
On Mon, Apr 15, 2024 at 4:56 AM 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?
>

It was added a month ago to redhat-rpm-config:
https://src.fedoraproject.org/rpms/redhat-rpm-config/c/b7d1bfae1fb673c4d8a21a8866ba4e37b2cd6eaf



-- 
真実はいつも一つ!/ Always, there's only one truth!
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


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

2024-04-15 Thread Richard W.M. Jones
On Mon, Apr 15, 2024 at 10:55:34AM +0100, 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?

Never mind, I see what it is, it's from redhat-rpm-config-288-1.fc41.noarch:

$ rpm --eval '%{optflags}'
... -mtls-dialect=gnu2 ...

which clang 18 doesn't understand.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue