NetBSD-Bugs archive

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

kern/57916: Amdgpu assym.h error: size of array ‘__ctassert0’ is negative when ../compile/KERNEL is compiled with make CFLAGS=“-mx32 -Os” depend



>Number:         57916
>Category:       kern
>Synopsis:       Amdgpu assym.h error: size of array ?__ctassert0? is negative when ../compile/KERNEL is compiled with make CFLAGS=?-mx32 -Os? depend
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 09 10:55:00 +0000 2024
>Originator:     Vitalii Skikun
>Release:        9.3
>Organization:
Outfox Semiconductor
>Environment:
NetBSD localhost 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I ran these commands:

I went on https://www.netbsd.org/docs/kernel/#downloading_kernel_source and downloaded the kernel source code to the ?/root/Downloads? directory by running this command:

wget http://ftp.netbsd.org/pub/NetBSD/NetBSD-9.3/source/sets/syssrc.tgz

The wget I got from ?pkgin install wget?, and the ?pkgin? I got from ?pkg_add http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/.9.0-current-20231229.0607/All/pkgin-23.8.1nb2.tgz?

Also, your Support NetBSD financially for Microsoft Edge doesn?t let me donate $5 via credit card. (VISA)

I then ran ?cd /? and then ?tar -xf /root/Downloads/syssrc.tgz? and then ?cd /usr/src/sys/arch/amd64/conf? and then ?cp GENERIC KERNEL? and then nano KERNEL which I got from ?pkgin install nano?. I then uncommented the lines that begin with:

#i915drm*
#radeondrm*
#amdgpu*
#amdgpufb*
And #azalia* lines.

I then ran ?config KERNEL?, received the output:

Build directory is ../compile/KERNEL
Don?t forget to run ?make depend?

I then ran ?cd ../compile/KERNEL/? and then I ran ?make CFLAGS=?-mx32 -Os? depend -j12? and got my error.
>How-To-Repeat:
I ran these commands:

I went on https://www.netbsd.org/docs/kernel/#downloading_kernel_source and downloaded the kernel source code to the ?/root/Downloads? directory by running this command:

wget http://ftp.netbsd.org/pub/NetBSD/NetBSD-9.3/source/sets/syssrc.tgz

The wget I got from ?pkgin install wget?, and the ?pkgin? I got from ?pkg_add http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/.9.0-current-20231229.0607/All/pkgin-23.8.1nb2.tgz?

Also, your Support NetBSD financially for Microsoft Edge doesn?t let me donate $5 via credit card after I pressed pay that I added. (VISA)

I then ran ?cd /? and then ?tar -xf /root/Downloads/syssrc.tgz? and then ?cd /usr/src/sys/arch/amd64/conf? and then ?cp GENERIC KERNEL? and then nano KERNEL which I got from ?pkgin install nano?. I then uncommented the lines that begin with:

#i915drm*
#radeondrm*
#amdgpu*
#amdgpufb*
And #azalia* lines.

I then ran ?config KERNEL?, received the output:

Build directory is ../compile/KERNEL
Don?t forget to run ?make depend?

I then ran ?cd ../compile/KERNEL/? and then I ran ?make CFLAGS=?-mx32 -Os? depend -j12? and got my error.
>Fix:
I can?t fix the problem right now because while I do have a computer that has an AMDGPU RX 480 8G from Amd inside of it, it can?t install NetBSD and only one computer has NetBSD installed, and that is my new HP Envy Move with an 13th Gen intel i5 1335U, 8G of Dram and 512GB of SSd. I ran all these commands on this specific HP Envy Move that I bought yesterday. The HP Envy Move has Intel Integrated Graphics and therefore for me to use my AMD RX 480 8G from Amd I would need an external GPU dock but I don?t have that so sorry, here?s 5 bucks if you fix this.



Home | Main Index | Thread Index | Old Index