From owner-freebsd-bugs@freebsd.org Sun Nov 15 11:41:47 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B0C82E5811 for ; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CYqzv2LMVz3m5l for ; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5051B2E580F; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 501A42E56D0 for ; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CYqzv1jKMz3ldr for ; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D6B31B3D8 for ; Sun, 15 Nov 2020 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AFBflqF068576 for ; Sun, 15 Nov 2020 11:41:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AFBflMa068575 for bugs@FreeBSD.org; Sun, 15 Nov 2020 11:41:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251150] Cannot compile zfsboot: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] Date: Sun, 15 Nov 2020 11:41:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tsoome@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2020 11:41:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251150 --- Comment #3 from Toomas Soome --- what compiler do you have? because I do not get this error: root@freebsd-2:/usr/src/stand/i386/zfsboot # make cc -O2 -pipe -fno-common -I/usr/src/stand/i386/btx/lib -nostdinc=20=20=20 -I/usr/obj/usr/src/amd64.amd64/stand/libsa32 -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface -ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT -I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -march=3Di= 386 -mno-relax -I. -Iinclude -DBOOTPROG=3D\"zfsboot\" -O1 -DBOOT2=20 -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT=20 -DLOADER_UFS_SUPPORT -DSIOPRT=3D0x3f8 -DSIOFMT=3D0x3 -DSIOSPD=3D9600=20 -I/usr/src/stand/common -I/usr/src/stand/i386/common=20 -I/usr/src/stand/i386/libi386 -I/usr/src/stand/libsa/zfs=20 -I/usr/src/sys/crypto/skein -I/usr/src/sys/cddl/boot/zfs=20 -I/usr/src/sys/contrib/openzfs/include=20 -I/usr/src/sys/contrib/openzfs/include/os/freebsd/spl=20 -I/usr/src/sys/contrib/openzfs/include/os/freebsd/zfs=20 -I/usr/src/sys/cddl/contrib/opensolaris/common/lz4 -I/usr/src/stand/i386/b= oot2 -Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align=20 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-ari= th -Wshadow -Wstrict-prototypes -Wwrite-strings -g -MD -MF.depend.zfsboot.o -MTzfsboot.o -std=3Dgnu99 -Wno-format-zero-length -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Oz -Qunused-arguments -c /usr/src/stand/i386/zfsboot/zfsboot.c -o zfsboot.o ld -m elf_i386_fbsd -static -N --gc-sections --defsym ORG=3D0x2000 -T /usr/src/stand/i386/boot.ldscript -o zfsboot.out /usr/obj/usr/src/amd64.amd64/stand/i386/btx/lib/crt0.o zfsboot.o sio.o cons= .o bcache.o devopen.o disk.o part.o zfs_cmd.o /usr/obj/usr/src/amd64.amd64/stand/i386/libi386/libi386.a /usr/obj/usr/src/amd64.amd64/stand/libsa32/libsa32.a objcopy -S -O binary zfsboot.out zfsboot.bin btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/amd64.amd64/stand/i386/btx/btx/btx -l zfsboot.ldr -o zfsboot.ld -P 1 zfsboot.bin kernel: ver=3D1.02 size=3D6b0 load=3D9000 entry=3D9010 map=3D16M pgctl=3D1:1 client: fmt=3Dbin size=3D27f84 text=3D0 data=3D0 bss=3D0 entry=3D0 output: fmt=3Dbin size=3D28634 text=3D0 data=3D28634 org=3D0 entry=3D0 96716 bytes available dd status=3Dnone if=3Dzfsboot.ld of=3Dzfsboot2 bs=3D262144 conv=3Dsync cat zfsboot1 zfsboot2 > zfsboot root@freebsd-2:/usr/src/stand/i386/zfsboot # cc -v FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmorg-11.0.0-rc5-0-g60a25202a7d) Target: x86_64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin root@freebsd-2:/usr/src/stand/i386/zfsboot # Of course we can add this prototype, but I'd like to understand why you have this error and I do not. --=20 You are receiving this mail because: You are the assignee for the bug.=