Quantcast

Error in elf_machdep.c when building a kernel

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Error in elf_machdep.c when building a kernel

sossego
I had noted nefore that elf64-sparc-freebsd was not found.
There is /usr/src/contrib/binutils/ld/emulparams/elf64_sparc.sh and
/usr/src/contrib/binutils/ld/emulparams/elf64_sparc_fbsd.sh

I replaced freebsd with fbsd in the stated file and saved
elf_machdep.c to elf_machdep.c.old.

I'm not sure if it will correct the problem.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error in elf_machdep.c when building a kernel

Marius Strobl
On Thu, Apr 14, 2011 at 03:50:59AM -0400, Super Bisquit wrote:
> I had noted nefore that elf64-sparc-freebsd was not found.
> There is /usr/src/contrib/binutils/ld/emulparams/elf64_sparc.sh and
> /usr/src/contrib/binutils/ld/emulparams/elf64_sparc_fbsd.sh
>
> I replaced freebsd with fbsd in the stated file and saved
> elf_machdep.c to elf_machdep.c.old.
>
> I'm not sure if it will correct the problem.

Sounds like you're trying to build world across the binutils update
with an unclean object directory; you need to delete it or not use
-DNO_CLEAN, otherwise the result likely won't work, even with your
hack.

Marius

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error in elf_machdep.c when building a kernel

sossego
It was just a kernel build, no world.
You're right, the hack didn't work completely.

"/usr/src/sys/sparc64/elf_machdep.c:100:error: 'elf64_fbsd_brandnote'
undeclared here (not in a function)"
 Dump_machdep.c did work in the build process.

I'll redo the build later.

On 4/14/11, Marius Strobl <[hidden email]> wrote:

> On Thu, Apr 14, 2011 at 03:50:59AM -0400, Super Bisquit wrote:
>> I had noted nefore that elf64-sparc-freebsd was not found.
>> There is /usr/src/contrib/binutils/ld/emulparams/elf64_sparc.sh and
>> /usr/src/contrib/binutils/ld/emulparams/elf64_sparc_fbsd.sh
>>
>> I replaced freebsd with fbsd in the stated file and saved
>> elf_machdep.c to elf_machdep.c.old.
>>
>> I'm not sure if it will correct the problem.
>
> Sounds like you're trying to build world across the binutils update
> with an unclean object directory; you need to delete it or not use
> -DNO_CLEAN, otherwise the result likely won't work, even with your
> hack.
>
> Marius
>
>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error in elf_machdep.c when building a kernel

sossego
The above should have been /usr/src/sys/sparc64/sparc64/elf_machdep
I've disabled debugging and the defaults for CURRENT- WITNESS et al-
but, the script is still searching for a non-existent executable.


On 4/14/11, Super Bisquit <[hidden email]> wrote:

> It was just a kernel build, no world.
> You're right, the hack didn't work completely.
>
> "/usr/src/sys/sparc64/elf_machdep.c:100:error: 'elf64_fbsd_brandnote'
> undeclared here (not in a function)"
>  Dump_machdep.c did work in the build process.
>
> I'll redo the build later.
>
> On 4/14/11, Marius Strobl <[hidden email]> wrote:
>> On Thu, Apr 14, 2011 at 03:50:59AM -0400, Super Bisquit wrote:
>>> I had noted nefore that elf64-sparc-freebsd was not found.
>>> There is /usr/src/contrib/binutils/ld/emulparams/elf64_sparc.sh and
>>> /usr/src/contrib/binutils/ld/emulparams/elf64_sparc_fbsd.sh
>>>
>>> I replaced freebsd with fbsd in the stated file and saved
>>> elf_machdep.c to elf_machdep.c.old.
>>>
>>> I'm not sure if it will correct the problem.
>>
>> Sounds like you're trying to build world across the binutils update
>> with an unclean object directory; you need to delete it or not use
>> -DNO_CLEAN, otherwise the result likely won't work, even with your
>> hack.
>>
>> Marius
>>
>>
>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error in elf_machdep.c when building a kernel

Marius Strobl
On Sun, Apr 17, 2011 at 01:16:22AM -0400, Super Bisquit wrote:
> The above should have been /usr/src/sys/sparc64/sparc64/elf_machdep
> I've disabled debugging and the defaults for CURRENT- WITNESS et al-
> but, the script is still searching for a non-existent executable.

Your installation and/or update process is b0rked; ensure you have
en empty MAKEOBJDIRPREFIX and unmodified sources, run buildworld
_then_ buildkernel.

Marius

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[hidden email]"
Loading...