Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2020 12:37:56 -0800
From:      Cameron Berkenpas <cam@neo-zeon.de>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: libc build failures for 13.0-CURRENT
Message-ID:  <0ca7bc6b-1a2c-0259-52d4-b8a4b3ab3579@neo-zeon.de>
In-Reply-To: <20200213112901.GG4808@kib.kiev.ua>
References:  <cb0c101a-acce-2ba0-86e0-1172ec4bd2fa@neo-zeon.de> <20200212085306.GD4808@kib.kiev.ua> <d9ff0dcd-65d4-5a2e-a499-e5c63fb21fa2@neo-zeon.de> <20200213112901.GG4808@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Found the issue!

I had CC defined as clang in /etc/make.conf as well as CXX as clang++, etc.

It seemed like these were needed after the initial cross compile when 
switching from ELFv1 and ELFv2 (I'll have to verify this was actually 
needed when I eventually have to update some other systems from v1 to v2).

Worked fine for a few weeks until the installed headers just became too 
out of date to compile the latest source from CURRENT.

Thanks Konstantin for getting me going in the right direction and sorry 
for polluting this list with my pebkac issue. :)

-Cameron

On 2/13/20 3:29 AM, Konstantin Belousov wrote:
> On Wed, Feb 12, 2020 at 09:07:00AM -0800, Cameron Berkenpas wrote:
>> Thanks for the fast response!
>>
>> This got me started in the right direction. I tried:
>> cp  /usr/src/sys/sys/elf_common.h /usr/include/sys/elf_common.h
>>
>> This got me a bit further... So then I tried:
>> cp  /usr/src/sys/sys/* /usr/include/sys/*
>>
>> This got me even further... But the build is still failing. Looks like this
>> error is related to a header issue as well.
>>
>> Shouldn't "make buildworld" use headers under /usr/src ?
> Yes, it must.  And since you get this errors, it suggests that you have
> some local issue in your setup.  Since you state that gcc fixedincludes
> issue is excluded, check the consistency of the checkout you use.  Or
> even, remove it and obj/ and start from scratch.
>
>> Everything appears to be default. I don't have a src.conf, etc. Gcc isn't
>> installed.
>>
>> Thanks!
>>
>>
>>
>> On 2/12/20 12:53 AM, Konstantin Belousov wrote:
>>> On Tue, Feb 11, 2020 at 04:10:24PM -0800, Cameron Berkenpas wrote:
>>>> Hello,
>>>>
>>>> I've been seeing the following build error for at least the last few days.
>>>> As it hasn't been fixed yet, I'm assuming this is probably an issue on
>>>> POWER, but not on x86/amd64.
>>>>
>>>> /usr/src/lib/libc/gen/auxv.c:89:8: error: use of undeclared identifier
>>>> 'AT_BSDFLAGS'
>>>>                   case AT_BSDFLAGS:
>>>>                        ^
>>>> /usr/src/lib/libc/gen/auxv.c:333:7: error: use of undeclared identifier
>>>> 'AT_BSDFLAGS'
>>>>           case AT_BSDFLAGS:
>>> This means that your build uses out of date sys/elf_common.h. How it
>>> happens is your local problem. Ensure that the checkout if fine, in
>>> particular that the mentioned file indeed contains the line with the
>>> definition for AT_BSDFLAGS.
>>>
>>> If you use something less straightforward, like external gcc, make sure
>>> that there is no lingering 'fixed' headers that gcc saved and patched
>>> during its own build.
>> _______________________________________________
>> freebsd-ppc@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0ca7bc6b-1a2c-0259-52d4-b8a4b3ab3579>