Trying build debian's apt on sh4, but runtime error

Is there any tip to help find out this core dump root reason?
The aur's PKGBUILD and My PKGBUILD.1 diff as
$ diff -u PKGBUILD PKGBUILD.1
--- PKGBUILD 2013-02-19 00:04:56.000000000 +0800
+++ PKGBUILD.1 2013-02-26 22:48:49.000000000 +0800
@@ -3,7 +3,7 @@
pkgver=0.9.7.7
pkgrel=3
pkgdesc="commandline package manager"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' sh4)
url="http://packages.debian.org/sid/apt"
license=('GPL2')
url="http://packages.debian.org/sid/apt"
license=('GPL2')
depends=('gnupg' 'curl')
@@ -14,7 +14,7 @@
conflicts=()
replaces=()
backup=()
-options=()
+options=(!strip)
install=
changelog=
source=(http://ftp.debian.org/debian/pool/main/a/$pkgname/${pkgname}_$pkgver.tar.gz)
@@ -30,7 +30,7 @@
# disable debiandoc, this saves us from sgml problems
sed -i -e 's|-C doc $@|-C doc manpages|' Makefile
./configure --prefix=/usr
- make
+ make CFLAGS=-g LDFLAGS=-shared
check() {
$ gdb pkg/usr/bin/apt-get
GNU gdb (GDB) STMicroelectronics/Linux Base 7.1.50.20100224-25 [build Mar 22 2010]
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "sh4-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/dlin/abs/local/apt/pkg/usr/bin/apt-get...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/dlin/abs/local/apt/pkg/usr/bin/apt-get
Program received signal SIGSEGV, Segmentation fault.
0x52ac2cb6 in __do_global_dtors_aux ()
(gdb) bt
#0 0x52ac2cb6 in __do_global_dtors_aux ()
(gdb)

I try to google http://www.cplusplus.com/forum/unices/61996/.
I guess the problem may caused by I add a '-shared' option to linker.
But, if I don't add such option, the linker will show another strange message. (I'm using STLinux's gcc instead of Arch Linux's gcc as basement).
Building program /home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/methods/file
/usr/bin/ld: /home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/methods/file: hidden symbol `__movmem_i4_odd' in /usr/lib/gcc/sh4-linux/4.2.4/libgcc.a(_movmem_i4.o) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [/home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/methods/file] Error 1
if I change the '-shared' to '-nostdlib'. the linker shows
Building shared library /home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/libapt-inst.so.1.5.0
Compiling file.cc to /home/dlin/abs/local/apt/src/apt-0.9.7.7/obj/methods/file.o
Building program /home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/methods/file
/usr/bin/ld: dynamic variable `__fpscr_values@@GLIBC_PRIVATE' is zero size
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 004014c0
/home/dlin/abs/local/apt/src/apt-0.9.7.7/obj/methods/file.o: In function `__static_initialization_and_destruction_0(int, int)':
file.cc:(.text+0x50): undefined reference to `__dso_handle'
/usr/bin/ld: /home/dlin/abs/local/apt/src/apt-0.9.7.7/obj/methods/file.o(.text+0x6e8): unresolvable R_SH_DIR32 relocation against symbol `__fpscr_values@@GLIBC_PRIVATE'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [/home/dlin/abs/local/apt/src/apt-0.9.7.7/bin/methods/file] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Similar Messages

  • Trying to install Lightroom 5 with CC but getting error code 5 on initial startup of Lightroom.

    Trying to install Lightroom 5 with CC but getting error code 5 on initial startup of Lightroom. Have uninstalled all adobe products including Creative Cloud CC.
    Followed the instructions on the forum by using the CC Cleaner App for OSX. Have restarted a number of times and even tried using disk utility to fix any permission probs. Still no luck.
    The problem started happening from upgrading the previous version of Lightroom to the most up to date version. Im hoping someone can help me with any ideas. Thanks heaps.

    Ended up fixing the problem after finding no answers. Deleted the following file
    com.adobe.acc.AdobeCreativeCloud.plist

  • I'm trying to print some pictures in iPhoto but a error message apears in the screen saying that there is no theme installed and I need to have some theme installed. I don't know how to do that. Need help.

    I'm trying to print some pictures in iPhoto but a error message apears in the screen saying that there is no theme installed and I need to have some theme installed. I don't know how to do that. Need help.

    Reinstall iPhoto.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • Photoshop elements quit working, I uninstalled it, tried to re-install using the cd, but getting errorPhotoshop elements quit working, I uninstalled it, tried to re-install using the cd, but getting error, any other way to re-install it without the disk ?

    Photoshop elements quit working, I uninstalled it, tried to re-install using the cd, but getting error, any other way to re-install it without the disk ?

    Yes.
    Download Photoshop Elements products | 13, 12, 11, 10
    However, the real issue is why the program is not working. Did you install anything recently?
    When you tried to re-install from the disk, did you shut off the antivirus program temporarily?
    Have you tried a system restore to a point in time when the program was working properly?

  • IM TRYING TO INSTALL ITUNES TO MY COMPUTER BUT AN ERROR KEEPS ON POPPING SAYING THAT APPLE APPLICATION SUPPORT IS REQUIRED TO RUN ITUNES PLEASE UNINSTALL AND REINSTALL ITUNES. WHAT DO I DO?

    IM TRYING TO INSTALL ITUNES TO MY COMPUTER BUT AN ERROR KEEPS ON POPPING SAYING THAT APPLE APPLICATION SUPPORT IS REQUIRED TO RUN ITUNES. PLEASE UNINSTALL AND INSTALL ITUNES. WHAT SHOULD/CAN I DO?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if Apple Application Support won't install normally. You could try this approach first.
    tt2

  • I am trying to connect my iphone to itune but an error keeps popping up saying this phone cannot be used the software is not installed

    what do i do, i am trying to connect my iphone to itune but an error keeps popping up saying this phone cannot be used the software is not installed?

    Hi there 7890tim,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    -Griff W. 

  • I'm trying to sign in on my account but an error sign come's up from window's saying test connection any ideas......

    I'm trying to sign in on my itunes account but windows error come's up saying test connection any ideas.....

    Make sure you have the right version...
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • [SOLVED] Trying to install yaourt and cairo-lcd but says Error

    I was trying to install cairo-lcd manually as I usually do from aur when after building and trying to install I get
    error: package "cairo-lcd-1.8.8-1-i686.pkg.tar.gz" not found
    Thought there may be a problem with it so tried going down the yaourt route but trying to install that gives the same thing.
    I cd into the folder as normal build it then pacman -Q as root.
    I admit it's been a while since I installed anything from aur but done it plenty of times to know what to do....am I missing something blindingly obvious?
    Last edited by Andy Mack (2010-02-02 21:54:32)

    I did that so cairo-lcd would install, the problem I am having is pacman -Q* doesn't find the tar.gz to install
    [root@Arch andy]# cd /home/andy/yaourt
    [root@Arch yaourt]# pacman -Q yaourt-0.9.2.6-1-i686.pkg.tar.gz
    error: package "yaourt-0.9.2.6-1-i686.pkg.tar.gz" not found
    [root@Arch yaourt]#
    its the same with cairo-lcd

  • Trying to open a link in notification, but getting error

    Hi,
    We have developed a custom page using JDeveloper. The same is registered as JSP Function in apps and is also imported in database. This page works fine.
    We have developed a custom workflow. A notification is being sent to employees providing a link of above OA Page. ( Eg: Please click here )
    When we click on 'Please Click here' , we get an error as given below
    You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    Please suggest how to resolve this? thanx

    Reason this is happening is that the page is not a bookmarkable page, that is the page is not self secured.
    As the notification can be sent to a mail id, and then you try to launch the page, the page has not gone through the AOL security, and hence would not open.
    what you need to do is make you page self secured, to do this .
    you need to
    1.Set the Security Mode property of your page to Self secured.
    2.Implement the validateParameters() method in your page controller to validate the URL.
    3.Then follow the instructions in the Page Security chapter of devguide.
    Somehow I cannot find out the first two steps mentioned in the devguide, but this is what it is.
    Thanks
    Tapash
    Thanks
    Tapash

  • Trying to download from audible.co.uk but get error message that iTunes is incorrectly loaded and i should reinstall - error message 1007.  I have no idea how to do this or why i get the message as iTunes works perfectly well.

    I am not that computer literate.  I want to know why i can't get my audible books onto my iTunes.  I get an error message that says iTunes was inccorectly loaded and i should reload it.  Not only do I not know how to do this but i don't think it needs to be done.  I have used itunes for other things and it is working perfectly OK.  I get an error message 1007

    caek1 wrote:
    Hi,
    I'm trying to change email address on my Apple ID since the email registered for the account has been hacked and I can't access it anymore. The email I want to change to is connected to another Apple ID I created about 4 years ago, though I successfully changed the email on that account as well. So the email I would like to use for my main Apple ID shouldn't be "locked" anymore.
    Though, when trying to change the email on my Apple ID I get an error message (in Swedish, so this is a direct translate from google): "This e-mail address is your email address for notification. It can not be used as the Apple ID or primary email. Choose a different address."
    I'm not really sure what this means or how I can fix this.
    It means exactly what it says... The email Address is in Use. You cannot re-use it.
    Apple ID Support  >  http://www.apple.com/support/appleid/

  • Tried to update 12.0.4 x64 but getting error message There was an error downloading this update. Please quit and try again later. Error Code: U43M1D207

    Can anyone help on above?

    Hi,
    I had the same problem. This is what you need to do:
    1. When the down load fails, copy the versions that you need.
    2. Go to the Downloads and manually download the updates that you need in the order in the error message.
    3. Repeat #1 and #2 for each update that failed.
    4. Manually update the application in the order that you downloaded.
    It worked for me.
    -Joe

  • Trying to delete a file I created but get error code -8072?

    I created a powerpoint presentation and now I can't delete it. Comes up with an error code anytime I try to move it to a new destination.

    Hi, bird10. 
    Thank you for visiting Apple Support Communities. 
    Here are the best two articles I could find that may help you delete the item you are having issues with.
    You can't empty the Trash or move a file to the Trash
    http://support.apple.com/kb/ht1526
    Unable to move, unlock, modify, or copy an item in Mac OS X
    http://support.apple.com/kb/TS1402
    Cheers,
    Jason H. 

  • Trying to view a video for class, but getting error message...

    Can anyone help me figure out what this means? My updates are current...I'm running on OS X Yosemite 10.10.1
    "VLC media player 1.0.3 Goldeneye requires Mac OS X 10.5 or higher. VLC's last release for your OS is VLC 0.7.2, which is highly out of date and prone to known security issues. We recommend you to update your Mac to a modern version of Mac OS X."
    Any help would be appreciated.

    Install the latest version 2.1.5 at http://get.videolan.org/vlc/2.1.5/macosx/vlc-2.1.5.dmg
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • I just wiped my 1 year old laptop; am trying to register Abode Acrobat XI Standard, but get error. And anyone help, please?

    Can anyone assist?

    Hi walterlbaker,
    We would love to help. Please tell us more about the error that you're receiving. If you can tell us what error you're receiving, and what operating system you're using, and any other details about the error, we will do our best to get this sorted out.
    Best,
    Sara

  • I import a package but runtime error comes up!

    hey everyone,
    I don't know why I'm getting this error "the definition of base class  DatagramSocket was not found" although I have imported it. BTW, I am extending the class to a new one.  "public class OSCDatagramSocket extends DatagramSocket"

    you need to publish for air 2+.

Maybe you are looking for