Error in make buildkernel `

Florent Peterschmitt florent at peterschmitt.fr
Mon Jun 10 12:17:45 UTC 2013


Le 10/06/2013 14:14, Jeremy Chadwick a écrit :
> On Mon, Jun 10, 2013 at 02:04:59PM +0200, Willem Jan Withagen wrote:
>> I'm trying to build a stable kernle on a freshly build 8.4-Stable i386
>> system.
>>
>> And I get:
>> MAKE=make sh /usr/srcs/src9/src/sys/conf/newvers.sh GENERIC
>> /usr/local/bin/svnversion
>> cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs
>> -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
>> -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions
>> -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I.
>> -I/usr/srcs/src9/src/sys -I/usr/srcs/src9/src/sys/contrib/altq -D_KERNEL
>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
>> -finline-limit=8000 --param inline-unit-growth=100 --param
>> large-function-growth=1000  -mno-align-long-strings
>> -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float
>> -ffreestanding -fstack-protector -Werror  vers.c
>> ctfconvert -L VERSION -g vers.o
>> linking kernel.debug
>> ld:/usr/srcs/src9/src/sys/conf/ldscript.i386:66: syntax error
>> *** Error code 1
>>
>> Stop in /usr/obj/usr/srcs/src9/src/sys/GENERIC.
>> *** Error code 1
>>
>> Stop in /usr/srcs/src9/src.
>> *** Error code 1
>>
>> Line 66 is:   .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
>> The piece of "code" around line 66 looks like:
>>
>>   PROVIDE (__etext = .);
>>   PROVIDE (_etext = .);
>>   PROVIDE (etext = .);
>>   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
>>   .rodata1        : { *(.rodata1) }
>>   .eh_frame_hdr : { *(.eh_frame_hdr) }
>>   .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
>>   .gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table
>> .gcc_except_table.*) }
>>   /* Adjust the address for the data segment.  We want to adjust up to
>>      the same address within the page on the next page up.  */
>>   . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
>> (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
>> (MAXPAGESIZE), CONSTANT (COMMONPAGESI
>> ZE));
>>   /* Exception handling  */
>>
>> Any suggestions on how to fix this??
> 
> I can't help with the actual syntax error, but from the path names
> involved here, it looks like you:
> 
> 1) are using an alternate location for src (/usr/srcs not /usr/src),

For that we can do:

SRC_BASE=/usr/srcs/src9/src make <target>

But it shouldn't be a problem to build base system, it should occur only
with ports.

-- 
Florent Peterschmitt           | Please:
florent at peterschmitt.fr        |  * Avoid HTML/RTF in E-mail
+33 (0)6 64 33 97 92           |  * PDF for documents
http://florent.peterschmitt.fr | Thank you :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130610/ab7d87c4/attachment.sig>


More information about the freebsd-stable mailing list