From owner-freebsd-bugs@freebsd.org Sun Nov 15 12:15:40 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 5F4CD2E6AD5 for ; Sun, 15 Nov 2020 12:15:40 +0000 (UTC) (envelope-from markiyan.kushnir@gmail.com) 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 4CYrl00SHDz3nQ2 for ; Sun, 15 Nov 2020 12:15:40 +0000 (UTC) (envelope-from markiyan.kushnir@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0F95A2E6856; Sun, 15 Nov 2020 12:15:40 +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 0F5F12E6AD4 for ; Sun, 15 Nov 2020 12:15:40 +0000 (UTC) (envelope-from markiyan.kushnir@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CYrkz6YMXz3nnP; Sun, 15 Nov 2020 12:15:39 +0000 (UTC) (envelope-from markiyan.kushnir@gmail.com) Received: by mail-io1-xd2f.google.com with SMTP id m9so14403546iox.10; Sun, 15 Nov 2020 04:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jhZFHHHPW57xP04xX/AaLGMRq8pC63R/7unNl5+l/no=; b=Y8qJv5BH4wrDnkXT50mDlXPpiQ1N1HGmDcupffkFXO1AzzejytZXo3ryOv8D8dmi1d s9R5UbyY8Qkva6Sb3PyiFO3xDfRBlVNJ26Su6Bikt0FcyS/sPLNTuXKb8xe3oVzBMNf9 a1b+I9C0wCcl1Tpf6ORGYZi0cq8BWCumSSvIoWpo1icXMGsiyXb5YW28UDL3Q0A6RW4E cqRPhzJnSCi5CDUYAvVoBdMdRtubvZ4BTnqLKB/2duIddiF8Ar/rG060eSK9ONB+PoNb rFT+XgUFKRUMkhWAOXPB7WI6yPkxeMu1sWVgSwaDZvSFJblwGct3vcvzsvbEHL7eb4i7 hhaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jhZFHHHPW57xP04xX/AaLGMRq8pC63R/7unNl5+l/no=; b=oJLpf8CaEPAn2eUTiaXuJ2pWusmLCFFV4P7oAPC69eoj0un1e7mpduowkl4c+TmMxM emfbb9MuO7XZ6WS6cCchmF+hroR8Q4pV2ymSo0u3Secuo9ffhpAmobnCKeSoxeec+4Dw 5gKZINMbu9pEC/2WNaE9MA6cpkBFCTsGdhu1EtdsuaNUNGU7Ap/z8gCTvwyXNJHT4MD3 fBFTzcfi502fGUCjtRi2bHtS6zgOtht48OVVV20GN9GG/mEVetmuVqP5v81xizJqe33k QsQYmdo8yMqyBx/ueETwvWPGvEeG0oAzIaqjLPJi4TKbeR/r1W8xWzfIGjqrYbea56iV d6+Q== X-Gm-Message-State: AOAM533V0Ti1afWp8vMvpB9OiRvQR9N9b72jaxsoVg4OR1yNHTCXBZsu WZcNk8dPbqrR6VtMpPTRvzLM4fbNr64XtvPJq2er2mkV X-Google-Smtp-Source: ABdhPJy/IKFfEbyGVC0Wx4xYOyCRNicWvx4H22BlT9o/TH2iz430SP0JJVJAs36O/d2cStUwcpHsOIJpb/oxhSgT64c= X-Received: by 2002:a05:6638:5b2:: with SMTP id b18mr7635758jar.137.1605442538041; Sun, 15 Nov 2020 04:15:38 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a4f:e58b:0:0:0:0:0 with HTTP; Sun, 15 Nov 2020 04:15:37 -0800 (PST) In-Reply-To: References: From: Markiyan Kushnir Date: Sun, 15 Nov 2020 14:15:37 +0200 Message-ID: Subject: Re: [Bug 251150] Cannot compile zfsboot: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] To: bugzilla-noreply@freebsd.org Cc: bugs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4CYrkz6YMXz3nnP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] 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 12:15:40 -0000 I compiled it with a clang dating before Mar 2020. -- Markiyan. 2020-11-15 13:41 GMT+02:00, bugzilla-noreply@freebsd.org : > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251150 > > --- 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 > -I/usr/obj/usr/src/amd64.amd64/stand/libsa32 -I/usr/src/stand/libsa > -D_STANDALONE -I/usr/src/sys -Ddouble=jagged-little-pill > -Dfloat=floaty-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=i386 > -mno-relax -I. -Iinclude -DBOOTPROG=\"zfsboot\" -O1 -DBOOT2 > -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT > -DLOADER_UFS_SUPPORT -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 > -I/usr/src/stand/common -I/usr/src/stand/i386/common > -I/usr/src/stand/i386/libi386 -I/usr/src/stand/libsa/zfs > -I/usr/src/sys/crypto/skein -I/usr/src/sys/cddl/boot/zfs > -I/usr/src/sys/contrib/openzfs/include > -I/usr/src/sys/contrib/openzfs/include/os/freebsd/spl > -I/usr/src/sys/contrib/openzfs/include/os/freebsd/zfs > -I/usr/src/sys/cddl/contrib/opensolaris/common/lz4 > -I/usr/src/stand/i386/boot2 > -Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align > -Wmissing-declarations -Wmissing-prototypes -Wnested-externs > -Wpointer-arith > -Wshadow -Wstrict-prototypes -Wwrite-strings -g -MD -MF.depend.zfsboot.o > -MTzfsboot.o -std=gnu99 -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=0x2000 -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=1.02 size=6b0 load=9000 entry=9010 map=16M pgctl=1:1 > client: fmt=bin size=27f84 text=0 data=0 bss=0 entry=0 > output: fmt=bin size=28634 text=0 data=28634 org=0 entry=0 > 96716 bytes available > dd status=none if=zfsboot.ld of=zfsboot2 bs=262144 conv=sync > 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. > > -- > You are receiving this mail because: > You are the assignee for the bug. > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" >