Package Details: grub-legacy 0.97-29

Git Clone URL: https://aur.archlinux.org/grub-legacy.git (read-only, click to copy)
Package Base: grub-legacy
Description: A GNU multiboot boot loader
Upstream URL: http://www.gnu.org/software/grub/
Licenses: GPL
Conflicts: grub
Submitter: pressh
Maintainer: sperg512 (wgottwalt)
Last Packager: wgottwalt
Votes: 80
Popularity: 0.000172
First Submitted: 2012-07-20 09:42 (UTC)
Last Updated: 2023-08-02 12:35 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

wgottwalt commented on 2025-04-19 04:07 (UTC)

Like I said a year ago, this will become worse in the future. You should see what happens if you use GCC 15. I'm not sure if I'm willing to dig in the shitty grub 1 code (no, seriously, this is really bad C code and will take several hours or even days to rewrite it properly).

twheel commented on 2025-04-18 19:37 (UTC) (edited on 2025-04-18 19:41 (UTC) by twheel)

stage2.c: In function ‘cmain’:
stage2.c:941:21: warning: value computed is not used [-Wunused-value]
  941 |                     *tmp++;
      |                     ^~~~~~
stage2.c:942:33: error: passing argument 1 of ‘grub_strcpy’ from incompatible pointer type [-Wincompatible-pointer-types]
  942 |                     grub_strcpy(&def, &tmp);
      |                                 ^~~~
      |                                 |
      |                                 char **
In file included from stage2.c:20:
./shared.h:891:26: note: expected ‘char *’ but argument is of type ‘char **’
  891 | char *grub_strcpy (char *dest, const char *src);
      |                    ~~~~~~^~~~
stage2.c:942:39: error: passing argument 2 of ‘grub_strcpy’ from incompatible pointer type [-Wincompatible-pointer-types]
  942 |                     grub_strcpy(&def, &tmp);
      |                                       ^~~~
      |                                       |
      |                                       char **
./shared.h:891:44: note: expected ‘const char *’ but argument is of type ‘char **’
  891 | char *grub_strcpy (char *dest, const char *src);
      |                                ~~~~~~~~~~~~^~~
stage2.c:944:33: error: passing argument 1 of ‘grub_strcpy’ from incompatible pointer type [-Wincompatible-pointer-types]
  944 |                     grub_strcpy(&def, &p);
      |                                 ^~~~
      |                                 |
      |                                 char **
./shared.h:891:26: note: expected ‘char *’ but argument is of type ‘char **’
  891 | char *grub_strcpy (char *dest, const char *src);
      |                    ~~~~~~^~~~
stage2.c:944:39: error: passing argument 2 of ‘grub_strcpy’ from incompatible pointer type [-Wincompatible-pointer-types]
  944 |                     grub_strcpy(&def, &p);
      |                                       ^~
      |                                       |
      |                                       char **
./shared.h:891:44: note: expected ‘const char *’ but argument is of type ‘char **’
  891 | char *grub_strcpy (char *dest, const char *src);
      |                                ~~~~~~~~~~~~^~~
make[2]: *** [Makefile:3373: pre_stage2_exec-stage2.o] Error 1
make[2]: Leaving directory '/home/user/tmp/grub-legacy/src/grub-0.97/stage2'
make[1]: *** [Makefile:388: all-recursive] Error 1
make[1]: Leaving directory '/home/user/tmp/grub-legacy/src/grub-0.97'
make: *** [Makefile:329: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: grub-legacy-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
grub-legacy - exit status 4

wgottwalt commented on 2024-02-20 09:04 (UTC)

Nice to see. Though, I can't promise that it will stay this way. The old GRUB code base is getting more and more incompatible with newer versions of GCC and binutils, and it may finally just build non-working binaries in the future.

ramenu commented on 2024-02-17 05:30 (UTC)

Yes! I wasn't able to get this to compile under the address link error, but your PKGBUILD did the trick. God bless!

sperg512 commented on 2020-11-19 02:42 (UTC)

Does anyone still even use this?

yar commented on 2018-08-07 07:12 (UTC)

I suspect the problem here is a gcc update. I would remove i686 from $arch, add lib32-glibc to depends, and see if other distros have released patches to work with newer gcc.

NuSkool commented on 2018-04-01 19:58 (UTC) (edited on 2018-04-01 20:02 (UTC) by NuSkool)

==> ERROR: A failure occurred in build().

=============================================================

$ sudo arch-nspawn $CHROOT/cody pacman -Syu

:: Synchronizing package databases...

core 130.2 KiB 256K/s 00:01 [#######################################] 100%

extra 1603.6 KiB 280K/s 00:06 [#######################################] 100%

community 4.2 MiB 398K/s 00:11 [#######################################] 100%

multilib 170.7 KiB 365K/s 00:00 [#######################################] 100%

:: Starting full system upgrade...

........

=============================================================

$ makechrootpkg -c -r $CHROOT

........

checking whether build environment is sane... yes

/build/grub-legacy/src/grub-0.97/missing: Unknown `--is-lightweight' option

Try `/build/grub-legacy/src/grub-0.97/missing --help' for more information

configure: WARNING: 'missing' script is too old or missing

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether make supports nested variables... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking whether to enable maintainer-specific portions of Makefiles... no

checking for gcc... gcc

checking for gcc... (cached) gcc

checking whether the C compiler works... no

configure: error: in `/build/grub-legacy/src/grub-0.97':

configure: error: C compiler cannot create executables

See `config.log' for more details

==> ERROR: A failure occurred in build().

Aborting...

==> ERROR: Build failed, check /home/cody/chroot/cody/build

JonnyJD commented on 2016-04-17 13:29 (UTC)

I am getting undefined reference to `__stack_chk_fail' on current Arch which I could fix with adding " -fno-stack-protector" to CFLAGs in the PKGBUILD

<deleted-account> commented on 2013-08-10 11:55 (UTC)

I need to have grub2 and grub-legacy installed side-by-side. Due to file conflicts, I assume the easiest way is to have grub-legacy installed in separate directory, say /usr/share/grub-legacy (which would serve as a / for this package). Could somebody please advise me how to do it with minimal effort, i.e. so that scripts, configurations, etc. would still work relative to new root? Specifically, I was looking into using "PREFIX", but I do not understand how the entire build chain works.

mhellwig commented on 2013-06-04 20:51 (UTC)

oh. I found what the problem was, had to do with using the SOL (serial over lan) from a Supermicro-board .. for the menu.lst, that means you should NOT specify terminal serial .. because that apparently doesn't work. after removing that line, it now works. yay!