From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Are BSD partitions not supported?
Date: Wed, 19 May 2010 20:50:42 +0200 [thread overview]
Message-ID: <4BF43302.6080106@gmail.com> (raw)
In-Reply-To: <AANLkTik2lzjb6fSQtQxKLT74tZT29E8ED5xf3fwK6wyA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4503 bytes --]
C. P. Ghost wrote:
> 2010/5/19 C. P. Ghost <cpghost@cordula.ws>:
>
>> 2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>>
>>> Mailer. Now I attach it
>>>
>> Ah, thanks. Patches fine now. I get a compile error:
>>
>> gcc -nostdlib -static-libgcc -m32 -Wl,-r,-d -o pre-regexp.o
>> regexp_mod-gnulib_regex.o regexp_mod-commands_regexp.o
>> nm -g --defined-only -P -p pre-regexp.o | sed 's/^\([^ ]*\).*/\1
>> regexp/' > def-regexp.lst
>> gcc -Icommands -I./commands -I./include -I. -I./include -Wall -W
>> -ffreestanding -Os -DGRUB_MACHINE_PCBIOS=1 -DMACHINE=I386_PC -Wall -W
>> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef
>> -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1
>> -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32
>> -fno-stack-protector -mno-stack-arg-probe -Werror -mrtd -mregparm=3
>> -DGRUB_FILE=\"commands/terminal.c\" -MD -c -o
>> terminal_mod-commands_terminal.o commands/terminal.c
>> cc1: warnings being treated as errors
>> commands/terminal.c: In function 'grub_cmd_terminal_input':
>> commands/terminal.c:204: warning: dereferencing type-punned pointer
>> will break strict-aliasing rules
>> commands/terminal.c:205: warning: dereferencing type-punned pointer
>> will break strict-aliasing rules
>> commands/terminal.c: In function 'grub_cmd_terminal_output':
>> commands/terminal.c:219: warning: dereferencing type-punned pointer
>> will break strict-aliasing rules
>> commands/terminal.c:220: warning: dereferencing type-punned pointer
>> will break strict-aliasing rules
>> gmake: *** [terminal_mod-commands_terminal.o] Error 1
>>
>> Maybe because FreeBSD's system gcc is older?
>>
>> $ gcc --version
>> gcc (GCC) 4.2.1 20070719 [FreeBSD]
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions. There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> I can try to compile it with a newer gcc, but it'll take some time
>> to compile gcc first...
>>
>
> Silly me, I had a gcc44 here already:
>
> phenom# /usr/local/bin/gcc44 --version
> gcc44 (GCC) 4.4.4 20100427 (prerelease)
> Copyright (C) 2010 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Using that, I get this:
>
> /usr/local/bin/gcc44 -o kernel.img kernel_img-kern_i386_pc_startup.o
> kernel_img-kern_i386_misc.o kernel_img-kern_main.o
> kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o
> kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o
> kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o
> kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o
> kernel_img-kern_time.o kernel_img-kern_list.o
> kernel_img-kern_handler.o kernel_img-kern_command.o
> kernel_img-kern_corecmd.o kernel_img-kern___target_cpu__dl.o
> kernel_img-kern_i386_pc_init.o kernel_img-kern_i386_pc_mmap.o
> kernel_img-kern_parser.o kernel_img-kern_partition.o
> kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o
> kernel_img-kern_generic_rtc_get_time_ms.o
> kernel_img-kern_generic_millisleep.o kernel_img-kern_env.o
> kernel_img-term_i386_pc_console.o kernel_img-term_i386_vga_common.o
> kernel_img-symlist.o -nostdlib -static-libgcc -m32
> -Wl,--build-id=none -lgcc -nostdlib -Wl,-N -Wl,-Ttext,0x8200 -mrtd
> -mregparm=3
> /usr/local/bin/ld: skipping incompatible
> /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd8.0/4.4.4/libgcc.a when
> searching for -lgcc
> /usr/local/bin/ld: skipping incompatible /usr/lib/libgcc.a when
> searching for -lgcc
> /usr/local/bin/ld: cannot find -lgcc
> collect2: ld returned 1 exit status
> gmake: *** [kernel.img] Error 1
>
Normally you need 32-bit libgcc. As a test build you can just remove
-lgcc but this isn't supported.
> This is with binutils-2.20.1_1 in /usr/local:
>
> $ /usr/local/bin/ld --version
> GNU ld (GNU Binutils) 2.20.1.20100303
> Copyright 2009 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later version.
> This program has absolutely no warranty.
>
>
>> Thanks,
>> -cpghost.
>>
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2010-05-19 18:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-16 16:24 Are BSD partitions not supported? C. P. Ghost
2010-05-18 18:08 ` C. P. Ghost
2010-05-18 18:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 19:33 ` C. P. Ghost
2010-05-18 20:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 22:06 ` C. P. Ghost
2010-05-19 17:49 ` C. P. Ghost
2010-05-19 18:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-19 18:33 ` C. P. Ghost
2010-05-19 18:40 ` C. P. Ghost
2010-05-19 18:50 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-05-19 18:54 ` Navdeep Parhar
2010-05-19 19:20 ` C. P. Ghost
2010-05-19 19:12 ` C. P. Ghost
2010-05-19 19:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-19 19:41 ` C. P. Ghost
2010-05-20 16:19 ` C. P. Ghost
2010-05-23 9:50 ` Grégoire Sutre
2010-05-23 15:44 ` C. P. Ghost
2010-05-24 0:56 ` Grégoire Sutre
2010-05-24 16:50 ` C. P. Ghost
2010-05-31 21:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-01 10:34 ` Grégoire Sutre
2010-06-01 11:21 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-06 17:05 ` Grégoire Sutre
2010-05-19 18:48 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 22:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BF43302.6080106@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox